Skip to content
Merged
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
5 changes: 3 additions & 2 deletions Detectors/ITSMFT/common/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ void Digitizer::setEventTime(const o2::InteractionTimeRecord& irt, int layer)
mCollisionTimeWrtROF = mEventTime.timeInBCNS; // in triggered mode the ROF starts at BC (is there a delay?)
if (mParams.isContinuous()) {
auto nbc = mEventTime.differenceInBC(mIRFirstSampledTF);
if (mCollisionTimeWrtROF < 0 && nbc > 0) {
nbc--;
if (mCollisionTimeWrtROF < 0. && nbc > 0) { // move to the ROF it actually belongs to and account
nbc--; // this in the time offset wrt updated reference BC
mCollisionTimeWrtROF += o2::constants::lhc::LHCBunchSpacingNS;
}

// we might get interactions to digitize from before
Expand Down
5 changes: 3 additions & 2 deletions Detectors/Upgrades/ITS3/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ void Digitizer::setEventTime(const o2::InteractionTimeRecord& irt, int layer)
mCollisionTimeWrtROF = mEventTime.timeInBCNS; // in triggered mode the ROF starts at BC (is there a delay?)
if (mParams.isContinuous()) {
auto nbc = mEventTime.differenceInBC(mIRFirstSampledTF);
if (mCollisionTimeWrtROF < 0 && nbc > 0) {
nbc--;
if (mCollisionTimeWrtROF < 0. && nbc > 0) { // move to the ROF it actually belongs to and account
nbc--; // this in the time offset wrt updated reference BC
mCollisionTimeWrtROF += o2::constants::lhc::LHCBunchSpacingNS;
}
// we might get interactions to digitize from before
// the first sampled IR
Expand Down
Loading