|
gdata
|
Shared constants and error codes for the GData library. More...

Go to the source code of this file.
Variables | |
| constexpr int | TIMEATELECTRONICSNOTDEFINED = -123456 |
| Sentinel value returned when TIMEATELECTRONICS is requested but not present. | |
Error / exit codes | |
Numeric error codes used by GData components for consistent reporting. These codes are intended to be stable across releases so that scripts, wrappers, and downstream applications can classify failures without parsing log strings. | |
| constexpr int | ERR_GSDETECTORNOTFOUND = 601 |
| Requested sensitive detector is missing from a collection/map. | |
| constexpr int | ERR_VARIABLENOTFOUND = 602 |
| Requested observable key is missing from an observables map. | |
| constexpr int | ERR_WRONGPAYLOAD = 603 |
| A payload vector has the wrong size/shape for the expected format. | |
Streaming / readout identifiers (SRO keys) | |
Conventional keys used to label electronics readout coordinates and timing. "SRO" (streaming readout) keys are treated specially by some APIs. For example, getIntObservablesMap() and getDblObservablesMap() accept a
This enables output backends to store readout addressing separately from digitization results. | |
| constexpr const char * | CRATESTRINGID = "crate" |
| Electronics crate index. | |
| constexpr const char * | SLOTSTRINGID = "slot" |
| Slot index within a crate (module position). | |
| constexpr const char * | CHANNELSTRINGID = "channel" |
| Channel index within a slot/module. | |
| constexpr const char * | CHARGEATELECTRONICS = "chargeAtElectronics" |
| Charge (or ADC-integrated proxy) at electronics stage. | |
| constexpr const char * | TIMEATELECTRONICS = "timeAtElectronics" |
| Time (or TDC proxy) at electronics stage. | |
The GData library stores and transports observables using string keys (e.g. "adc", "tdc", "crate", "slot", ...). This header centralizes commonly used identifiers to:
It also defines numeric error codes used with GLogger::error "error()" so that higher-level tooling can interpret failure modes in a stable way.
Design intent:
Definition in file gdataConventions.h.
|
constexpr |
Definition at line 54 of file gdataConventions.h.
|
constexpr |
Definition at line 55 of file gdataConventions.h.
|
constexpr |
Definition at line 52 of file gdataConventions.h.
|
constexpr |
Definition at line 31 of file gdataConventions.h.
|
constexpr |
Definition at line 32 of file gdataConventions.h.
|
constexpr |
Definition at line 33 of file gdataConventions.h.
|
constexpr |
Definition at line 53 of file gdataConventions.h.
|
constexpr |
Definition at line 57 of file gdataConventions.h.
|
constexpr |
This is intentionally an "unlikely" value to help catch missing-data bugs quickly. Used by getTimeAtElectronics().
Definition at line 67 of file gdataConventions.h.