[Common] Add zdc-extra-table-reader task#16028
Conversation
zdc-extra-table-reader is needed to read AOD/ZDCEXTRA derived data and proceed with multistep calibration (Q-vectors recentering) of ZDC data
|
O2 linter results: ❌ 1 errors, |
Refactor logging and constants in zdcExtraTableReader. Replaced std::cerr logging with LOGF for error handling and updated constant names for consistency.
Add check number of fired towers with isZN*SpDeterminable (to reconstruct Q-vector at least 2 fired towers needed); Replace FindBin with FindFixBin; update variables.
Please consider the following formatting changes to AliceO2Group#16028
|
Dear code owners, There are no O2 linter errors connected to my changes. |
|
Error while checking build/O2Physics/staging for 5397abb at 2026-05-07 21:51: Full log here. |
|
Dear @vkucera, I am planning to update this PR this week, addressing your comments. |
Updated event selection configuration and histogram handling in zdcExtraTableReader.cxx. Refactored selection bits and improved memory management in the clearCache method.
Formatting changes to AliceO2Group#16028
- Replace 0.0 returns with fatal logs for missing CCDB objects - Rename Configurable flags - Rename 'nShift' to 'nHarmonics' to clarify its physical meaning - Remove 'm' prefixes from variable names - Reduce nesting in `loadCalibrations`
Fix code formatting
|
Dear code owners, Please note that the failed CI checks are not related to my zdc-extra-table-reader task:
|
|
@udmitrie Since you are adding a new file, please fix the warnings as well. |
Replaced individual Qx and Qy axis configurables with a shared ConfigurableAxis
|
Dear @vkucera, could you please confirm that you have no further comments? Otherwise, is there anything else I need to fix? |
| std::unordered_map<int, TProfile3D*> gShiftProfileZNA; | ||
| std::unordered_map<int, TProfile3D*> gShiftProfileZNC; | ||
|
|
||
| TH1* gCurrentEventCounter; |
There was a problem hiding this comment.
Pointers should always be initialised at declaration.
| calibCache.clear(); | ||
| } | ||
|
|
||
| void initHistos(const int& runNumber) |
There was a problem hiding this comment.
Pass small types by value.
| void initHistos(const int& runNumber) | |
| void initHistos(const int runNumber) |
| } | ||
|
|
||
| // Optimized method to load ALL calibrations for the new run at once | ||
| void loadCalibrations(int run) |
There was a problem hiding this comment.
Is run different from runNumber?
| if (applyShiftCorrection) { | ||
| std::string folder = Form("%s/psiHarm", qRecenteringCcdb.value.c_str()); | ||
|
|
||
| LOGF(info, "ZDC Analysis: Loading Shift Correction from %s for run %d", folder.c_str(), run); |
There was a problem hiding this comment.
Does this get printed for each collision?
|
Error while checking build/O2Physics/o2 for bf83055 at 2026-06-09 18:57: Full log here. |
zdc-extra-table-reader is needed to read AOD/ZDCEXTRA derived data and proceed with multi-step calibration (Q-vectors recentering) of ZDC data