[PWGCF] FemtoUniverse: Add 3D histogram of TOF Nsigma, pT and centrality for purity studies#16960
Conversation
|
O2 linter results: ❌ 4 errors, |
|
Error while checking build/O2Physics/code-check for 0eb4189 at 2026-07-08 13:11: Full log here. |
| switch (PDGcode) { | ||
| case 2212: // Proton+ | ||
| case -2212: // Proton- | ||
| return trackCuts.getNsigmaTOF(part, o2::track::PID::Proton); | ||
| case 211: // Pion+ | ||
| case -211: // Pion- | ||
| case 111: // Pion 0 | ||
| return trackCuts.getNsigmaTOF(part, o2::track::PID::Pion); | ||
| case 321: // Kaon+ | ||
| case -321: // Kaon- | ||
| case 130: // Kaon 0 LONG | ||
| case 310: // Kaon 0 SHORT | ||
| return trackCuts.getNsigmaTOF(part, o2::track::PID::Kaon); |
There was a problem hiding this comment.
Why are you using magic numbers instead of named constants?
There was a problem hiding this comment.
I am correcting it now. The linter did not point out the issues in those changes.
|
@prchakra Why did you approve the PR despite the errors and bugs? |
|
Hi @vkucera, most of the errors reported by |
The bugs I am referring to are the uninitialised variables and members and narrowing conversions detected by the code check. |
Yes, as they were not newly introduced and could require a bit of time to fix them all, I approved them. Anyway, some of them will be fixed now by @alicja-pp. |
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMultKtExtended.cxx:add 3D histogram of TOF Nsigma, pT and centrality for purity studies
TOF Nsigma axis can be set with confTOFnSigmaBins configurable