Skip to content

constants Module

Constants defined for Spyral

Some of these are just short aliases to scipy constants to avoid long keystrings

Attributes:

Name Type Description
INVALID_PEAK_CENTROID float

Value is -1.0, used for peak finding

INVALID_EVENT_NAME str

Value is "InvalidEvent"

INVALID_EVENT_NUMBER int

Value is -1

INVALID_PAD_ID int

Value is -1

NUMBER_OF_TIME_BUCKETS int

For the GET system, 512

DEG2RAD float

angular degrees -> radians

FRIB_TRACE_LENGTH int

For FRIBDAQ system, 2048

AMU_2_MEV float

scipy alias, MeV/c^2/u

ELECTRON_MASS_U float

scipy alias, mass of an electron in u

MEV_2_JOULE float

scipy alias, J/MeV

MEV_2_KG float

scipy alias, kg/MeV/c^2

ROOM_TEMPERATURE float

In Kelvin

GAS_CONSTANT float

scipy alias, cm^3 Torr / (K mol)

QBRHO_2_P float

Shortcut for converting QBRho to momentum, T m / MeV

C float

scipy alias, speed_of_light m/s

E_CHARGE float

scipy alias, elementary_charge in Coulombs