Skip to content

Use consistent TPC loopers settings for signal and background when embedding - #2524

Merged
sawenzel merged 3 commits into
AliceO2Group:masterfrom
sawenzel:loopers-background-only
Nov 26, 2026
Merged

sawenzel merged 3 commits into
AliceO2Group:masterfrom
sawenzel:loopers-background-only

Conversation

@sawenzel

@sawenzel sawenzel commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

With embedding, the background and the signal transport each covered the whole timeframe with TPC loopers, so the loopers reached the digits twice. Since AliceO2Group/AliceO2#16015, O2 decides from the collision context which transport generates the loopers of a given collision. This PR makes the workflow consistent with that: both transports now get the same loopers settings, so the loopers look the same whichever transport generates them.

Loopers settings given for either transport are applied to both, with the background's value taking precedence, and both take GenTPCLoopers.colsys from -colBkg instead of the signal's collision system. A veto given for either transport switches the loopers off in both.

Note that nothing changes without embedding. With --use_bkg_from, the background loopers are whatever the cached background was produced with.

Relates to https://its.cern.ch/jira/browse/O2-7272

Assisted by Claude Code.

This avoids the double counting of TPC loopers in embedding productions.

- Background and signal both generated loopers covering the whole timeframe.
- The signal transport now gets GenTPCLoopers.loopersVeto=true.
- GenTPCLoopers settings given with -confKey are applied to the background.
- A veto given for either transport switches loopers off in both.
- The background loopers now use -colBkg as collision system, not -col.

https://its.cern.ch/jira/browse/O2-7272

Co-authored-by: Marco Giacalone <mgiacalo@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

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

Comment thread MC/bin/o2dpg_sim_workflow.py Resolved
sawenzel and others added 2 commits October 30, 2026 12:26
This applies the reviewer's suggestion so that the workflow works together with the ownership of collisions in O2.

- The signal no longer gets GenTPCLoopers.loopersVeto=true unless loopers are switched off.
- Both transports take GenTPCLoopers.colsys from -colBkg.

AliceO2Group/AliceO2#16015

Co-authored-by: Marco Giacalone <mgiacalo@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This makes both transports use the same loopers settings when embedding.

- GenTPCLoopers settings given with -confKeyBkg now also reach the signal.
- The background's value takes precedence in both transports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sawenzel
sawenzel marked this pull request as ready for review October 30, 2026 12:04

@jackal1-66 jackal1-66 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the description? It still says that the signal loopers are vetoed and the background is generating them

@sawenzel sawenzel changed the title Generate TPC loopers only in the background transport when embedding Use consistent TPC loopers settings for signal and background when embedding Nov 26, 2026
@sawenzel

Copy link
Copy Markdown
Contributor Author

Updated, thanks.

@sawenzel
sawenzel merged commit b28ab82 into AliceO2Group:master Nov 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants