-
Notifications
You must be signed in to change notification settings - Fork 613
[PWGCF] Addition of MC truth process #14074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
O2 linter results: ❌ 0 errors, |
Please consider the following formatting changes to AliceO2Group#14074
Please consider the following formatting changes to AliceO2Group#14074
| 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 |
There was a problem hiding this comment.
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
victor-gonzalez
left a comment
There was a problem hiding this 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
No description provided.