hepi.particles

Module Contents

Functions

get_name(pid)

Get the latex name of a particle.

get_LR_partner(pid)

Transforms a PDG id to it's left-right partner.

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)