Skip to content

Commit 9a3938a

Browse files
authored
remove overlaps in OTOF staves (#15633)
1 parent 51d8507 commit 9a3938a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • Detectors/Upgrades/ALICE3/IOTOF/simulation/src

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,14 +331,9 @@ void OTOFLayer::createLayer(TGeoVolume* motherVolume)
331331
<< " is not divisible by modulesPerStaveX=" << modulesPerStaveX;
332332
}
333333
const int modulesPerStaveZ = mModulesPerStave / modulesPerStaveX;
334-
const double moduleOverlapZ = 0.7; // cm, 7 mm longitudinal overlap from oTOF V2 specs
335334
const double moduleSizeX = staveSizeX / modulesPerStaveX;
336335
const double moduleSizeY = staveSizeY;
337-
const double moduleSizeZ = (staveSizeZ + (modulesPerStaveZ - 1) * moduleOverlapZ) / modulesPerStaveZ;
338-
const double modulePitchZ = moduleSizeZ - moduleOverlapZ;
339-
if (modulePitchZ <= 0.0) {
340-
LOG(fatal) << "Invalid oTOF module overlap " << moduleOverlapZ << " cm for module size " << moduleSizeZ << " cm";
341-
}
336+
const double moduleSizeZ = staveSizeZ / modulesPerStaveZ;
342337
TGeoBBox* module = new TGeoBBox(moduleSizeX * 0.5, moduleSizeY * 0.5, moduleSizeZ * 0.5);
343338
TGeoVolume* moduleVol = new TGeoVolume(moduleName, module, medAir);
344339
setModuleStyle(moduleVol);
@@ -389,7 +384,7 @@ void OTOFLayer::createLayer(TGeoVolume* motherVolume)
389384
for (int j = 0; j < modulesPerStaveZ; ++j) {
390385
LOGP(info, "oTOF: Creating module {}/{} for stave {}/{}", i + 1, modulesPerStaveX, j + 1, modulesPerStaveZ);
391386
const double tx = (i + 0.5) * moduleSizeX - 0.5 * staveSizeX;
392-
const double tz = -0.5 * staveSizeZ + 0.5 * moduleSizeZ + j * modulePitchZ;
387+
const double tz = -0.5 * staveSizeZ + (j + 0.5) * moduleSizeZ;
393388
auto* translation = new TGeoTranslation(tx, 0, tz);
394389
staveVol->AddNode(moduleVol, 1 + i * modulesPerStaveZ + j, translation);
395390
}

0 commit comments

Comments
 (0)