Skip to content

TruthUtils/AtlasPID.h - add two new commonly used Helper functions

In the GeneratorFilters package there are multiply-defined functions called isBwithWeakDK and isCwithWeakDK/isDwithWeakDK. Moving these definitions to AtlasPID.h seems reasonable to save repeated code:

  • isBwithWeakDK -> MC::isWeaklyDecayingBHadron
  • is[C/D]withWeakDK -> MC::isWeaklyDecayingCHadron

Initially following the definitions currently in GeneratorFilters, will add all the lowest lying B hadrons, including double heavy flavour hadrons, to the function definitions in a follow-up MR. Will also remove the Xi'_c+ from the definition of MC::isWeaklyDecayingCHadron in the same MR, since its lifetime is essentially 0. (There was an old version of Herwig that decayed it weakly, but this was fixed in Herwig 7). At this point the new functions will be added to the TruthUtils unit test.

Edited by John Derek Chapman

Merge request reports

Loading