Skip to content

Commit b666bb2

Browse files
authored
Simplify chip size calculation in Layer.cxx
Removed sensor thickness adjustment for chip size calculation.
1 parent c32ce1e commit b666bb2

File tree

1 file changed

+4
-7
lines changed
  • Detectors/Upgrades/ALICE3/IOTOF/simulation/src

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,10 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume)
187187
setModuleStyle(moduleVol);
188188

189189
// Now we create the volume of the chip, which is the same for all modules
190-
const int chipsPerModuleX = 2; // we assume that each module is divided in 2 chips along the x direction
191-
const int chipsPerModuleZ = 2; // we assume that each module is divided in 2 chips along the z direction
192-
const double chipSizeX = moduleSizeX / chipsPerModuleX; // cm
193-
const double chipSizeY = moduleSizeY - mSensorThickness; // cm
194-
if (chipSizeY <= 0) {
195-
LOG(fatal) << "Invalid configuration: sensor thickness " << mSensorThickness << " cm is too large for module size " << moduleSizeY << " cm, it leaves no space for the chip";
196-
}
190+
const int chipsPerModuleX = 2; // we assume that each module is divided in 2 chips along the x direction
191+
const int chipsPerModuleZ = 2; // we assume that each module is divided in 2 chips along the z direction
192+
const double chipSizeX = moduleSizeX / chipsPerModuleX; // cm
193+
const double chipSizeY = moduleSizeY; // cm
197194
const double chipSizeZ = moduleSizeZ / chipsPerModuleZ; // cm
198195
TGeoBBox* chip = new TGeoBBox(chipSizeX * 0.5, chipSizeY * 0.5, chipSizeZ * 0.5);
199196
TGeoVolume* chipVol = new TGeoVolume(chipName, chip, medSi);

0 commit comments

Comments
 (0)