Skip to content

[PWGEM] move helper functions into header file + remove unnecessary histograms - #18858

Merged
mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
Steffimro:pcm-photonhbt-reduced
Nov 22, 2026
Merged

mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
Steffimro:pcm-photonhbt-reduced

Conversation

@Steffimro

Copy link
Copy Markdown
Contributor

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:

  • The processAnalysis process function was replaced by a new process function processPairs, which runs on the newly developed mixing and on request also covers the conventional mixing strategy (cfgCoRecoMixMode = 1).

-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.

@github-actions github-actions Bot added pwgem photon Photon and neutral meson PAG label labels Nov 22, 2026
@github-actions github-actions Bot changed the title move helper functions into header file + remove unnecessary histograms [PWGEM] move helper functions into header file + remove unnecessary histograms Nov 22, 2026
@github-actions

Copy link
Copy Markdown

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

@Steffimro
Steffimro marked this pull request as ready for review November 22, 2026 20:23
@mhemmer-cern
mhemmer-cern enabled auto-merge (squash) November 22, 2026 20:58
@mhemmer-cern
mhemmer-cern merged commit e411cde into AliceO2Group:master Nov 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photon Photon and neutral meson PAG label pwgem

Development

Successfully merging this pull request may close these issues.

2 participants