[PWGLF] dndeta-hi: move from PWGMM, add SD/DD/ND classification#15779
[PWGLF] dndeta-hi: move from PWGMM, add SD/DD/ND classification#15779hyungjun-lee wants to merge 8 commits intoAliceO2Group:masterfrom
Conversation
hyungjun-lee
commented
Apr 15, 2026
- Move dndeta-hi.cxx from PWGMM/Mult/Tasks to PWGLF/Tasks/GlobalEventProperties
- Add kDD, kSD, kND enum values for diffractive event classification
- Join McCollisions with HepMCXSections to access processId() in processMCCounting
- Classify events by Pythia8 process code: 101=ND, 103/104=SD, 105/106=DD
- Replace sliceByCached with sliceBy+Preslice for soa::Filtered tables
- Fix std-prefix: std::log, std::exp, std::fabs
- Fix const-ref-in-for-loop: const auto& in range-based for loops
- Fix pdg/explicit-code: 310->kK0Short, 3122->kLambda0
- Add CMakeLists.txt entry for dndeta-hi workflow
- Move dndeta-hi.cxx from PWGMM/Mult/Tasks to PWGLF/Tasks/GlobalEventProperties - Add kDD, kSD, kND enum values for diffractive event classification - Join McCollisions with HepMCXSections to access processId() in processMCCounting - Classify events by Pythia8 process code: 101=ND, 103/104=SD, 105/106=DD - Replace sliceByCached with sliceBy+Preslice for soa::Filtered tables - Fix std-prefix: std::log, std::exp, std::fabs - Fix const-ref-in-for-loop: const auto& in range-based for loops - Fix pdg/explicit-code: 310->kK0Short, 3122->kLambda0 - Add CMakeLists.txt entry for dndeta-hi workflow
|
O2 linter results: ❌ 1 errors, |
|
Error while checking build/O2Physics/o2 for f7ae6fe at 2026-04-15 10:25: Full log here. |
|
Error while checking build/O2Physics/o2 for 400b75d at 2026-04-15 10:56: Full log here. |
|
Hi @hyungjun-lee, can you please take care of o2-building error (https://ali-ci.cern.ch/alice-build-logs/AliceO2Group/O2Physics/15779/400b75d0b31bdf93b26a9e7717525813cfec57df/build_O2Physics_o2/pretty.html) by removing the line Thanks, |
|
The remaining o2linter error originates from code outside of my responsibility. Could you please approve this commit? |
|
Hello @hyungjun-lee, I talked about the O2-building errors (not the linter error). But anyway, you fixed it, thanks! Thanks, |
|
Error while checking build/O2Physics/o2 for 2d7e2be at 2026-04-15 11:40: Full log here. |
|
@hyungjun-lee You are supposed to test your changes before making a PR. Your code contains obvious errors which make the compilation fail. How did you test your changes? |
|
@vkucera hello, Vit. It appears that parts affecting the build were inadvertently modified while updating the code to pass O2linter. The previous version of the code had been thoroughly tested in the local environment. I have now corrected the relevant sections and re-uploaded the code. |
|
I don't think your list of includes is correct. Please fix it. See https://aliceo2group.github.io/analysis-framework/docs/tools/#cleaning-include-statements-and-using-statements |
| enum { | ||
| kECbegin = 0, | ||
| kDATA = 1, | ||
| kINEL, | ||
| kINELg0, | ||
| kDD, | ||
| kSD, | ||
| kND, | ||
| kECend | ||
| }; |
There was a problem hiding this comment.
- Give the
enuma name. - Don't use the
kprefix. It violates the naming conventions. - Assigning
1is redundant. It is also done because of the0.
| case 211: | ||
| pid = kPion; | ||
| break; | ||
| case 321: | ||
| pid = kKaon; | ||
| break; | ||
| case 2212: | ||
| pid = kProtonMy; | ||
| break; |
| auto pTrack = v0.template posTrack_as<DaughterTracks>(); | ||
| auto nTrack = v0.template negTrack_as<DaughterTracks>(); | ||
|
|
||
| if (0 && v0.v0radius() > v0Radius && |
There was a problem hiding this comment.
What is the 0 doing there?
| std::abs(pTrack.eta()) < etaDau && | ||
| std::abs(nTrack.eta()) < etaDau) { | ||
|
|
||
| registry.fill(HIST("hv0mass"), cent, double(kK0short), v0.eta(), double(v0.mK0Short())); |
There was a problem hiding this comment.
Why do you need the casting?