Particle¶
Particle ¶
Particle object representing a physics particle.
This class stores particle properties such as PDG ID, name, mass, and standard track length for use in light yield calculations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pdg_id
|
int
|
The PDG (Particle Data Group) identification number of the particle. Supported particles include electrons (11), positrons (-11), muons (13, -13), photons (22), pions (211, -211), kaons (130), protons (2212, -2212), and neutrons (2112). |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
_pdg_id |
int
|
The PDG identification number |
_name |
str
|
Particle name following PDG Monte Carlo naming convention |
_energies |
ndarray
|
Energy grid for calculations |
_mass |
(float, optional)
|
Particle rest mass in GeV (for muons) |
_std_track |
(float, optional)
|
Standard track length in cm (for muons) |
Examples:
Notes
Currently, only muons have their mass and standard track length implemented.
Initialize a Particle object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pdg_id
|
int
|
The PDG number of the particle |
required |
Raises:
| Type | Description |
|---|---|
KeyError
|
If the PDG ID is not recognized in the configuration |