Skip to content

Comments

o2sim: fix time aggregation in dpl-eventgen#15091

Merged
jackal1-66 merged 2 commits intoAliceO2Group:devfrom
aalkin:fix-time-aggregation
Feb 23, 2026
Merged

o2sim: fix time aggregation in dpl-eventgen#15091
jackal1-66 merged 2 commits intoAliceO2Group:devfrom
aalkin:fix-time-aggregation

Conversation

@aalkin
Copy link
Member

@aalkin aalkin commented Feb 23, 2026

The condition in the loop

for (auto i = 0; i < std::min((GenCount)aggregate, nEvents - eventCounter); ++i)

depended on the eventCounter that was updated inside the loop, thus the batch size was exponentially decreasing, leading to inconsistently sized timeframes being generated.

In addition, pc.outputs().make is now used to create MCTRACKS and MCHEADER messages, to avoid extra copies done by pc.outputs().snapshot.

@jackal1-66 @sawenzel

* precalculate batch size so it does not depend on the event counter
  updated in the generator loop
* use DataAllocator::make instead of snapshot to reduce memory churn
@aalkin aalkin requested review from a team, jackal1-66 and sawenzel as code owners February 23, 2026 13:43
@github-actions
Copy link
Contributor

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1
async-2024-PbPb-apass2
async-2023-PbPb-apass5

@jackal1-66 jackal1-66 merged commit 9a75a46 into AliceO2Group:dev Feb 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants