[PWGJE] Charm hadronisation: MC task now cleaner and more robust in terms of event selection monitoring - #17976
Merged
nzardosh merged 20 commits intoSep 22, 2026
Conversation
…rocessing of D0 and Lc jets.
- jeNConst changed to "int" type - HfMatchedFrom table column now stores the decay channel from which it was originated (no need for the matchedFrom usage anymore) - removed duplicated includes at the top of the file
christianreckziegel
requested review from
alibuild,
fjonasALICE,
jaimenorman,
mhemmer-cern and
nzardosh
as code owners
September 20, 2026 00:50
|
O2 linter results: ❌ 0 errors, |
Please consider the following formatting changes to AliceO2Group#17976
Collaborator
|
Error while checking build/O2Physics/code-check for 5dfcf45 at 2026-09-21 14:30: Full log here. |
Collaborator
|
Error while checking build/O2Physics/code-check for 50598af at 2026-09-20 03:13: Full log here. |
Collaborator
…ssociated configurables, removed unused library includes, corrected reflection bitmaps usage
Please consider the following formatting changes to AliceO2Group#17976
Please consider the following formatting changes to AliceO2Group#17976
Collaborator
nzardosh
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
analyzeMC()is restructured so that the MC event selection is decided once pergenerated event, before any jet loop, instead of per matched jet pair. Unmatched
detector-level jets are now also stored, and the collision QA counter records each
selection step separately.
Motivation
In the previous implementation the event selection was applied inside the loop over
detector-level jets matched to a given particle-level jet. This treated two physically
identical cases differently:
particle-level jet entered the efficiency denominator;
sel8produced no row at all,so its particle-level jet entered neither numerator nor denominator.
Both are generated jets that yielded no usable measurement, so the mixture biased the
efficiency. Deciding the event class once means particle- and detector-level jets live in
a common event-selection phase space, which is what the detector response matrix needs in
order to return particle-level yields defined on the same event class as the data.
Changes
least one associated reconstructed collision passing the selection.
changes:
applyMcEventSelection(defaultfalse) — emulatedsel8and z-vertex cut atgenerated level;
applyRecoEventSelection(defaulttrue) —sel8and z-vertex cut at reconstructedlevel;
rejectSplitCollisions(defaulttrue) — reject generated events associated to morethan one reconstructed collision.
background) are now written to
MatchJetDistanceTable, with the particle-level fieldsset to sentinel values. These rows are needed for purity and background studies and
were previously unavailable.
false(not-2) to theboolcolumns, which previously readback as
true.h_collision_counternow records the selection steps cumulatively and separately(z-vertex,
sel8, has-collision, no-split, at reconstructed level), with the bin indicesdefined in a
collisionSelectionsenum instead of hard-coded numbers.