Skip to content

Commit 5d1941b

Browse files
committed
ITS/MFT digi: fix for late hits seen by next ROF
The timeInROF passed to registerDigits should be relative to the actual hit ROF not the collision ROF. Thanks to @atriolo for spotting
1 parent f98960a commit 5d1941b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Detectors/ITSMFT/common/simulation/src/Digitizer.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
404404
// fire the pixels assuming Poisson(n_response_electrons)
405405
o2::MCCompLabel lbl(hit.GetTrackID(), evID, srcID, false);
406406
auto roFrameAbs = mNewROFrame + roFrameRel;
407+
auto timeInROFAbs = timeInROF - roFrameRel * mParams.getROFrameLengthInv(lay); // account for hit migration to next ROF with roFrameRel>0
407408
for (int irow = rowSpan; irow--;) {
408409
uint16_t rowIS = irow + rowS;
409410
for (int icol = colSpan; icol--;) {
@@ -424,7 +425,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
424425
continue;
425426
}
426427
//
427-
registerDigits(chip, roFrameAbs, timeInROF, nFrames, rowIS, colIS, nEle, lbl, lay);
428+
registerDigits(chip, roFrameAbs, timeInROFAbs, nFrames, rowIS, colIS, nEle, lbl, lay);
428429
}
429430
}
430431
}

0 commit comments

Comments
 (0)