[PWGHF] Add MC efficiency calculation and extend electron–hadron correlation table#15735
[PWGHF] Add MC efficiency calculation and extend electron–hadron correlation table#15735rashigupt wants to merge 15 commits intoAliceO2Group:masterfrom
Conversation
…ection table Introduce MC changes for efficiency estimation and extend electron selection table with additional variables
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/o2 for dd9880b at 2026-04-12 16:11: Full log here. |
|
@rashigupt Your PR does not compile! How did you test your changes? |
|
Error while checking build/O2Physics/o2 for 612fc0e at 2026-04-13 14:06: Full log here. |
|
@rashigupt Can you please explain your testing workflow? You made the PR ready for review and it failed the compilation again. |
s
sorry @vkucera this won’t happen again in the future. |
|
hi @vkucera ,have verified that the code compiles successfully in my local environment; however, I am not sure why it is failing here |
|
hi @vkucera , I have verified that the code compiles successfully in my local environment; however, I am not sure why it is failing here. |
If you are referring to the macOS build, that is unrelated. |
There was a problem hiding this comment.
Dear Rashi, thanks for the PR.
I have one comment: instead of explicitly looking for mother, grandmothers, and so on, you could use the function:
getCharmHadronOrigin
This does everything automatically (just flag searchUpToQuark=true), returning an integer (0: none, 1: prompt, 2: nonprompt), which seems to me what you need.
This would simplify your code a lot
| if (mcAssoParticle.has_mothers()) { | ||
| auto const& motherAsso = mcAssoParticle.template mothers_first_as<aod::McParticles>(); | ||
|
|
||
| if (std::abs(motherAsso.pdgCode()) == kEtaLocal || std::abs(motherAsso.pdgCode()) == kPi0 || std::abs(motherAsso.pdgCode()) == kGamma) { |
There was a problem hiding this comment.
Remove kEtaLocal and use kEta instead.
This PR introduces MC-based changes for efficiency estimation and extends electron-related tables.
Changes:
electronSelectionWithTPCEMCal:
correlatorHfeHadron: