Skip to content

Commit 81856e8

Browse files
committed
rebase O2 to new table system
1 parent 8efc7bd commit 81856e8

26 files changed

+6085
-6070
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(o2::aod::Hash<T::ref.label_hash>::str);
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"
@@ -32,7 +31,6 @@
3231
#include "GlobalTracking/MatchGlobalFwd.h"
3332

3433
#include <set>
35-
#include <string>
3634
#include <vector>
3735
#include <random>
3836
using namespace o2::framework;

Detectors/AOD/src/StandaloneAODProducer.cxx

Lines changed: 2 additions & 2 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, o2::aod::Hash<o2::aod::McCollisions::ref.label_hash>::str);
9898
t2t.addAllBranches();
9999
t2t.process();
100100
}
@@ -200,7 +200,7 @@ 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, o2::aod::Hash<o2::aod::Collisions::ref.label_hash>::str);
204204
t2t.addAllBranches();
205205
t2t.process();
206206
}

0 commit comments

Comments
 (0)