Skip to content

Commit acd729b

Browse files
authored
Merge edee816 into sapling-pr-archive-ktf
2 parents 4c0fee6 + edee816 commit acd729b

File tree

4 files changed

+951
-73
lines changed

4 files changed

+951
-73
lines changed

Framework/AnalysisSupport/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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()
2734
o2_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

3240
o2_add_library(FrameworkAnalysisTTreeSupport
3341
SOURCES src/TTreePlugin.cxx

Framework/AnalysisSupport/src/Plugin.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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('-');

0 commit comments

Comments
 (0)