Skip to content

Commit fdf3202

Browse files
committed
DPL: handle ROOT::Experimental
1 parent cce6416 commit fdf3202

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Framework/AnalysisSupport/src/Plugin.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ std::vector<std::string> getListOfTables(std::unique_ptr<TFile>& f)
121121
break;
122122
}
123123

124+
#if __has_include(<ROOT/RFieldBase.hxx>)
124125
void* v = f->GetObjectChecked(key->GetName(), TClass::GetClass("ROOT::RNTuple"));
125-
if (!v) {
126-
v = f->GetObjectChecked(key->GetName(), TClass::GetClass("ROOT::Experimental::RNTuple"));
127-
}
126+
#else
127+
void* v = f->GetObjectChecked(key->GetName(), TClass::GetClass("ROOT::Experimental::RNTuple"));
128+
#endif
128129
if (v) {
129130
std::string s = key->GetName();
130131
size_t pos = s.find('-');

0 commit comments

Comments
 (0)