Skip to content

Commit

Permalink
Make sure that reader still works with newer ROOT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 7, 2024
1 parent 87e0fee commit 3e93ebc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ Reader makeReader(const std::vector<std::string>& filenames) {
for (auto key : *file->GetListOfKeys()) {
auto tkey = dynamic_cast<TKey*>(key);

if (tkey && std::string(tkey->GetClassName()) == "ROOT::Experimental::RNTuple") {
hasRNTuple = true;
break;
if (tkey) {
const auto className = std::string(tkey->GetClassName());
if (className == "ROOT::Experimental::RNTuple" || className == "ROOT::RNTuple") {
hasRNTuple = true;
break;
}
}
}
if (hasRNTuple) {
Expand Down

0 comments on commit 3e93ebc

Please sign in to comment.