Skip to content

Commit 602593e

Browse files
martenoledavidrohr
authored andcommitted
TRD TRAP add Q2 shift
1 parent 9624556 commit 602593e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Detectors/TRD/simulation/src/TrapSimulator.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,7 @@ void TrapSimulator::fitTracklet()
17591759
temp = q2; // temporarily move to 64bit variable
17601760
temp *= mScaleQ;
17611761
q2 = temp >> 32;
1762+
q2 >>= 1; // q2 needs additional shift, since we want the same range as q0 and q1 and q2 is only 6 bit wide
17621763

17631764
// clip the charges
17641765
if (q0 > mMaskQ0Q1) {

0 commit comments

Comments
 (0)