Skip to content

Commit 8be3db1

Browse files
committed
Naming
1 parent abe0a3d commit 8be3db1

File tree

14 files changed

+387
-3148
lines changed

14 files changed

+387
-3148
lines changed

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/GeometryTGeo.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
235235
std::vector<float> mCacheRefXMLOT; /// cache for X of ML and OT
236236
std::vector<float> mCacheRefAlphaMLOT; /// cache for sensor ref alpha ML and OT
237237

238-
eLayout mLayoutML; // Type of segmentation for the middle layers
239-
eLayout mLayoutOT; // Type of segmentation for the outer layers
238+
eMLOTLayout mLayoutMLOT; // ML and OT detector layout design
240239

241240
private:
242241
static std::unique_ptr<o2::trk::GeometryTGeo> sInstance;

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/GeometryTGeo_copy.h

Lines changed: 0 additions & 246 deletions
This file was deleted.

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/TRKBaseParam.h

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ namespace o2
1919
{
2020
namespace trk
2121
{
22-
23-
enum eOverallGeom {
24-
kDefaultRadii = 0, // After Upgrade Days March 2024
25-
kModRadii,
26-
};
27-
28-
enum eLayout {
29-
kCylinder = 0,
30-
kTurboStaves,
31-
kStaggered,
32-
};
33-
3422
enum eVDLayout {
3523
kIRIS4 = 0,
3624
kIRISFullCyl,
@@ -39,6 +27,11 @@ enum eVDLayout {
3927
kIRIS4a,
4028
};
4129

30+
enum eMLOTLayout {
31+
kCylindrical = 0,
32+
kSegmented,
33+
};
34+
4235
enum eSrvLayout {
4336
kPeacockv1 = 0,
4437
kLOISymm,
@@ -49,16 +42,12 @@ struct TRKBaseParam : public o2::conf::ConfigurableParamHelper<TRKBaseParam> {
4942
float serviceTubeX0 = 0.02f; // X0 Al2O3
5043
Bool_t irisOpen = false;
5144

52-
eOverallGeom overallGeom = kDefaultRadii; // Overall geometry option, to be used in Detector::buildTRKMiddleOuterLayers
53-
54-
eLayout layoutML = kTurboStaves; // Type of segmentation for the middle layers
55-
eLayout layoutOT = kStaggered; // Type of segmentation for the outer layers
56-
eVDLayout layoutVD = kIRIS4; // VD detector layout design
57-
eSrvLayout layoutSRV = kPeacockv1; // Layout of services
45+
eVDLayout layoutVD = kIRIS4; // VD detector layout design
46+
eMLOTLayout layoutMLOT = kSegmented; // ML and OT detector layout design
47+
eSrvLayout layoutSRV = kPeacockv1; // Layout of services
5848

59-
eLayout getLayoutML() const { return layoutML; }
60-
eLayout getLayoutOT() const { return layoutOT; }
6149
eVDLayout getLayoutVD() const { return layoutVD; }
50+
eMLOTLayout getLayoutMLOT() const { return layoutMLOT; }
6251
eSrvLayout getLayoutSRV() const { return layoutSRV; }
6352

6453
O2ParamDef(TRKBaseParam, "TRKBase");

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/TRKBaseParam_copy.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

Detectors/Upgrades/ALICE3/TRK/base/src/GeometryTGeo.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ void GeometryTGeo::Build(int loadTrans)
7676
LOGP(fatal, "Geometry is not loaded");
7777
}
7878

79-
mLayoutML = o2::trk::TRKBaseParam::Instance().getLayoutML();
80-
mLayoutOT = o2::trk::TRKBaseParam::Instance().getLayoutOT();
79+
mLayoutMLOT = o2::trk::TRKBaseParam::Instance().getLayoutMLOT();
8180

82-
LOG(debug) << "Layout ML: " << mLayoutML << ", Layout OL: " << mLayoutOT;
81+
LOG(debug) << "Overall layout ML and OT: " << mLayoutMLOT;
8382

8483
mNumberOfLayersMLOT = extractNumberOfLayersMLOT();
8584
mNumberOfPetalsVD = extractNumberOfPetalsVD();
@@ -403,9 +402,9 @@ TString GeometryTGeo::getMatrixPath(int index) const
403402
TString path = Form("/cave_1/barrel_1/%s_2/", GeometryTGeo::getTRKVolPattern());
404403

405404
// handling cylindrical configuration for ML and/or OT
406-
// needed bercause of the different numbering scheme in the geometry for the cylindrical case wrt the staggered and turbo ones
405+
// needed because of the different numbering scheme in the geometry for the cylindrical case wrt the staggered and turbo ones
407406
if (subDetID == 1) {
408-
if ((layer < 4 && mLayoutML == eLayout::kCylinder) || (layer > 3 && mLayoutOT == eLayout::kCylinder)) {
407+
if ((layer < 4 && mLayoutMLOT == eMLOTLayout::kCylindrical) || (layer > 3 && mLayoutMLOT == MLOTLayout::kCylindrical)) {
409408
stave = 1;
410409
mod = 1;
411410
chip = 1;

0 commit comments

Comments
 (0)