@@ -1106,7 +1106,7 @@ void Detector::addAlignableVolumes() const
11061106
11071107 TString detName = GetName ();
11081108 TString path = Form (" /cave_1/barrel_1/%s_2" , GeometryTGeo::getITSVolPattern ());
1109- TString sname = GeometryTGeo::composeSymNameITS ((detName == " IT3 " ) );
1109+ TString sname = GeometryTGeo::composeSymNameITS ();
11101110
11111111 LOG (debug) << sname << " <-> " << path;
11121112
@@ -1119,13 +1119,13 @@ void Detector::addAlignableVolumes() const
11191119 if (lr < mNumberInnerLayers ) {
11201120 if (detName == " ITS" ) {
11211121 ((DescriptorInnerBarrelITS2*)mDescriptorIB .get ())->addAlignableVolumesLayer (lr, mWrapperLayerId [lr], path, lastUID);
1122+ } else {
1123+ ((DescriptorInnerBarrelITS3*)mDescriptorIB .get ())->addAlignableVolumesLayer (lr, mWrapperLayerId [lr], path, lastUID);
11221124 }
11231125 } else {
11241126 addAlignableVolumesLayer (lr, path, lastUID);
11251127 }
11261128 }
1127-
1128- return ;
11291129}
11301130
11311131void Detector::addAlignableVolumesLayer (int lr, TString& parent, Int_t& lastUID) const
@@ -1148,8 +1148,6 @@ void Detector::addAlignableVolumesLayer(int lr, TString& parent, Int_t& lastUID)
11481148 for (Int_t hb = start; hb < nhbarrel; hb++) {
11491149 addAlignableVolumesHalfBarrel (lr, hb, path, lastUID);
11501150 }
1151-
1152- return ;
11531151}
11541152
11551153void Detector::addAlignableVolumesHalfBarrel (Int_t lr, Int_t hb, TString& parent, Int_t& lastUID) const
@@ -1177,8 +1175,6 @@ void Detector::addAlignableVolumesHalfBarrel(Int_t lr, Int_t hb, TString& parent
11771175 for (int st = 0 ; st < nstaves; st++) {
11781176 addAlignableVolumesStave (lr, hb, st, path, lastUID);
11791177 }
1180-
1181- return ;
11821178}
11831179
11841180void Detector::addAlignableVolumesStave (Int_t lr, Int_t hb, Int_t st, TString& parent, Int_t& lastUID) const
@@ -1205,8 +1201,6 @@ void Detector::addAlignableVolumesStave(Int_t lr, Int_t hb, Int_t st, TString& p
12051201 for (Int_t sst = start; sst < nhstave; sst++) {
12061202 addAlignableVolumesHalfStave (lr, hb, st, sst, path, lastUID);
12071203 }
1208-
1209- return ;
12101204}
12111205
12121206void Detector::addAlignableVolumesHalfStave (Int_t lr, Int_t hb, Int_t st, Int_t hst, TString& parent, Int_t& lastUID) const
@@ -1236,8 +1230,6 @@ void Detector::addAlignableVolumesHalfStave(Int_t lr, Int_t hb, Int_t st, Int_t
12361230 for (Int_t md = start; md < nmodules; md++) {
12371231 addAlignableVolumesModule (lr, hb, st, hst, md, path, lastUID);
12381232 }
1239-
1240- return ;
12411233}
12421234
12431235void Detector::addAlignableVolumesModule (Int_t lr, Int_t hb, Int_t st, Int_t hst, Int_t md, TString& parent, Int_t& lastUID) const
@@ -1266,8 +1258,6 @@ void Detector::addAlignableVolumesModule(Int_t lr, Int_t hb, Int_t st, Int_t hst
12661258 for (Int_t ic = 0 ; ic < nchips; ic++) {
12671259 addAlignableVolumesChip (lr, hb, st, hst, md, ic, path, lastUID);
12681260 }
1269-
1270- return ;
12711261}
12721262
12731263void Detector::addAlignableVolumesChip (Int_t lr, Int_t hb, Int_t st, Int_t hst, Int_t md, Int_t ch, TString& parent,
0 commit comments