Skip to content

[Common] Updated chain to analyze ZDC in light ion systems - #18131

Open
coppedis wants to merge 6 commits into
AliceO2Group:masterfrom
coppedis:zdc-ligh-ions-1
Open

coppedis wants to merge 6 commits into
AliceO2Group:masterfrom
coppedis:zdc-ligh-ions-1

Conversation

@coppedis

@coppedis coppedis commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

In data model a column to store the BC mask and select events has been added.
In the task, the handling of data has been redesigned to account for beam mask.
The analysis macro has also been updated.

All the changes are needed in order to analyse ZDC data to calculate the cross section in OO and Ne-Ne data taking.

Needed to account for BC mask in analysis for cross section calculation in light ions
Added CCDB manager and GRPLHCIFData handling to processZDCBC method. Introduced new bitset patterns for beam and bunch configurations.

Needed for cross-section calculation in light ions
Needed for cross-section calculation in small systems
@github-actions github-actions Bot changed the title Updated chain to analyze ZDC in light ion systems [Common] Updated chain to analyze ZDC in light ion systems Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

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

@alibuild

alibuild commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for c0ad95b at 2026-10-01 09:09:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 11 errors and 131 warnings.'
Found 11 errors and 131 warnings.
++ [[ 11 -gt 0 ]]
++ cat /sw/BUILD/4d560db5cc48403e95ce8cde55d5907a2b93a5fa/O2Physics-code-check/errors.txt
Common/TableProducer/zdcTaskLightIons.cxx:53:55: error: no header providing "o2::constants::lhc::LHCMaxBunches" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/TableProducer/zdcTaskLightIons.cxx:54:8: error: no header providing "std::bitset" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:23:1: error: included header TH1F.h is not used directly [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:24:1: error: included header TH2F.h is not used directly [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:38:3: error: no header providing "o2::framework::Configurable" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:42:16: error: no header providing "uint64_t" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:84:44: error: no header providing "o2::framework::OutputObjHandlingPolicy" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:86:13: error: no header providing "o2::framework::InitContext" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:88:50: error: no header providing "o2::framework::HistType" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:247:22: error: no header providing "TH1" is directly included [misc-include-cleaner,-warnings-as-errors]
Common/Tasks/zdcTableReader.cxx:405:26: error: no header providing "TH2" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 131 -gt 0 ]]
++ cat /sw/BUILD/4d560db5cc48403e95ce8cde55d5907a2b93a5fa/O2Physics-code-check/warnings.txt
Common/TableProducer/zdcTaskLightIons.cxx:49:8: warning: constructor does not initialize these fields: ccdb [cppcoreguidelines-pro-type-member-init]
Common/TableProducer/zdcTaskLightIons.cxx:123:10: warning: variable 'selected' is not initialized [cppcoreguidelines-init-variables]
Common/TableProducer/zdcTaskLightIons.cxx:239:9: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Common/TableProducer/zdcTaskLightIons.cxx:245:9: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Common/TableProducer/zdcTaskLightIons.cxx:347:9: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Common/TableProducer/zdcTaskLightIons.cxx:353:9: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Common/Tasks/zdcTableReader.cxx:33:9: warning: function-like macro 'CHECK_BIT' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
Common/Tasks/zdcTableReader.cxx:231:62: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:233:62: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:235:62: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:237:62: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:249:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
Common/Tasks/zdcTableReader.cxx:249:17: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:251:34: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:253:34: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:255:34: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:258:28: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
Common/Tasks/zdcTableReader.cxx:258:32: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:259:11: warning: repeated branch body in conditional chain [bugprone-branch-clone]
Common/Tasks/zdcTableReader.cxx:260:31: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:267:55: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:268:11: warning: repeated branch body in conditional chain [bugprone-branch-clone]
Common/Tasks/zdcTableReader.cxx:269:30: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:273:49: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:274:11: warning: repeated branch body in conditional chain [bugprone-branch-clone]
Common/Tasks/zdcTableReader.cxx:275:24: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:279:59: warning: statement should be inside braces [readability-braces-around-statements]
Common/Tasks/zdcTableReader.cxx:280:11: warning: repeated branch body in conditional chain [bugprone-branch-clone]
Common/Tasks/zdcTableReader.cxx:281:34: warning: statement should be inside braces [readability-braces-around-statements]
[0 more errors; see full log]

Full log here.

Comment on lines -20 to +26
#include <Framework/Configurable.h>
#include <Framework/HistogramRegistry.h>
#include <Framework/HistogramSpec.h>
#include <Framework/InitContext.h>
#include <Framework/OutputObjHeader.h>
#include <Framework/runDataProcessing.h>

#include <TH1.h>
#include <TH2.h>
#include <TH1F.h>
#include <TH2F.h>

#include <cstdio>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not revert fixes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't fully get what you mean here, sorry...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are reverting the fixes I made in #15380.

…oup#15380

Updated histogram includes to use TH1 and TH2 instead of TH1F and TH2F.
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