diff --git a/src/Reader.cc b/src/Reader.cc index f43fc432a..5aeb367f5 100644 --- a/src/Reader.cc +++ b/src/Reader.cc @@ -46,9 +46,12 @@ Reader makeReader(const std::vector& filenames) { for (auto key : *file->GetListOfKeys()) { auto tkey = dynamic_cast(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) {