Skip to content

Use the TruthUtils for particle selection, part D

Andrii Verbytskyi requested to merge averbyts/athena:predicates_5 into main

The basic idea is to replace the hardcoded checks of particle statuses with the selector functions from TruthUtils.

According to the status:

  • 1 MC::isStable()
  • 2 MC::isDecayed()
  • 1||2 MC::isPhysical()

This is needed to change the definition of those functions in the end and be able to encode in the status() the information on the interations of particles in the Geant.

The fourth part of !64550 (merged) Needed for !64569 (closed)

@jchapman @pclark

Note: truth_part -> barcode() > 100000 is quite meaningless for a very long time -- the barcode offset is 200k since 10 years or so. However, the assumption is that the requirement is to have a simulation particle.

Edited by Andrii Verbytskyi

Merge request reports