Skip to content

Commit 2dcec2f

Browse files
authored
Add support for ITS3 in Detector class
1 parent 742b14c commit 2dcec2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Detectors/ITSMFT/ITS/simulation/src/Detector.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ using Segmentation = o2::itsmft::SegmentationAlpide;
6161
using namespace o2::its;
6262

6363
#ifdef ENABLE_UPGRADES
64+
#include "ITS3Simulation/DescriptorInnerBarrelITS3.h"
6465
using namespace o2::its3;
6566
#endif
6667

@@ -1117,11 +1118,15 @@ void Detector::addAlignableVolumes() const
11171118
Int_t lastUID = 0;
11181119
for (Int_t lr = 0; lr < mNumberLayers; lr++) {
11191120
if (lr < mNumberInnerLayers) {
1121+
#ifdef ENABLE_UPGRADES
11201122
if (detName == "ITS") {
11211123
((DescriptorInnerBarrelITS2*)mDescriptorIB.get())->addAlignableVolumesLayer(lr, mWrapperLayerId[lr], path, lastUID);
11221124
} else {
11231125
((DescriptorInnerBarrelITS3*)mDescriptorIB.get())->addAlignableVolumesLayer(lr, mWrapperLayerId[lr], path, lastUID);
11241126
}
1127+
#else
1128+
((DescriptorInnerBarrelITS2*)mDescriptorIB.get())->addAlignableVolumesLayer(lr, mWrapperLayerId[lr], path, lastUID);
1129+
#endif
11251130
} else {
11261131
addAlignableVolumesLayer(lr, path, lastUID);
11271132
}

0 commit comments

Comments
 (0)