Stores minimal run metadata and run-level event counters.
More...
#include <gRunHeader.h>
Main responsibilities:
- preserve the run identifier
- track how many events were processed
- track how many processed events produced payload relevant to the run summary
Ownership:
Synchronization:
- this class does not perform internal synchronization
- concurrent updates require external coordination
Definition at line 68 of file gRunHeader.h.
◆ GRunHeader()
| GRunHeader::GRunHeader |
( |
const std::shared_ptr< GOptions > & | gopts, |
|
|
int | rid, |
|
|
int | tid = -1 ) |
|
inline |
The constructor initializes the run identifier and leaves both counters at zero. It also emits a summary through the logger.
- Parameters
-
| gopts | Shared options used to configure logging and related behavior. |
| rid | Run identifier. |
| tid | Optional thread identifier used for diagnostics, defaulting to -1. |
Definition at line 82 of file gRunHeader.h.
◆ add_events_processed()
| void GRunHeader::add_events_processed |
( |
int | count | ) |
|
|
inline |
- Parameters
-
| count | Number of processed events to add. |
Definition at line 143 of file gRunHeader.h.
◆ add_events_with_payload()
| void GRunHeader::add_events_with_payload |
( |
int | count | ) |
|
|
inline |
- Parameters
-
| count | Number of payload-producing events to add. |
Definition at line 150 of file gRunHeader.h.
◆ get_events_processed()
| auto GRunHeader::get_events_processed |
( |
| ) |
const -> int |
|
inline |
- Returns
- Number of processed events.
Definition at line 112 of file gRunHeader.h.
◆ get_events_with_payload()
| auto GRunHeader::get_events_with_payload |
( |
| ) |
const -> int |
|
inline |
- Returns
- Number of payload-producing events.
Definition at line 119 of file gRunHeader.h.
◆ getRunID()
| auto GRunHeader::getRunID |
( |
| ) |
const -> int |
|
inline |
◆ increment_events_processed()
| void GRunHeader::increment_events_processed |
( |
| ) |
|
|
inline |
Intended to be called once per event entering the run-summary flow.
Definition at line 127 of file gRunHeader.h.
◆ increment_events_with_payload()
| void GRunHeader::increment_events_with_payload |
( |
| ) |
|
|
inline |
Intended to be called once for each processed event that actually contributes payload to the run summary.
Definition at line 136 of file gRunHeader.h.
The documentation for this class was generated from the following file: