Skip to content

Commit 81fdf81

Browse files
committed
Clean
1 parent 131ef11 commit 81fdf81

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

Detectors/Upgrades/ALICE3/Passive/include/Alice3DetectorsPassive/PassiveBaseParam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct Alice3PassiveBaseParam : public o2::conf::ConfigurableParamHelper<Alice3P
4242

4343
MagnetLayout mLayout = MagnetLayout::AluminiumStabilizer; // Magnet layout: Aluminium or Copper stabilizer
4444
// DetLayout mDetLayout = DetLayout::StandardRadius; // Detector layout: Standard or Reduced radius
45-
DetLayout mDetLayout = o2::passive::DetLayout::SteppedAbsorber; // Detector layout: Standard or Reduced radius
45+
DetLayout mDetLayout = o2::passive::DetLayout::SteppedAbsorber; // Detector layout: Standard or Reduced radius
4646

4747
O2ParamDef(Alice3PassiveBaseParam, "Alice3PassiveBase");
4848
};

Detectors/Upgrades/ALICE3/Passive/src/Absorber.cxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)