Skip to content

Commit 8c6bf45

Browse files
committed
TRKFT3 Digitizer: compensate for the shift of the reference BC when mCollisionTimeWrtROF < 0
1 parent 6994ca6 commit 8c6bf45

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Detectors/Upgrades/ALICE3/TRKFT3/common/simulation/src

‎Detectors/Upgrades/ALICE3/TRKFT3/common/simulation/src/Digitizer.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ void Digitizer<DetID>::setEventTime(const o2::InteractionTimeRecord& irt, int la
161161
auto nbc = mEventTime.differenceInBC(mIRFirstSampledTF);
162162

163163
if (mCollisionTimeWrtROF < 0 && nbc > 0) {
164+
// move to the ROF it actually belongs to and account this in the time offset wrt updated reference BC
164165
nbc--;
166+
mCollisionTimeWrtROF += o2::constants::lhc::LHCBunchSpacingNS;
165167
}
166168

167169
mROFsWrtFirstRO = std::floor(float(nbc) / mParams.getROFrameLengthInBC(layer));

0 commit comments

Comments
 (0)