|
LDMX Software
|
Provides summary information about an assembled event, including error flags for data quality assessment. More...
#include <EventSummary.h>
Public Types | |
| enum | ErrorFlags : uint32_t { ERROR_CRC_MISMATCH = (1 << 0) , ERROR_PARSE_FAILURE = (1 << 1) , ERROR_INCOHERENT_TIMING = (1 << 2) , ERROR_MISSING_SUBSYSTEM = (1 << 3) , ERROR_INCOMPLETE_EVENT = (1 << 4) , ERROR_TRUNCATED_EVENT = (1 << 5) , ERROR_DUPLICATE_SUBSYSTEM = (1 << 6) } |
| Error flag bit definitions. More... | |
Public Member Functions | |
| EventSummary ()=default | |
| Class constructor. | |
| virtual | ~EventSummary ()=default |
| Class destructor. | |
| void | clear (Option_t *o="") |
| Clear information from this object. | |
| uint64_t | getEventNumber () const |
| Get the event number. | |
| void | setEventNumber (uint64_t num) |
| Set the event number. | |
| uint64_t | getTimestampNs () const |
| Get the timestamp in nanoseconds. | |
| void | setTimestampNs (uint64_t ts) |
| Set the timestamp in nanoseconds. | |
| uint32_t | getNSystems () const |
| Get the number of systems in this event. | |
| void | setNSystems (uint32_t ns) |
| Set the number of systems in this event. | |
| const std::vector< uint64_t > & | getSystemIds () const |
| Get the system IDs that participated in this event. | |
| void | setSystemIds (const std::vector< uint64_t > &ids) |
| Set the system IDs. | |
| uint64_t | getPayloadSize () const |
| Get the total payload size in bytes. | |
| void | setPayloadSize (uint64_t size) |
| Set the total payload size. | |
| uint32_t | getErrorFlags () const |
| Get the error flags for this event. | |
| void | setErrorFlags (uint32_t flags) |
| Set the error flags. | |
| bool | hasError (ErrorFlags flag) const |
| Check if a specific error flag is set. | |
| void | setError (ErrorFlags flag) |
| Set a specific error flag. | |
Static Public Attributes | |
| static const std::string | BRANCH = "EventSummary" |
| Name of EventSummary branch. | |
Private Member Functions | |
| ClassDef (EventSummary, 1) | |
| ROOT class definition. | |
Private Attributes | |
| uint64_t | event_number_ = 0 |
| The event number. | |
| uint64_t | timestamp_ns_ = 0 |
| The event timestamp in nanoseconds. | |
| uint32_t | nsystems_ = 0 |
| Number of subsystems that contributed to this event. | |
| std::vector< uint64_t > | system_ids_ |
| List of subsystem IDs that participated in this event. | |
| uint64_t | payload_size_ = 0 |
| Total payload size in bytes. | |
| uint32_t | error_flags_ = 0 |
| Error flags bitmask. | |
Provides summary information about an assembled event, including error flags for data quality assessment.
This object tracks event assembly metadata such as which subsystems participated, total payload size, and any errors encountered during the assembly process.
Definition at line 25 of file EventSummary.h.
| enum ldmx::EventSummary::ErrorFlags : uint32_t |
Error flag bit definitions.
Definition at line 30 of file EventSummary.h.
| void ldmx::EventSummary::clear | ( | Option_t * | o = "" | ) |
Clear information from this object.
| [in] | o | ROOT-style Option (ignored) |
Definition at line 11 of file EventSummary.cxx.
References error_flags_, event_number_, nsystems_, payload_size_, system_ids_, and timestamp_ns_.
|
inline |
Get the error flags for this event.
Definition at line 128 of file EventSummary.h.
References error_flags_.
|
inline |
Get the event number.
Definition at line 68 of file EventSummary.h.
References event_number_.
|
inline |
Get the number of systems in this event.
Definition at line 92 of file EventSummary.h.
References nsystems_.
|
inline |
Get the total payload size in bytes.
Definition at line 116 of file EventSummary.h.
References payload_size_.
|
inline |
Get the system IDs that participated in this event.
Definition at line 104 of file EventSummary.h.
References system_ids_.
|
inline |
Get the timestamp in nanoseconds.
Definition at line 80 of file EventSummary.h.
References timestamp_ns_.
|
inline |
Check if a specific error flag is set.
| [in] | flag | The error flag to check |
Definition at line 141 of file EventSummary.h.
References error_flags_.
|
inline |
Set a specific error flag.
| [in] | flag | The error flag to set |
Definition at line 147 of file EventSummary.h.
References error_flags_.
|
inline |
Set the error flags.
| [in] | flags | Error flags bitmask |
Definition at line 134 of file EventSummary.h.
References error_flags_.
Referenced by eventbuilder::EventBuilder::produce().
|
inline |
Set the event number.
| [in] | num | The event number |
Definition at line 74 of file EventSummary.h.
References event_number_.
Referenced by eventbuilder::EventBuilder::produce().
|
inline |
Set the number of systems in this event.
| [in] | ns | Number of subsystems |
Definition at line 98 of file EventSummary.h.
References nsystems_.
Referenced by eventbuilder::EventBuilder::produce().
|
inline |
Set the total payload size.
| [in] | size | Payload size in bytes |
Definition at line 122 of file EventSummary.h.
References payload_size_.
Referenced by eventbuilder::EventBuilder::produce().
|
inline |
Set the system IDs.
| [in] | ids | Vector of system IDs |
Definition at line 110 of file EventSummary.h.
References system_ids_.
Referenced by eventbuilder::EventBuilder::produce().
|
inline |
Set the timestamp in nanoseconds.
| [in] | ts | The timestamp |
Definition at line 86 of file EventSummary.h.
References timestamp_ns_.
Referenced by eventbuilder::EventBuilder::produce().
|
static |
Name of EventSummary branch.
Definition at line 43 of file EventSummary.h.
|
private |
Error flags bitmask.
Definition at line 178 of file EventSummary.h.
Referenced by clear(), getErrorFlags(), hasError(), setError(), and setErrorFlags().
|
private |
The event number.
Definition at line 153 of file EventSummary.h.
Referenced by clear(), getEventNumber(), and setEventNumber().
|
private |
Number of subsystems that contributed to this event.
Definition at line 163 of file EventSummary.h.
Referenced by clear(), getNSystems(), and setNSystems().
|
private |
Total payload size in bytes.
Definition at line 173 of file EventSummary.h.
Referenced by clear(), getPayloadSize(), and setPayloadSize().
|
private |
List of subsystem IDs that participated in this event.
Definition at line 168 of file EventSummary.h.
Referenced by clear(), getSystemIds(), and setSystemIds().
|
private |
The event timestamp in nanoseconds.
Definition at line 158 of file EventSummary.h.
Referenced by clear(), getTimestampNs(), and setTimestampNs().