You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let the TPC looper generator accept a timeframe without collisions
This fixes a problem in GenTPCLoopers::setFlatGas when the collision
context of a timeframe is empty.
- A timeframe holds no collision whenever the interaction rate is low
enough, and the generator called exit(1) on it.
- The extent of the timeframe now comes from HBFUtils in that case, which
is where it is defined, instead of from the last collision.
- With a single collision in the timeframe the mean interaction spacing
was divided by zero; it is now taken from the interaction rate stored in
the collision context.
https://its.cern.ch/jira/browse/O2-7132
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
o2::InteractionRecord finalOrbitIR(0, lastIR.orbit + 2); // Final orbit, BC = 0
427
+
mTimeEnd = finalOrbitIR.bc2ns();
428
+
LOG(debug) << "Final orbit start time: " << mTimeEnd << " ns while last interaction record time is " << mInteractionTimeRecords.back().bc2ns() << " ns";
407
429
}
408
-
for (int c = 0; c < mInteractionTimeRecords.size() - 1; c++) {
o2::InteractionRecord finalOrbitIR(0, lastIR.orbit + 2); // Final orbit, BC = 0
416
-
mTimeEnd = finalOrbitIR.bc2ns();
417
-
LOG(debug) << "Final orbit start time: " << mTimeEnd << " ns while last interaction record time is " << mInteractionTimeRecords.back().bc2ns() << " ns";
0 commit comments