Expand description
The following file is part of gaps-online-software and published under the GPLv3 license Global constants for TOF operations
ISSUES:
- there might be constants defined elsewhere, also we are defining constants in .toml files now. There is an active issue #18
Constants§
- C_
LIGHT_ CABLE - Speed of light in the harting cables (divine number from the TOF team) This value is in cm/ns
- C_
LIGHT_ PADDLE - Speed of light in the scintillator paddles (divine number from the TOF team) This value is in cm/ns
- GPS_
TIMESTAM P48_ REFERENCE - Reference time for un-wrapping the 48bit GPS timestamps (MTB timestamp16/timestamp32, 10ns ticks since the UNIX epoch).
- LIFTOF_
LOGO_ SHOW - Make a nice ASCII logo for the liftof of flight code
- MASK_
CMD_ 8BIT - Masks for 32 bits commands (byte packets)
- MASK_
CMD_ 16BIT - MASK_
CMD_ 24BIT - MASK_
CMD_ 32BIT - NCHN
- Number of Channels on the readoutboards
- NWORDS
- Number of entries for each waveform (voltage and timing each)
- N_
CHN_ PER_ LTB - Number of AVAILABLE channels per each LocalTriggerBoard
- N_LTBS
- Number of AVAILABLE slots for LocalTriggerBoards
- PAD_
CMD_ 32BIT - Padding for 32 bits commands (byte packets)
- SILI_
RADIUS - Si(Li) wafer detector radius, with guardring and all
Statics§
- GENERIC_
ONLINE_ FILE_ PATTERN - A generic pattern for online files, matching most types
- GENERIC_
ONLINE_ FILE_ PATTERN_ CAPTURE - GENERIC_
TELEMETRY_ FILE_ PATTERN_ CAPTURE - HUMAN_
TIMESTAMP_ FORMAT - The TimeStamp format for Human readable timestamps
Functions§
- expand_
gps_ timestamp48 - Expand a 48bit GPS timestamp (10ns ticks) to the full timestamp since the UNIX epoch, by choosing the 2^48 period which is closest to GPS_TIMESTAMP48_REFERENCE