Repository navigation
[PWGHF] Check the charm-hadron mass hypothesis in the V0 femto task - #18913
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for e4f6631 at 2026-11-25 09:00: Full log here. |
e4f6631 to
a7eff3f
Compare
| Configurable<float> charmHadMinPt{"charmHadMinPt", 0., "Minimum pT of Charm Hadron (particle 2)"}; | ||
| Configurable<float> charmHadMaxPt{"charmHadMaxPt", 999., "Maximum pT of Charm Hadron (particle 2)"}; | ||
| Configurable<int> charmHadPDGCode{"charmHadPDGCode", 4122, "PDG code of particle 2 Charm Hadron"}; | ||
| Configurable<int> charmHadPDGCode{"charmHadPDGCode", 4122, "PDG code of the charm hadron (particle 2); it sets the mass hypothesis used for kT, k* and mT and has to match the process function in use"}; |
There was a problem hiding this comment.
I would actually remove the configurable and have instead a member of the struct that is set to a value, depending on the process function that is enabled.
There was a problem hiding this comment.
Done: the configurable is removed and the PDG code is now set in init() from the enabled process function. I applied the same change to the track-based task as well, as asked by @zhangbiao-phy.
|
Hi @Alascraker, Thanks for the development! Just to clarify, for D*, D+, and D0, we currently set the PDG codes manually for different analyses. However, as you mentioned, it would be better to set them automatically according to the selected process. Could you also implement this for the charm–track task? Otherwise, I can open a separate PR for that. |
Of course, I will do that. |
a7eff3f to
b341725
Compare
|
Implemented for the charm-track task in this PR: |
…o process The mass of the charm hadron enters kT, k* and mT of the pair and the internal calculations of the container, but it was taken from the charmHadPDGCode configurable. Its default is the Lambda_c mass and nothing checked it against the process function in use, so a D*/D+/D0 configuration could silently run with a wrong mass hypothesis. Remove the configurable and set the PDG code in init() from the enabled process function, both in the V0 and in the track-based femto task.
b341725 to
d0f20e0
Compare
Locally, the D* - K0S pairs produced with the V0 femto task came out with the mT computed with the Lambda_c mass: the charm-hadron PDG code was a configurable with a Lambda_c default, and nothing forced it to match the process function in use. The mass enters kT, k* and mT of the output table and the internal calculations of the container, so it is easy to get wrong again.
charmHadPDGCodeand set the PDG code ininit()from the enabled process function