[Common] RecoDecay: Add matching for decaying tracks in getMatchedMCRec#8345
[Common] RecoDecay: Add matching for decaying tracks in getMatchedMCRec#8345ddobrigk merged 9 commits intoAliceO2Group:masterfrom
Conversation
Please consider the following formatting changes to AliceO2Group#8345
|
Hi @Luca610 , please elaborate more about the problem you are trying to tackle with this implementation and why |
|
Hi @vkucera, when trying to match some decay such as K0s->pi+pi- it was observed that some reconsructed particles where not correctly matched causing a visible peak in the invariant mass distribution of unmatched candidates. This is caused by the fact that one of the pions decayed into a muon during the simulation and the track is then associated to a mu. For a reference, this is the case of around 2% of K0s. I beleive the same could happen with K->pi. I think that this could be the place to add it because many analyses could profit from it, preventing code duplication. |
|
Hi @Luca610 , thanks for the details. Are you saying that in our simulations, tracks of pions which decay to muons are wrongly associated with the daughter muons instead of with the pions? |
|
Hi @vkucera, yes this is the case. I don't know if it is an issue or a feature of simulations: these tracks degrade the resolution on the reconstructed invariant mass, so it can be usefull to tag them separately to study this effect. Anyway this changes allow to account for this effect and easily match them with RecoDecay. |
|
Thanks @Luca610 , I understand the problem now. Your solution looks fine to me. Let me just suggest some improvements in the code. |
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Please consider the following formatting changes to AliceO2Group#8345
|
Error while checking build/O2Physics/o2 for 9154ad4 at 2024-11-08 16:46: Full log here. |
…ec (AliceO2Group#8345) Co-authored-by: ALICE Action Bot <alibuild@cern.ch> Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
This PR introduces the option to match cases with one or more decayed tracks in the function getMatchedMCRec.
@vkucera let me know if it works for you!