@@ -131,10 +131,10 @@ void Alice3Absorber::ConstructGeometry()
131131 }
132132
133133 auto & passiveBaseParam = Alice3PassiveBaseParam::Instance ();
134- int nSections = (passiveBaseParam.mDetLayout == o2::passive::DetLayout::SteppedAbsorber) ? 6 : 18 ;
135- TGeoPcon* absorings = new TGeoPcon (0 ., 360 ., nSections);
134+ TGeoPcon* absorings = nullptr ;
136135 switch (passiveBaseParam.mDetLayout ) {
137136 case o2::passive::DetLayout::StandardRadius:
137+ absorings = new TGeoPcon (0 ., 360 ., 18 );
138138 absorings->DefineSection (0 , 500 , 236 , 274 );
139139 absorings->DefineSection (1 , 400 , 236 , 274 );
140140 absorings->DefineSection (2 , 400 , 232.5 , 277.5 );
@@ -155,7 +155,7 @@ void Alice3Absorber::ConstructGeometry()
155155 absorings->DefineSection (17 , -500 , 236 , 274 );
156156 break ;
157157 case o2::passive::DetLayout::ReducedRadius:
158- case o2::passive::DetLayout::Version2:
158+ absorings = new TGeoPcon ( 0 ., 360 ., 18 );
159159 absorings->DefineSection (0 , 500 , 201 , 239 );
160160 absorings->DefineSection (1 , 400 , 201 , 239 );
161161 absorings->DefineSection (2 , 400 , 197.5 , 242.5 );
@@ -178,12 +178,13 @@ void Alice3Absorber::ConstructGeometry()
178178 case o2::passive::DetLayout::SteppedAbsorber:
179179 // Geometria 6 (Ian/tesis): Rext=290 constante, escalon en Rmin.
180180 // Externas 45 cm (Rmin=245), central 70 cm (Rmin=220). Ref: Ian DetectorConstruction.cc abs_thickness={45,70,45}
181+ absorings = new TGeoPcon (0 ., 360 ., 6 );
181182 absorings->DefineSection (0 , -500 , 245 , 290 );
182183 absorings->DefineSection (1 , -300 , 245 , 290 );
183184 absorings->DefineSection (2 , -300 , 220 , 290 );
184- absorings->DefineSection (3 , 300 , 220 , 290 );
185- absorings->DefineSection (4 , 300 , 245 , 290 );
186- absorings->DefineSection (5 , 500 , 245 , 290 );
185+ absorings->DefineSection (3 , 300 , 220 , 290 );
186+ absorings->DefineSection (4 , 300 , 245 , 290 );
187+ absorings->DefineSection (5 , 500 , 245 , 290 );
187188 break ;
188189 default :
189190 LOG (fatal) << " Unknown detector layout " << passiveBaseParam.mDetLayout ;
0 commit comments