Draft: TruthUtils: Tidy up helper functions to identify non-standard generator defined PDG ID values
Three helper functions:
MC::isGenSpecific (renamed to MC::isGenInternal) and MC::isGeantino implement this PDG rule:
- Codes 81–100 are reserved for generator-specific pseudoparticles and concepts. Codes 901– 930, 1901–1930, 2901–2930, and 3901–3930 are for additional components of Standard Model parton distribution functions: the latter three ranges are intended to distinguish left/ right/ longitudinal components. Codes 998 and 999 are reserved for GEANT4 tracking purposes.
MC::isGenInternal returns true for PDG IDs in the ranges 81–100, 901–930, 1901–1930, 2901–2930, and 3901–3930 and MC::isGeantino returns true for PDG IDs of 998 and 999.
isPythia8Specific (renamed to MC::isGeneratorDefined) implements this PDG rule:
- Occasionally program authors add their own states. To avoid confusion, these should be flagged by setting nn_r = 99.
Edited by John Derek Chapman