@@ -58,7 +58,7 @@ void Detector::ConstructGeometry()
5858}
5959
6060void 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