|
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 , ERROR_MISSING_SUBSYSTEM = (1 << 3) , ERROR_INCOMPLETE_EVENT , ERROR_TRUNCATED_EVENT = (1 << 5) , ERROR_DUPLICATE_SUBSYSTEM } |
| 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 27 of file EventSummary.h.
| enum ldmx::EventSummary::ErrorFlags : uint32_t |
Error flag bit definitions.
Definition at line 32 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 131 of file EventSummary.h.
References error_flags_.
|
inline |
Get the event number.
Definition at line 71 of file EventSummary.h.
References event_number_.
|
inline |
Get the number of systems in this event.
Definition at line 95 of file EventSummary.h.
References nsystems_.
|
inline |
Get the total payload size in bytes.
Definition at line 119 of file EventSummary.h.
References payload_size_.
|
inline |
Get the system IDs that participated in this event.
Definition at line 107 of file EventSummary.h.
References system_ids_.
|
inline |
Get the timestamp in nanoseconds.
Definition at line 83 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 144 of file EventSummary.h.
References error_flags_.
|
inline |
Set a specific error flag.
| [in] | flag | The error flag to set |
Definition at line 150 of file EventSummary.h.
References error_flags_.
|
inline |
Set the error flags.
| [in] | flags | Error flags bitmask |
Definition at line 137 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 77 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 101 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 125 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 113 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 89 of file EventSummary.h.
References timestamp_ns_.
Referenced by eventbuilder::EventBuilder::produce().
|
static |
Name of EventSummary branch.
Definition at line 48 of file EventSummary.h.
|
private |
Error flags bitmask.
Definition at line 181 of file EventSummary.h.
Referenced by clear(), getErrorFlags(), hasError(), setError(), and setErrorFlags().
|
private |
The event number.
Definition at line 156 of file EventSummary.h.
Referenced by clear(), getEventNumber(), and setEventNumber().
|
private |
Number of subsystems that contributed to this event.
Definition at line 166 of file EventSummary.h.
Referenced by clear(), getNSystems(), and setNSystems().
|
private |
Total payload size in bytes.
Definition at line 176 of file EventSummary.h.
Referenced by clear(), getPayloadSize(), and setPayloadSize().
|
private |
List of subsystem IDs that participated in this event.
Definition at line 171 of file EventSummary.h.
Referenced by clear(), getSystemIds(), and setSystemIds().
|
private |
The event timestamp in nanoseconds.
Definition at line 161 of file EventSummary.h.
Referenced by clear(), getTimestampNs(), and setTimestampNs().