Skip to content

[PWGJE] Store gen-level gamma-jet info when the cluster energy cut fails - #18894

Open
fjonasALICE wants to merge 1 commit into
AliceO2Group:masterfrom
fjonasALICE:fjonas/gamma-jet-gen-level-storage
Open

fjonasALICE wants to merge 1 commit into
AliceO2Group:masterfrom
fjonasALICE:fjonas/gamma-jet-gen-level-storage

Conversation

@fjonasALICE

Copy link
Copy Markdown
Collaborator

Before this PR, only gen level information for events that fullfill all cuts on reco level were stored. This included a cut on the minimum energy of a reconstructed cluster. This meant that efficiency calculations were biased, as they would only include gen level particles in which the associated rec collision was guaranteed to have a high energy cluster.

The new approach also stores mc gen events for every rec event that fulfills all event cuts except the min cluster energy requirement. In addition, only mcgen events that have a gen level pi0 or gamma with at least a given energy are stored to save some space. Additional biases introduced by the event selection requirements are tracked in histograms, but are also not super relevant when dealing with trigger normlalised analyses

I tested PR locally on GJ files and can confirm that efficiency decreases as expected when no longer having the bias due to the cluster energy requirement.

Keep those MC collisions in the tree, flag the primary reconstructed collision, and skip an empty cluster amplitude list.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

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

@alibuild

alibuild commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 7eb2a58 at 2026-11-25 20:45:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 1 errors and 2 warnings.'
Found 1 errors and 2 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/42433d0e11670d1fc00c4ebc373e1d0366503510/O2Physics-code-check/errors.txt
PWGJE/Tasks/gammaJetTreeProducer.cxx:294:53: error: no header providing "THnSparse" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/42433d0e11670d1fc00c4ebc373e1d0366503510/O2Physics-code-check/warnings.txt
PWGJE/Tasks/gammaJetTreeProducer.cxx:1256:49: warning: use designated initializer list to initialize 'StoredCollision' [modernize-use-designated-initializers]
PWGJE/Tasks/gammaJetTreeProducer.cxx:1312:49: warning: use designated initializer list to initialize 'StoredCollision' [modernize-use-designated-initializers]
++ [[ 1 -gt 0 ]]
++ exit 1
--

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants