Skip to content

Commit 3c7f531

Browse files
committed
ITS: allow overriding number of iterations for tracker
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 6d2c1d3 commit 3c7f531

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ struct TrackerParamConfig : public o2::conf::ConfigurableParamHelper<TrackerPara
9595
bool overrideBeamEstimation = false; // use beam position from meanVertex CCDB object
9696
int trackingMode = -1; // -1: unset, 0=sync, 1=async, 2=cosmics used by gpuwf only
9797
bool doUPCIteration = false; // Perform an additional iteration for UPC events on tagged vertices. You want to combine this config with VertexerParamConfig.nIterations=2
98+
int nIterations = MaxIter; // overwrite the number of iterations
9899

99100
int nThreads = 1;
100101
bool printMemory = false;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ std::vector<TrackingParameters> TrackingMode::getTrackingParameters(TrackingMode
245245
}
246246
}
247247

248+
if (trackParams.size() > tc.nIterations) {
249+
trackParams.resize(tc.nIterations);
250+
}
251+
248252
return trackParams;
249253
}
250254

0 commit comments

Comments
 (0)