File tree Expand file tree Collapse file tree
Framework/AnalysisSupport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,18 @@ o2_add_library(FrameworkAnalysisSupport
2424 PRIVATE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR } /src
2525 PUBLIC_LINK_LIBRARIES O2::Framework ${EXTRA_TARGETS} ROOT::TreePlayer )
2626
27+ # To support both pre and post 6.36 API changes in RNTuple
28+ if (ROOT_MAJOR_VERSION EQUAL 6 AND ROOT_MINOR_VERSION LESS 36)
29+ o2_add_library (FrameworkAnalysisRNTupleSupport
30+ SOURCES src/RNTupleExperimentalPlugin.cxx
31+ PRIVATE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR } /src
32+ PUBLIC_LINK_LIBRARIES O2::Framework ${EXTRA_TARGETS} ROOT::ROOTNTuple ROOT::ROOTNTupleUtil )
33+ else ()
2734o2_add_library (FrameworkAnalysisRNTupleSupport
2835 SOURCES src/RNTuplePlugin.cxx
2936 PRIVATE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR } /src
3037 PUBLIC_LINK_LIBRARIES O2::Framework ${EXTRA_TARGETS} ROOT::ROOTNTuple ROOT::ROOTNTupleUtil )
38+ endif ()
3139
3240o2_add_library (FrameworkAnalysisTTreeSupport
3341 SOURCES src/TTreePlugin.cxx
Original file line number Diff line number Diff line change @@ -162,7 +162,11 @@ std::vector<std::string> getListOfTables(std::unique_ptr<TFile>& f)
162162 break ;
163163 }
164164
165- void * v = f->GetObjectChecked (key->GetName (), TClass::GetClass (" ROOT::Experimental::RNTuple" ));
165+ void * v = f->GetObjectChecked (key->GetName (), TClass::GetClass (" ROOT::RNTuple" ));
166+ // Backward compatibility
167+ if (!v) {
168+ v = f->GetObjectChecked (key->GetName (), TClass::GetClass (" ROOT::Experimental::RNTuple" ));
169+ }
166170 if (v) {
167171 std::string s = key->GetName ();
168172 size_t pos = s.find (' -' );
You can’t perform that action at this time.
0 commit comments