Skip to content

Commit d1cef57

Browse files
authored
[ALICE3] TRKFT3 digitizer: compensate for the shift of the reference BC when mCollisionTimeWrtROF < 0 (#16041)
1 parent ab59052 commit d1cef57

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

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

Lines changed: 3 additions & 1 deletion
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));
@@ -467,7 +469,7 @@ void Digitizer<DetID>::processHit(const o2::trkft3::Hit& hit, uint32_t& maxFr, i
467469
}
468470
}
469471
}
470-
LOG(info) << "Response done; adding labels; making digits";
472+
LOG(debug) << "Response done; adding labels; making digits";
471473
// fire the pixels assuming Poisson(n_response_electrons)
472474
o2::MCCompLabel lbl(hit.GetTrackID(), evID, srcID, false);
473475
auto roFrameAbs = mNewROFrame + roFrameRel;

0 commit comments

Comments
 (0)