Skip to content

[PWGJE] Distinguish MB MC from fake collisions - #18879

Open
mhwang285 wants to merge 1 commit into
AliceO2Group:masterfrom
mhwang285:jj-subgen-id
Open

mhwang285 wants to merge 1 commit into
AliceO2Group:masterfrom
mhwang285:jj-subgen-id

Conversation

@mhwang285

Copy link
Copy Markdown
Contributor

Currently there's no way to distinguish a subgenerator ID of -1 in the JE derived data tables to mean a collision from a MB MC (where mcCollision.getSubGeneratorId() returns -1) and a reconstructed collision that is assigned -1 because it doesn't have an associated MC collision (for example, https://github.com/AliceO2Group/O2Physics/blob/master/PWGJE/TableProducer/derivedDataProducer.cxx#L264 and https://github.com/AliceO2Group/O2Physics/blob/master/PWGJE/TableProducer/derivedDataProducer.cxx#L415). This PR assigns a separate value of -2 for fake collisions, keeping -1 for the MB MC collisions since that's the value actually returned by mcCollision.getSubGeneratorId(). Doesn't need any changes in analysis code since there are no other direct references to jetderiveddatautilities::JCollisionSubGeneratorId::none.

@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 6 warnings, 🔕 0 disabled

@github-actions github-actions Bot changed the title Distinguish MB MC from fake collisions [PWGJE] Distinguish MB MC from fake collisions Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant