Skip to content

Commit e5814a7

Browse files
committed
Fixed enum casting
1 parent e470025 commit e5814a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct TRKBaseParam : public o2::conf::ConfigurableParamHelper<TRKBaseParam> {
3636
float serviceTubeX0 = 0.02f; // X0 Al2O3
3737
Bool_t irisOpen = false;
3838

39-
eOverallGeom overallGeom = kDefaultRadii; // Overall geometry option, to be used in Detector::buildTRKNewVacuumVessel
39+
eOverallGeom overallGeom = kDefaultRadii; // Overall geometry option, to be used in Detector::buildTRKMiddleOuterLayers
4040

4141
eLayout layoutML = kCylinder; // Type of segmentation for the middle layers
4242
eLayout layoutOL = kCylinder; // Type of segmentation for the outer layers

Detectors/Upgrades/ALICE3/TRK/simulation/src/Detector.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "TRKSimulation/VDSensorRegistry.h"
2424

2525
#include <string>
26+
#include <type_traits>
2627

2728
using o2::trk::Hit;
2829

@@ -134,7 +135,7 @@ void Detector::buildTRKMiddleOuterLayers()
134135
mLayers.emplace_back(7, GeometryTGeo::getTRKLayerPattern() + std::to_string(7), 80.f, 20, 100.e-3);
135136
break;
136137
default:
137-
LOGP(warning, "Unknown option {} for buildTRKNewVacuumVessel", trkPars.overallGeom);
138+
LOGP(fatal, "Unknown option {} for buildTRKMiddleOuterLayers", static_cast<std::underlying_type_t<o2::trk::eOverallGeom>>(trkPars.overallGeom));
138139
break;
139140
}
140141

0 commit comments

Comments
 (0)