Repository navigation
[PWGEM] move helper functions into header file + remove unnecessary histograms - #18858
Merged
mhemmer-cern merged 1 commit intoNov 22, 2026
Merged
Conversation
|
O2 linter results: ❌ 0 errors, |
Steffimro
marked this pull request as ready for review
November 22, 2026 20:23
Steffimro
requested review from
alibuild,
amaringarcia,
dsekihat,
hscheid,
jokonig,
mhemmer-cern and
reygers
as code owners
November 22, 2026 20:23
mhemmer-cern
approved these changes
Nov 22, 2026
mhemmer-cern
enabled auto-merge (squash)
November 22, 2026 20:58
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.
Previously the task has grown quite enormously to do some cross-checks on the event mixing with grid statistics. This PR aims to reduce the needed amount of histograms and process functions and moves many helper functions into a header to a) allow a more reader-friendly task and b) allow everyone else to use the written helper functions in their tasks. The changes include:
-processPairs also takes over what processCoReco and processPairClassMix did before. It has two blocks that can be switched on separately: the correlation functions (cfgDoCorrelation) and the pair-class QA (cfgDoPairClassQA). Data and MC use the same function.
processMC was reduced to processGenerated, which only keeps the generated-level histograms (true-pair efficiency denominator and single-photon response). The truth-type correlation functions are gone, since the pair classes from the leg labels replace them.
processMCAOD was removed, it was a cross-check directly on AO2Ds that is not needed any more.
All histograms that are no longer read by the post-processing or the QA were removed (290 histogram names and 50 configurables), many of them large sparses that were filled for every mixed pair.
The helper functions now live in Utils/PhotonHbtUtilities.h, sorted into kinematics (Q_inv, k_T, q in the LCMS), pair identity (MC pair classes, origin of the photons, partner relation) and geometry (leg propagation, leg distance in the TPC, bremsstrahlung pointing tag).
Bug fix: the configurable axes were built before the configuration was loaded, so setting them in a wagon had no effect. They are now built in init.