@@ -416,15 +416,15 @@ TString GeometryTGeo::getMatrixPath(int index) const
416416 // build the path
417417 if (subDetID == 0 ) { // VD
418418 if (disk >= 0 ) {
419- path += Form (" %s_%d_%d/" , getTRKPetalAssemblyPattern (), petalcase, petalcase + 1 ); // PETAL_n
420- path += Form (" %s%d_%s%d_1/" , getTRKPetalPattern (), petalcase, getTRKPetalDiskPattern (), disk); // PETALCASEx_DISKy_1
421- // path += Form("%s%d_%s%d_%s%d_1/", getTRKPetalPattern(), petalcase, getTRKPetalDiskPattern(), disk, getTRKChipPattern(), disk); // PETALCASEx_DISKy_TRKChipy_1
419+ path += Form (" %s_%d_%d/" , getTRKPetalAssemblyPattern (), petalcase, petalcase + 1 ); // PETAL_n
420+ path += Form (" %s%d_%s%d_1/" , getTRKPetalPattern (), petalcase, getTRKPetalDiskPattern (), disk); // PETALCASEx_DISKy_1
421+ path += Form (" %s%d_%s%d_%s%d_1/" , getTRKPetalPattern (), petalcase, getTRKPetalDiskPattern (), disk, getTRKChipPattern (), disk); // PETALCASEx_DISKy_TRKChipy_1
422422 path += Form (" %s%d_%s%d_%s%d_1/" , getTRKPetalPattern (), petalcase, getTRKPetalDiskPattern (), disk, getTRKSensorPattern (), disk); // PETALCASEx_DISKy_TRKSensory_1
423423 } else if (layer >= 0 ) {
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 }
0 commit comments