Skip to content

Commit aa6a0bc

Browse files
authored
Modify configLayers to include sensorThickness
Added sensorThickness parameter to configLayers function for ITOF and OTOF layers.
1 parent 15484d6 commit aa6a0bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void Detector::ConstructGeometry()
5858
}
5959

6060
void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::string pattern, bool itofSegmented, bool otofSegmented,
61-
const float x2x0)
61+
const float x2x0, const float sensorThickness)
6262
{
6363

6464
const std::pair<float, float> dInnerTof = {21.f, 129.f}; // Radius and length
@@ -102,7 +102,7 @@ void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::str
102102
const int modulesPerStave = itofSegmented ? 10 : 0; // number of modules per stave in segmented case
103103
mITOFLayer = ITOFLayer(name,
104104
dInnerTof.first, 0.f, dInnerTof.second, 0.f, x2x0, itofSegmented ? ITOFLayer::kBarrelSegmented : ITOFLayer::kBarrel,
105-
nStaves, staveWidth, staveTiltAngle, modulesPerStave);
105+
nStaves, staveWidth, staveTiltAngle, modulesPerStave, itofSegmented ? sensorThickness : 0.0f);
106106
}
107107
if (otof) { // oTOF
108108
const std::string name = GeometryTGeo::getOTOFLayerPattern();
@@ -112,7 +112,7 @@ void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::str
112112
const int modulesPerStave = otofSegmented ? 54 : 0; // number of modules per stave in segmented case
113113
mOTOFLayer = OTOFLayer(name,
114114
dOuterTof.first, 0.f, dOuterTof.second, 0.f, x2x0, otofSegmented ? OTOFLayer::kBarrelSegmented : OTOFLayer::kBarrel,
115-
nStaves, staveWidth, staveTiltAngle, modulesPerStave);
115+
nStaves, staveWidth, staveTiltAngle, modulesPerStave, otofSegmented ? sensorThickness : 0.0f);
116116
}
117117
if (ftof) {
118118
const std::string name = GeometryTGeo::getFTOFLayerPattern();

0 commit comments

Comments
 (0)