Skip to content

Commit b03fd5c

Browse files
committed
Glo: only initialzed AB geom helper up to lowest layer
We can skip initializing the layers below the lowest allowed AB layer. This allows to run the AB for ITS3 otherwise the initialization of the RecoGeomHelper is not well defined and crashed for layers < 3 since the chip mapping is not well defined. Currently we anyways allow AB tracks only to go down to layer 3 by default and this might not change for Run 4 anytime soon. If it does the RecoGeomHelper class has to be adapted then. Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 18d9930 commit b03fd5c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ void MatchTPCITS::init()
245245
}
246246
#endif
247247

248-
if (mParams->runAfterBurner) { // only used in AfterBurner
249-
mRGHelper.init(); // prepare helper for TPC track / ITS clusters matching
248+
if (mParams->runAfterBurner) { // only used in AfterBurner
249+
mRGHelper.init(mParams->lowestLayerAB); // prepare helper for TPC track / ITS clusters matching
250250
}
251251

252252
clear();

Detectors/ITSMFT/ITS/reconstruction/include/ITSReconstruction/RecoGeomHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct RecoGeomHelper {
103103
static constexpr float ladderWidth() { return o2::itsmft::SegmentationAlpide::SensorSizeRows; }
104104
static constexpr float ladderWidthInv() { return 1. / ladderWidth(); }
105105

106-
void init();
106+
void init(int minLayer = 0, int maxLayer = getNLayers());
107107
void print() const;
108108

109109
ClassDefNV(RecoGeomHelper, 0);

Detectors/ITSMFT/ITS/reconstruction/src/RecoGeomHelper.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ void RecoGeomHelper::RecoLayer::print() const
229229
}
230230

231231
//_____________________________________________________________________
232-
void RecoGeomHelper::init()
232+
void RecoGeomHelper::init(int minLayer, int maxLayer)
233233
{
234-
for (int il = int(layers.size()); il--;) {
234+
for (int il = maxLayer; --il >= minLayer;) {
235235
auto& lr = layers[il];
236236
lr.id = il;
237237
lr.init();

0 commit comments

Comments
 (0)