hepi.particles
Functions
|
Get the latex name of a particle. |
|
Transforms a PDG id to it's left-right partner. |
Module Contents
- hepi.particles.get_name(pid)[source]
Get the latex name of a particle.
- Parameters:
pid (int) – PDG Monte Carlo identifier for the particle.
- Returns:
Latex name.
- Return type:
str
Examples
>>> get_name(21) 'g' >>> get_name(1000022) '\\tilde{\\chi}_{1}^{0}'
- hepi.particles.get_LR_partner(pid)[source]
Transforms a PDG id to it’s left-right partner.
- Parameters:
pid (int) – PDG Monte Carlo identifier for the particle.
- Returns:
First int is -1 for Left and 1 for Right. Second int is the PDG id.
- Return type:
tuple
Examples
>>> get_LR_partner(1000002) (-1, 2000002)