Skip to content

Commit 33bc78d

Browse files
committed
Update
1 parent c867f09 commit 33bc78d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::str
9595
} else {
9696
LOG(fatal) << "IOTOF layer pattern " << pattern << " not recognized, exiting";
9797
}
98-
if (itof) {
99-
if (itofSegmented)
100-
mITOFLayer = ITOFLayer(std::string{GeometryTGeo::getITOFLayerPattern()}, radiusInnerTof, 0.f, lengthInnerTof, 0.f, 0.02f, ITOFLayer::kBarrelSegmented,
101-
24, 5.42, 80, 10); // iTOF
102-
else
103-
mITOFLayer = ITOFLayer(std::string{GeometryTGeo::getITOFLayerPattern()}, radiusInnerTof, 0.f, lengthInnerTof, 0.f, 0.02f, ITOFLayer::kBarrel); // iTOF
98+
if (itof) { // iTOF
99+
mITOFLayer = itofSegmented ? ITOFLayer(std::string{GeometryTGeo::getITOFLayerPattern()},
100+
radiusInnerTof, 0.f, lengthInnerTof, 0.f, 0.02f, ITOFLayer::kBarrelSegmented,
101+
24, 5.42, 80, 10)
102+
: ITOFLayer(std::string{GeometryTGeo::getITOFLayerPattern()},
103+
radiusInnerTof, 0.f, lengthInnerTof, 0.f, 0.02f, ITOFLayer::kBarrel);
104104
}
105-
if (otof) {
106-
if (otofSegmented)
107-
mOTOFLayer = OTOFLayer(std::string{GeometryTGeo::getOTOFLayerPattern()}, radiusOuterTof, 0.f, lengthOuterTof, 0.f, 0.02f, OTOFLayer::kBarrelSegmented,
108-
62, 9.74, 432, 5); // oTOF
109-
else
110-
mOTOFLayer = OTOFLayer(std::string{GeometryTGeo::getOTOFLayerPattern()}, radiusOuterTof, 0.f, lengthOuterTof, 0.f, 0.02f, OTOFLayer::kBarrel); // oTOF
105+
if (otof) { // oTOF
106+
mOTOFLayer = otofSegmented ? OTOFLayer(std::string{GeometryTGeo::getOTOFLayerPattern()},
107+
radiusOuterTof, 0.f, lengthOuterTof, 0.f, 0.02f, OTOFLayer::kBarrelSegmented,
108+
62, 9.74, 432, 5)
109+
: OTOFLayer(std::string{GeometryTGeo::getOTOFLayerPattern()},
110+
radiusOuterTof, 0.f, lengthOuterTof, 0.f, 0.02f, OTOFLayer::kBarrel);
111111
}
112112
if (ftof) {
113113
mFTOFLayer = FTOFLayer(std::string{GeometryTGeo::getFTOFLayerPattern()}, radiusRangeDiskTof.first, radiusRangeDiskTof.second, 0.f, zForwardTof, 0.02f, FTOFLayer::kDisk); // fTOF

0 commit comments

Comments
 (0)