Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Detectors/ITSMFT/common/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
// fire the pixels assuming Poisson(n_response_electrons)
o2::MCCompLabel lbl(hit.GetTrackID(), evID, srcID, false);
auto roFrameAbs = mNewROFrame + roFrameRel;
auto timeInROFAbs = timeInROF - roFrameRel * mParams.getROFrameLengthInv(lay); // account for hit migration to next ROF with roFrameRel>0
for (int irow = rowSpan; irow--;) {
uint16_t rowIS = irow + rowS;
for (int icol = colSpan; icol--;) {
Expand All @@ -424,7 +425,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
continue;
}
//
registerDigits(chip, roFrameAbs, timeInROF, nFrames, rowIS, colIS, nEle, lbl, lay);
registerDigits(chip, roFrameAbs, timeInROFAbs, nFrames, rowIS, colIS, nEle, lbl, lay);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion Detectors/Upgrades/ITS3/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
// fire the pixels assuming Poisson(n_response_electrons)
o2::MCCompLabel lbl(hit.GetTrackID(), evID, srcID, false);
auto roFrameAbs = mNewROFrame + roFrameRel;
auto timeInROFAbs = timeInROF - roFrameRel * mParams.getROFrameLengthInv(lay); // account for hit migration to next ROF with roFrameRel>0
for (int irow = rowSpan; irow--;) {
uint16_t rowIS = irow + rowS;
for (int icol = colSpan; icol--;) {
Expand All @@ -421,7 +422,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
continue;
}
uint16_t colIS = icol + colS;
registerDigits(chip, roFrameAbs, timeInROF, nFrames, rowIS, colIS, nEle, lbl, lay);
registerDigits(chip, roFrameAbs, timeInROFAbs, nFrames, rowIS, colIS, nEle, lbl, lay);
}
}
}
Expand Down
Loading