Skip to content

Commit d76f582

Browse files
committed
Make forward and backward directions mirrored, front and back faces swap based on direction
1 parent 037580e commit d76f582

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Detectors/Upgrades/ALICE3/FT3/simulation/src/FT3Module.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ void FT3Module::add2x1KaptonVolume(
242242
);
243243
}
244244

245-
// TODO FOR TOMORROW 25/03: swap front and back for backward eta region, so that front faces the interaction region.
246-
247245
/*
248246
* This function adds a single sensor (currently 2.5x3.2mm) to the given mother volume
249247
* at the given (x,y,z) position of the module.
@@ -375,9 +373,13 @@ void FT3Module::create_layout_scopingV3(double mZ, int layerNumber, int directio
375373
: y_positionsPosNeg[i_stave].second;
376374
double y_mid = positions[i_y_pos].first + Constants::sensor2x1_height / 2;
377375

378-
// get which side we are on
379-
bool isFront = Constants::staveOnFront[i_stave];
380-
376+
// get which side we are on: if backward discs we mirror from front so it's the same
377+
// layout from the frame of the particle, regardless which direction
378+
bool isFront;
379+
if (!direction) // direction = 0 is forward
380+
isFront = Constants::staveOnFront[i_stave];
381+
else
382+
isFront = !(Constants::staveOnFront[i_stave]);
381383
/*
382384
* we build the volume from the outside in, starting with the silicon,
383385
* then glue & materials towards the stave. Depending on whether it's front or back,

0 commit comments

Comments
 (0)