Skip to content

Commit 7eaa964

Browse files
authored
DPL Analysis: Table definition rewrite (AliceO2Group#13664)
1 parent 8d75c84 commit 7eaa964

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1917
-1409
lines changed

Detectors/AOD/include/AODProducerWorkflow/AODProducerHelpers.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <boost/functional/hash.hpp>
1919
#include <boost/tuple/tuple.hpp>
2020
#include <boost/unordered_map.hpp>
21-
#include <string>
22-
#include <vector>
2321
#include <Framework/AnalysisHelpers.h>
2422

2523
namespace o2::aodhelpers
@@ -55,7 +53,7 @@ auto createTableCursor(framework::ProcessingContext& pc)
5553
framework::Produces<T> c;
5654
c.resetCursor(pc.outputs()
5755
.make<framework::TableBuilder>(framework::OutputForTable<T>::ref()));
58-
c.setLabel(o2::aod::MetadataTrait<T>::metadata::tableLabel());
56+
c.setLabel(aod::label<T::ref>());
5957
return c;
6058
}
6159
} // namespace o2::aodhelpers

Detectors/AOD/include/AODProducerWorkflow/AODProducerWorkflowSpec.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "DataFormatsTRD/TrackTRD.h"
2222
#include "DetectorsBase/GRPGeomHelper.h"
2323
#include "DetectorsBase/Propagator.h"
24-
#include "Framework/AnalysisHelpers.h"
2524
#include "Framework/DataProcessorSpec.h"
2625
#include "Framework/Task.h"
2726
#include "ReconstructionDataFormats/GlobalTrackID.h"
@@ -36,7 +35,6 @@
3635
#include <cstdint>
3736
#include <limits>
3837
#include <set>
39-
#include <string>
4038
#include <vector>
4139
#include <random>
4240
using namespace o2::framework;

Detectors/AOD/src/StandaloneAODProducer.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void fillMCollisionTable(o2::steer::MCKinematicsReader const& mcreader)
9494

9595
TFile outfile("aod.root", "UPDATE");
9696
{
97-
TableToTree t2t(mccoltable, &outfile, aod::MetadataTrait<o2::aod::McCollisions>::metadata::tableLabel());
97+
TableToTree t2t(mccoltable, &outfile, aod::description_str(aod::signature<o2::aod::McCollisions::ref>()).data());
9898
t2t.addAllBranches();
9999
t2t.process();
100100
}
@@ -200,12 +200,12 @@ void fillCollisionAndTrackTable()
200200
f.Close();
201201
TFile outfile("aod.root", "RECREATE");
202202
{
203-
TableToTree t2t(colltable, &outfile, aod::MetadataTrait<o2::aod::Collisions>::metadata::tableLabel());
203+
TableToTree t2t(colltable, &outfile, aod::description_str(aod::signature<o2::aod::Collisions::ref>()).data());
204204
t2t.addAllBranches();
205205
t2t.process();
206206
}
207207
{
208-
TableToTree t2t(tracktable, &outfile, "Tracks" /* aod::MetadataTrait<o2::aod::Tracks>::metadata::tableLabel() */);
208+
TableToTree t2t(tracktable, &outfile, aod::description_str(aod::signature<o2::aod::StoredTracks::ref>()).data());
209209
t2t.addAllBranches();
210210
t2t.process();
211211
}

Framework/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ add_executable(o2-test-framework-core
236236
test/test_Services.cxx
237237
test/test_StringHelpers.cxx
238238
test/test_StaticFor.cxx
239+
test/test_TableSpawner.cxx
239240
test/test_TMessageSerializer.cxx
240241
test/test_TableBuilder.cxx
241242
test/test_TimeParallelPipelining.cxx

0 commit comments

Comments
 (0)