Skip to content

Conversation

@Preet-Bhanjan
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the pwgcf label Dec 3, 2025
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

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

Preet-Bhanjan added a commit to Preet-Bhanjan/O2Physics that referenced this pull request Dec 3, 2025
Please consider the following formatting changes to AliceO2Group#14074
@Preet-Bhanjan Preet-Bhanjan marked this pull request as ready for review December 3, 2025 14:00
Please consider the following formatting changes to AliceO2Group#14074
Comment on lines +1518 to +1540
if (std::abs(track.mcParticle().pdgCode()) == PDG_t::kPiPlus) {
histos.fill(HIST("hNsigmaPionTrue"), track.pt());

if (pidIndex == kPions) {
histos.fill(HIST("hNsigmaPionTruePositives"), track.pt());
}
} // Pion condition

if (std::abs(track.mcParticle().pdgCode()) == PDG_t::kKPlus) {
histos.fill(HIST("hNsigmaKaonTrue"), track.pt());

if (pidIndex == kKaons) {
histos.fill(HIST("hNsigmaKaonTruePositives"), track.pt());
}
} // Kaon condition

if (std::abs(track.mcParticle().pdgCode()) == PDG_t::kProton) {
histos.fill(HIST("hNsigmaProtonTrue"), track.pt());

if (pidIndex == kProtons) {
histos.fill(HIST("hNsigmaProtonTruePositives"), track.pt());
}
} // Proton condition
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess that, except this part, the rest is the same as for data
If you template the whole processing and condition, constexpr, this part to the existence of the McParticleId column on the received tracks table you will be able to have a single function, without replicating code, for both data and reconstructed MC

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Please, have a look at my comment in case you want to consider it for future iterations

@victor-gonzalez victor-gonzalez enabled auto-merge (squash) December 3, 2025 21:03
@victor-gonzalez victor-gonzalez merged commit 1c2381a into AliceO2Group:master Dec 4, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants