Skip to content

Commit e3dcde2

Browse files
fgrosaTimoWilken
authored andcommitted
Add protection for upgrades
1 parent f3c3fbc commit e3dcde2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,9 @@ void Detector::constructDetectorGeometry()
946946
if (detName == "ITS") {
947947
((DescriptorInnerBarrelITS2*)mDescriptorIB.get())->createServices(wrapVols[0]);
948948
} else if (detName == "IT3" && mNumberInnerLayers == 3) {
949+
#ifdef ENABLE_UPGRADES
949950
((DescriptorInnerBarrelITS3*)mDescriptorIB.get())->createServices(wrapVols[0]);
951+
#endif
950952
}
951953

952954
mServicesGeometry = new V3Services(detName);

0 commit comments

Comments
 (0)