Constants Module
Import these constants from spyral_utils.constants
Module of some common constants aliased from scipy to avoid long key strings and with units most relevant to AT-TPC data.
Attributes:
Name | Type | Description |
---|---|---|
AMU_2_MEV |
float
|
converts u to MeV/c^2 (MeV/c^2 / u) |
ELECTRON_MASS_U |
float
|
mass of an electron in amu (amu) |
MEV_2_JOULE |
float
|
Convert MeV/c^2 to J (J/MeV/c^2) |
MEV_2_KG |
float
|
Convert MeV/c^2 to kg (kg/MeV/c^2) |
ROOM_TEMPERATURE |
float
|
Room temperature in K (K) |
GAS_CONSTANT |
float
|
The gas constant (cm^3 Torr / (K mol)) |
QBRHO_2_P |
float
|
Constant used to convert magnetic rigidity times charge (unitless) to momentum (MeV/c / (T*m)) |
C |
float
|
speed of light (m/s) |