Skip to content

Commit ccc7333

Browse files
committed
ITS: create artefacts labels only on demand
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 3f20605 commit ccc7333

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Configuration.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ struct TrackingParameters {
8080
float TrackFollowerNSigmaCutZ = 1.f;
8181
float TrackFollowerNSigmaCutPhi = 1.f;
8282

83+
bool createArtefactLabels{false};
84+
8385
bool PrintMemory = false; // print allocator usage in epilog report
8486
size_t MaxMemory = std::numeric_limits<size_t>::max();
8587
bool DropTFUponFailure = false;

Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackingConfigParam.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ struct TrackerParamConfig : public o2::conf::ConfigurableParamHelper<TrackerPara
9797
bool doUPCIteration = false; // Perform an additional iteration for UPC events on tagged vertices. You want to combine this config with VertexerParamConfig.nIterations=2
9898
int nIterations = MaxIter; // overwrite the number of iterations
9999

100+
bool createArtefactLabels{false}; // create on-the-fly labels for the artefacts
101+
100102
int nThreads = 1;
101103
bool printMemory = false;
102104
size_t maxMemory = std::numeric_limits<size_t>::max();

Detectors/ITSMFT/ITS/tracking/src/Configuration.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ std::vector<TrackingParameters> TrackingMode::getTrackingParameters(TrackingMode
187187
p.MinPt[lslot] *= bFactor;
188188
}
189189

190+
p.createArtefactLabels = tc.createArtefactLabels;
191+
190192
p.PrintMemory = tc.printMemory;
191193
p.MaxMemory = tc.maxMemory;
192194
p.DropTFUponFailure = tc.dropTFUponFailure;

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void TrackerTraits<nLayers>::computeLayerTracklets(const int iteration, int iROF
272272
});
273273

274274
/// Create tracklets labels
275-
if (mTimeFrame->hasMCinformation()) {
275+
if (mTimeFrame->hasMCinformation() && mTrkParams[iteration].createArtefactLabels) {
276276
tbb::parallel_for(
277277
tbb::blocked_range<int>(0, mTrkParams[iteration].TrackletsPerRoad()),
278278
[&](const tbb::blocked_range<int>& Layers) {
@@ -313,7 +313,7 @@ void TrackerTraits<nLayers>::computeLayerCells(const int iteration)
313313
if (iLayer > 0) {
314314
deepVectorClear(mTimeFrame->getCellsLookupTable()[iLayer - 1]);
315315
}
316-
if (mTimeFrame->hasMCinformation()) {
316+
if (mTimeFrame->hasMCinformation() && mTrkParams[iteration].createArtefactLabels) {
317317
deepVectorClear(mTimeFrame->getCellsLabel(iLayer));
318318
}
319319
}
@@ -458,7 +458,7 @@ void TrackerTraits<nLayers>::computeLayerCells(const int iteration)
458458
});
459459

460460
/// Create cells labels
461-
if (mTimeFrame->hasMCinformation()) {
461+
if (mTimeFrame->hasMCinformation() && mTrkParams[iteration].createArtefactLabels) {
462462
tbb::parallel_for(
463463
tbb::blocked_range<int>(0, mTrkParams[iteration].CellsPerRoad()),
464464
[&](const tbb::blocked_range<int>& Layers) {

0 commit comments

Comments
 (0)