@@ -101,7 +101,7 @@ void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::str
101101 const double staveTiltAngle = itofSegmented ? 10.0 : 0.0 ; // degrees
102102 const int modulesPerStave = itofSegmented ? 10 : 0 ; // number of modules per stave in segmented case
103103 mITOFLayer = ITOFLayer (name,
104- dInnerTof.first , 0 .f , dInnerTof.second , 0 .f , x2x0, ITOFLayer::kBarrelSegmented ,
104+ dInnerTof.first , 0 .f , dInnerTof.second , 0 .f , x2x0, itofSegmented ? ITOFLayer::kBarrelSegmented : ITOFLayer:: kBarrel ,
105105 nStaves, staveWidth, staveTiltAngle, modulesPerStave);
106106 }
107107 if (otof) { // oTOF
@@ -111,7 +111,7 @@ void Detector::configLayers(bool itof, bool otof, bool ftof, bool btof, std::str
111111 const double staveTiltAngle = otofSegmented ? 5.0 : 0.0 ; // degrees
112112 const int modulesPerStave = otofSegmented ? 54 : 0 ; // number of modules per stave in segmented case
113113 mOTOFLayer = OTOFLayer (name,
114- dOuterTof.first , 0 .f , dOuterTof.second , 0 .f , x2x0, OTOFLayer::kBarrelSegmented ,
114+ dOuterTof.first , 0 .f , dOuterTof.second , 0 .f , x2x0, otofSegmented ? OTOFLayer::kBarrelSegmented : OTOFLayer:: kBarrel ,
115115 nStaves, staveWidth, staveTiltAngle, modulesPerStave);
116116 }
117117 if (ftof) {
0 commit comments