Skip to content

Commit 1729c33

Browse files
committed
DPL: adapt RCombinedDS to new ROOT API
1 parent 14f9c88 commit 1729c33

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

Framework/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ add_subdirectory(CCDBSupport)
2222
add_subdirectory(PhysicsSupport)
2323
add_subdirectory(DataTakingSupport)
2424

25-
add_subdirectory(RootAnalysisHelpers)
26-
25+
# FIXME: disable for now, since ROOT made a non backward compatible change
26+
# RCombinedDS. Will reenable once we move to ROOT 6.30.01
27+
#add_subdirectory(RootAnalysisHelpers)
2728

2829
# Build the GUI support only if we have DebugGUI
2930
if (TARGET AliceO2::DebugGUI)

Framework/RootAnalysisHelpers/include/Framework/RCombinedDS.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ class RCombinedDS final : public ROOT::RDF::RDataSource
341341
dummy += colName.data();
342342
throw std::runtime_error(dummy);
343343
}
344-
const std::vector<std::string>& GetColumnNames() const override;
344+
[[nodiscard]] const std::vector<std::string>& GetColumnNames() const override;
345345
std::vector<std::pair<ULong64_t, ULong64_t>> GetEntryRanges() override;
346-
std::string GetTypeName(std::string_view colName) const override;
347-
bool HasColumn(std::string_view colName) const override;
346+
[[nodiscard]] std::string GetTypeName(std::string_view colName) const override;
347+
[[nodiscard]] bool HasColumn(std::string_view colName) const override;
348348
bool SetEntry(unsigned int slot, ULong64_t entry) override;
349349
void InitSlot(unsigned int slot, ULong64_t firstEntry) override;
350350
void SetNSlots(unsigned int nSlots) override;
351-
void Initialise() override;
351+
void Initialize() override;
352352
};
353353

354354
////////////////////////////////////////////////////////////////////////////////////////////////

Framework/RootAnalysisHelpers/src/RCombinedDS.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ std::vector<void*> RCombinedDS::GetColumnReadersImpl(std::string_view colName, c
220220
O2_BUILTIN_UNREACHABLE();
221221
}
222222

223-
void RCombinedDS::Initialise()
223+
void RCombinedDS::Initialize()
224224
{
225225
fEntryRanges = fIndex->BuildIndex(fLeftDF, fRightDF);
226226

227-
fLeft->Initialise();
228-
fRight->Initialise();
227+
fLeft->Initialize();
228+
fRight->Initialize();
229229
}
230230

231231
/// Creates a RDataFrame using an arrow::Table as input.

Framework/TestWorkflows/CMakeLists.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ o2_add_dpl_workflow(sync-reconstruction-dummy
3737
SOURCES src/o2SyncReconstructionDummy.cxx
3838
COMPONENT_NAME TestWorkflows)
3939

40-
o2_add_dpl_workflow(d0-analysis
41-
SOURCES src/o2D0Analysis.cxx
42-
PUBLIC_LINK_LIBRARIES O2::FrameworkRootAnalysisHelpers
43-
COMPONENT_NAME TestWorkflows)
44-
45-
o2_add_dpl_workflow(simple-tracks-analysis
46-
SOURCES src/o2SimpleTracksAnalysis.cxx
47-
PUBLIC_LINK_LIBRARIES O2::FrameworkRootAnalysisHelpers
48-
COMPONENT_NAME TestWorkflows)
40+
# FIXME: renable when the new ROOT is used
41+
#o2_add_dpl_workflow(d0-analysis
42+
# SOURCES src/o2D0Analysis.cxx
43+
# PUBLIC_LINK_LIBRARIES O2::FrameworkRootAnalysisHelpers
44+
# COMPONENT_NAME TestWorkflows)
45+
#
46+
#o2_add_dpl_workflow(simple-tracks-analysis
47+
# SOURCES src/o2SimpleTracksAnalysis.cxx
48+
# PUBLIC_LINK_LIBRARIES O2::FrameworkRootAnalysisHelpers
49+
# COMPONENT_NAME TestWorkflows)
4950

5051
o2_add_dpl_workflow(analysis-task-example
5152
SOURCES src/o2AnalysisTaskExample.cxx

0 commit comments

Comments
 (0)