@@ -180,9 +180,9 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume)
180180 case kBarrelSegmented : {
181181 // First we create the volume for the whole layer, which will be used as mother volume for the segments
182182 const double avgRadius = 0.5 * (mInnerRadius + mOuterRadius );
183- const double staveSizeX = mStaves .second ; // cm
184- const double staveSizeY = mOuterRadius - mInnerRadius ; // cm
185- const double staveSizeZ = mZLength ; // cm
183+ const double staveSizeX = mStaves .second ; // cm
184+ const double staveSizeY = mOuterRadius - mInnerRadius ; // cm
185+ const double staveSizeZ = mZLength ; // cm
186186
187187 // Build the mother layer tube from the exact inscribed/outscribed radii of a tilted stave rectangle.
188188 const double alpha = mTiltAngle * TMath::DegToRad ();
@@ -238,7 +238,7 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume)
238238 // Now we build a stave from modules
239239 for (int j = 0 ; j < mModulesPerStave ; ++j) {
240240 LOGP (info, " iTOF: Creating module for stave {}/{}" , j + 1 , mModulesPerStave );
241- auto * translation = new TGeoTranslation (0 ., staveSizeY * 0.5 , (j + 0.5 ) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ);
241+ auto * translation = new TGeoTranslation (0 ., staveSizeY * 0.5 , (j + 0.5 ) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ);
242242 staveVol->AddNode (moduleVol, 1 + j, translation);
243243 }
244244
@@ -371,11 +371,10 @@ void OTOFLayer::createLayer(TGeoVolume* motherVolume)
371371 // Now we build a substave from modules
372372 for (int j = 0 ; j < modulesPerSubStave; ++j) {
373373 LOGP (info, " oTOF: Creating module for substave {}/{}" , j + 1 , modulesPerSubStave);
374- auto * translation = new TGeoTranslation (0 ., subStaveSizeY * 0.5 , (j + 0.5 ) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ);
374+ auto * translation = new TGeoTranslation (0 ., subStaveSizeY * 0.5 , (j + 0.5 ) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ);
375375 subStaveVol->AddNode (moduleVol, 1 + j, translation);
376376 }
377377
378-
379378 // Now we build a stave from two substave
380379 for (int i = 0 ; i < 2 ; ++i) {
381380 LOGP (info, " oTOF: Creating substave {}/{} for stave {}/{}" , i + 1 , 2 , 1 , 1 );
0 commit comments