Skip to content

[PWGEM,Photon] Clean up code base - #17485

Draft
mhemmer-cern wants to merge 2 commits into
AliceO2Group:masterfrom
mhemmer-cern:em-emcal-flow
Draft

[PWGEM,Photon] Clean up code base#17485
mhemmer-cern wants to merge 2 commits into
AliceO2Group:masterfrom
mhemmer-cern:em-emcal-flow

Conversation

@mhemmer-cern

@mhemmer-cern mhemmer-cern commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator
  • Move old unused table producer tasks to Legacy folder to reduce compile time but keeping the code for completeness.
  • Try and overhaul #include <Framework/ASoA.h>. If .begin(), .end() or .globalIndex() is used it should be included. If none of the functions coming from there are used it should be removed.
  • Add CCDB Columns and SOA Timestamped tables for o2::emcal::BadChannelMap and o2::parameters::GRPMagField. This should help speed up CCDB access by putting the CCDB objects into shared memory. Especially useful for Dalitz + PCM skimmer and every task that runs with multiple sub-wagons.
  • Remove configurable that are no longer needed due to the above addition.
  • Reduce PresliceOptional calls in Pi0EtaToGammaGamma to have the bare minimum argument.
  • Add Concepts where possible to improve compile time.
  • Fix linter errors and warnings
  • Fix wrong position of header guard in PWGEM/PhotonMeson/DataModel/EventTables.h (was after all includes, is now before all includes)
  • Fix the partition used in the Pi0Flow task by using INT16_MAX, since there currently is a bug in arrow when using values above INT16_MAX when cutting on uint16_t values. Bugfix in arrow should come soon tho, see alisw/arrow@0f5153d

- Move old unsused table producer tasks to `Legacy` folder to reduce compile time but keeping the code for completeness
- Remove `#include <ASoA.h>` where ever possible to reduce compile time
- Add CCDB Columns and SOA Timestamped tables for `o2::emcal::BadChannelMap` and `o2::parameters::GRPMagField`. This should help speed up CCDB access by putting the CCDB objects into shared memory. Especially useful for Dalitz + PCM skimmer and every task that runs with multiple sub-wagons.
- Remove configurable that are no longer needed due to the above addition
- Reduce `PresliceOptional` calls in Pi0EtaToGammaGamma to have the bare minimum argument.
- Add Concepts where possible to improve compile time
- Fix linter errors and warnings
- Fix wrong position of header guard in `PWGEM/PhotonMeson/DataModel/EventTables.h` (was after all includes, is now before all includes)
- Fix the partition used in the Pi0Flow task by using `INT16_MAX`, since there currently is a bug in arrow when using values above `INT16_MAX` when cutting on uint16_t values. Bugfix in arrow should come soon tho.
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 722 errors, ⚠️ 1148 warnings, 🔕 90 disabled

@alibuild

This comment was marked as outdated.

@alibuild

This comment was marked as outdated.

@mhemmer-cern
mhemmer-cern marked this pull request as draft August 18, 2026 05:52
- Add `#include ASoA.h` back whenever `.begin()` or `.end()` was used in the code.
- Move more tasks to `Legacy` folder
- Add CCDB column usage to more `emcalPhotonMcTask`
@mhemmer-cern

Copy link
Copy Markdown
Collaborator Author

code-check will fail due to some Legacy code, but I do not want to spend time fixing code that is specifically marked as old and unused.

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

Labels

datamodel photon Photon and neutral meson PAG label pwgem

Development

Successfully merging this pull request may close these issues.

2 participants