Skip to content

Draft: TruthUtils: Update helper function output for R-Hadrons and test

Following from !75551 (merged) and !75679 (merged), this merge request updates a number of helper functions so that they give sensible output for R-Hadrons without changing the output for other pdg_ids:

  • isSUSY() now returns true for R-Hadrons
  • isMeson() now returns false for SUSY particles
  • hasQuark() now correctly handles R-Hadrons. NB squarks do not cause this function to return true. (i.e. a b-squark in an R-Hadron will not cause a call to hasQuark(pdg_id, BQUARK) to return true)
  • leadingQuark() now correctly handle R-Hadrons. NB squarks are ignored by this function.
  • SUSY::isRMeson() returns true for gluino-quark-antiquark states and squark-antiquark states.
  • SUSY::isRBayron() returns true for gluino-quark-quark-quark states and squark-quark-quark states.
  • SUSY::isRHadron() now returns true for states passing SUSY::isRMeson(), SUSY::isRBayron() and SUSY::isRGlueball().
  • SUSY::isSMeson() returns true for squark-antiquark states. (Equivalent to SUSY::isRMeson(p) && (SUSY::hasSquark(p, BQUARK) || SUSY::hasSquark(p, TQUARK)).) Will be removed in a future MR.
  • SUSY::isSBayron() returns true for squark-quark-quark states. (Equivalent to SUSY::isRBaryon(p) && (SUSY::hasSquark(p, BQUARK) || SUSY::hasSquark(p, TQUARK)).) Will be removed in a future MR.

SUSY::isR[Bottom/Top]Hadron() and SUSY::isS[TopHadron/BottomHadron/TopMeson/BottomMeson/TopBaryon/BottomBaryon]() were removed in !75649 (merged).

Edited by John Derek Chapman

Merge request reports