Skip to content

Commit e11a52a

Browse files
atrioloAndrea Sofia Triolo
authored andcommitted
ALICE3-TRK: fix detector ID assignment to hits
1 parent 75a357d commit e11a52a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Detectors/Upgrades/ALICE3/TRK/base/src/GeometryTGeo.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ TString GeometryTGeo::getMatrixPath(int index) const
424424
path += Form("%s_%d_%d/", getTRKPetalAssemblyPattern(), petalcase, petalcase + 1); // PETAL_n
425425
path += Form("%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalLayerPattern(), layer); // PETALCASEx_LAYERy_1
426426
// path += Form("%s%d_%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalLayerPattern(), layer, getTRKStavePattern(), layer); // PETALCASEx_LAYERy_TRKStavey_1
427-
// path += Form("%s%d_%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalLayerPattern(), layer, getTRKChipPattern(), layer); // PETALCASEx_LAYERy_TRKChipy_1
427+
path += Form("%s%d_%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalLayerPattern(), layer, getTRKChipPattern(), layer); // PETALCASEx_LAYERy_TRKChipy_1
428428
path += Form("%s%d_%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalLayerPattern(), layer, getTRKSensorPattern(), layer); // PETALCASEx_LAYERy_TRKSensory_1
429429
}
430430
} else if (subDetID == 1) { // MLOT
@@ -962,9 +962,9 @@ int GeometryTGeo::extractNumberOfChipsPerPetalVD() const
962962

963963
for (int i = 0; i < subNodes->GetEntriesFast(); i++) {
964964
auto* subNode = dynamic_cast<TGeoNode*>(subNodes->At(i));
965-
if (strstr(subNode->GetName(), getTRKSensorPattern()) != nullptr) {
965+
if (strstr(subNode->GetName(), getTRKChipPattern()) != nullptr) {
966966
numberOfChips++;
967-
LOGP(debug, "Found sensor in {}: {}", nodeName, subNode->GetName());
967+
LOGP(debug, "Found chip in {}: {}", nodeName, subNode->GetName());
968968
}
969969
}
970970
}

Detectors/Upgrades/ALICE3/TRK/simulation/src/Detector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void Detector::createGeometry()
266266
// Alternatives: createIRIS5Geometry(vTRK); createIRIS4aGeometry(vTRK);
267267

268268
o2::trk::clearVDSensorRegistry();
269-
o2::trk::createIRISGeometryFullCyl(vTRK);
269+
o2::trk::createIRIS4Geometry(vTRK);
270270

271271
// Fill sensor names from registry right after geometry creation
272272
const auto& regs = o2::trk::vdSensorRegistry();

0 commit comments

Comments
 (0)