Functor to replace MCTupleToolPrompt
Functor writing campaign: https://gitlab.cern.ch/lhcb-dpa/project/-/issues/61
Functor to replace the Run 2 tuple tool here.
General idea:
- loop over ancestral history of a MCParticle
- get the true (PDG) lifetimes of each ancestor
- if any lifetime > 0.1 fs the MCParticle is considered not prompt
If not prompt, the Run 2 tool also created _ID
and _KEY
branches of the first long lived ancestor.
Changed here to first create FirstLongLivedAncestor
Functor with IsPrompt
Functor built on top. (thanks to @jzhuo)
This should be tested with: DaVinci!800 (merged) and Analysis!937 (merged)
Merge request reports
Activity
added Functors label
assigned to @aburke
added RTA label
Thanks @aburke for creating this tool! Just a little bit of comment, since
MCTupleToolPrompt
do more than just check if a particle is prompt (it also returns the first long-lived MCP ancestor's ID and key), would be nice to have a functor which returns the first long-lived MCP ancestor and then create thisisPrompt
functor on top, something like if not fist long-lived MCP ancestor is found them returntrue
toisPrompt
. WDYT?- Resolved by Jiahui Zhuo
Hi, you mean to call
isPrompt
recursively on each ancestor untilisPrompt
returnstrue
?
- Resolved by Abhijit Mathad
Hi @jzhuo , at the moment I don't have time to implement the extra functor discussed above. We need an
IsPrompt
Functor for charm early measurements, preferably in the next release so that we have the branch in our upcoming MC production. Can we merge what I have in place and update it to include theF.FirstLongLivedDecayOrigin
functor soon?
- Resolved by Jiahui Zhuo
assigned to @jzhuo
added DPA-WP3 MC checking labels
removed review request for @erodrigu
- Resolved by Jiahui Zhuo
- Resolved by Jiahui Zhuo
- Resolved by Abhijit Mathad