From 3e93ebce810dc4f5034ad61e90b45eb37c73cc3c Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Thu, 7 Nov 2024 17:03:31 +0100 Subject: [PATCH] Make sure that reader still works with newer ROOT versions --- src/Reader.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) {