From e58e1da3475273b6ff1dbec625e97a365ee43975 Mon Sep 17 00:00:00 2001 From: swenzel Date: Tue, 24 Jun 2025 10:28:43 +0200 Subject: [PATCH] DigiContext: Bugfix for start of history effect Under certain circumstances, we got a wrong interactions included for the timeframe history effect. This was essentially due to wrong variable initialization and is now fixed. --- DataFormats/simulation/src/DigitizationContext.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DataFormats/simulation/src/DigitizationContext.cxx b/DataFormats/simulation/src/DigitizationContext.cxx index e5b4d6e706732..d840809a4c446 100644 --- a/DataFormats/simulation/src/DigitizationContext.cxx +++ b/DataFormats/simulation/src/DigitizationContext.cxx @@ -452,18 +452,18 @@ std::vector> getTimeFrameBoundaries(std::vector(std::floor(orbit_timeframe_early_fractional)); auto bc_early = (uint32_t)((orbit_timeframe_early_fractional - orbit_timeframe_early_integral) * o2::constants::lhc::LHCMaxBunches); // this is the interaction record of the ti-th timeframe start - o2::InteractionRecord timeframe_start_record(0, orbit_timeframe_early_integral); + o2::InteractionRecord timeframe_start_record(0, orbit_timeframe_start); // this is the interaction record in some previous timeframe after which interactions could still // influence the ti-th timeframe according to orbitsEarly o2::InteractionRecord timeframe_early_record(bc_early, orbit_timeframe_early_integral);