-
Notifications
You must be signed in to change notification settings - Fork 613
[PWGHF] Fixed generated invariant mass calculation #13185
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, |
| auto dau1 = particlesMc.iteratorAt(particleReso.daughtersIds().front()); | ||
| auto dau2 = particlesMc.iteratorAt(particleReso.daughtersIds().back()); | ||
| std::array<std::array<float, 3>, 2> pArr = {{{dau1.px(), dau1.py(), dau1.pz()}, {dau2.px(), dau2.py(), dau2.pz()}}}; |
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.
you can consider to loop on daughters, to generalise in case of more than 2 daughters
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.
RecoDecay::m takes fixed length arrays as input, that's way I ended up implementing it only for 2 prongs
This pr fixes the computation of the generated invariant mass of resonances and a small bug in the wrongSign determination for the D+Lambda decay channel