Skip to content

Commit db55f08

Browse files
committed
Fix one-off index problem when copying collision contexts
Fixing https://its.cern.ch/jira/browse/O2-6437
1 parent b4180ad commit db55f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataFormats/simulation/src/DigitizationContext.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ DigitizationContext DigitizationContext::extractSingleTimeframe(int timeframeid,
708708
auto tf_ranges = timeframeindices.at(timeframeid);
709709

710710
auto startindex = std::get<0>(tf_ranges);
711-
auto endindex = std::get<1>(tf_ranges);
711+
auto endindex = std::get<1>(tf_ranges) + 1; // +1 due to endindex being "including"
712712
auto earlyindex = std::get<2>(tf_ranges);
713713

714714
if (earlyindex >= 0) {

0 commit comments

Comments
 (0)