Skip to content

Add python level ParticleTable class

Jiahui Zhuo requested to merge jzhuo_ParticleTable into master

This allows users to access particle properties such as mass, charge, cc, and lifetime at the configuration (Python) level, eliminating the need for hard-coded mass values in the selection. This is also essential for the SIMD-DecayTreeFitter and for extending the SubstitutePID tool with cc features.

Example of usage:

>>> from PartProp.ParticleTable import ParticleTable
>>> ParticleTable().mass('B0')
5279.639999999999
>>> ParticleTable().mass('B_s0')
5366.88

To be tested with: Rec!3581 (merged) DaVinci!970 (merged)

FIY: @pkoppenb @amathad @erodrigu

Edited by Jiahui Zhuo

Merge request reports