6#ifndef EVENT_EVENTSUMMARY_H_
7#define EVENT_EVENTSUMMARY_H_
60 void clear(Option_t* o =
"");
Provides summary information about an assembled event, including error flags for data quality assessm...
uint32_t nsystems_
Number of subsystems that contributed to this event.
uint64_t getTimestampNs() const
Get the timestamp in nanoseconds.
const std::vector< uint64_t > & getSystemIds() const
Get the system IDs that participated in this event.
EventSummary()=default
Class constructor.
uint32_t error_flags_
Error flags bitmask.
void setSystemIds(const std::vector< uint64_t > &ids)
Set the system IDs.
void clear(Option_t *o="")
Clear information from this object.
void setNSystems(uint32_t ns)
Set the number of systems in this event.
virtual ~EventSummary()=default
Class destructor.
ClassDef(EventSummary, 1)
ROOT class definition.
static const std::string BRANCH
Name of EventSummary branch.
uint64_t getPayloadSize() const
Get the total payload size in bytes.
void setPayloadSize(uint64_t size)
Set the total payload size.
uint64_t event_number_
The event number.
void setTimestampNs(uint64_t ts)
Set the timestamp in nanoseconds.
std::vector< uint64_t > system_ids_
List of subsystem IDs that participated in this event.
uint32_t getErrorFlags() const
Get the error flags for this event.
void setEventNumber(uint64_t num)
Set the event number.
uint64_t timestamp_ns_
The event timestamp in nanoseconds.
void setErrorFlags(uint32_t flags)
Set the error flags.
uint64_t getEventNumber() const
Get the event number.
void setError(ErrorFlags flag)
Set a specific error flag.
uint32_t getNSystems() const
Get the number of systems in this event.
uint64_t payload_size_
Total payload size in bytes.
bool hasError(ErrorFlags flag) const
Check if a specific error flag is set.
ErrorFlags
Error flag bit definitions.
@ ERROR_PARSE_FAILURE
Frame parsing error.
@ ERROR_DUPLICATE_SUBSYSTEM
Duplicate subsystem in single event.
@ ERROR_INCOHERENT_TIMING
Fragment timestamps outside coherence window.
@ ERROR_MISSING_SUBSYSTEM
Expected subsystem data missing.
@ ERROR_TRUNCATED_EVENT
Event was truncated (EOF reached)
@ ERROR_INCOMPLETE_EVENT
Event lacks expected number of fragments.
@ ERROR_CRC_MISMATCH
CRC/checksum validation failed.