|
gdata
|
Minimal run metadata: run ID and integrated-event counter. More...
#include <gRunHeader.h>
Public Member Functions | |
| GRunHeader (const std::shared_ptr< GOptions > &gopts, int rid, int tid=-1) | |
| Construct a run header. | |
| auto | getRunID () const -> int |
| Get the run identifier. | |
| auto | get_events_processed () const -> int |
| Get the number of events integrated into this run summary so far. | |
| void | increment_events_processed () |
| Increment the number of processed events. | |
Public Member Functions inherited from GBase< GRunHeader > | |
| GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="") | |
| GBase (const std::shared_ptr< GLogger > &logger) | |
| GBase (const GBase &)=default | |
| GBase (GBase &&) noexcept=default | |
| virtual | ~GBase () |
| GBase & | operator= (const GBase &)=default |
| GBase & | operator= (GBase &&) noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from GBase< GRunHeader > | |
| std::shared_ptr< GLogger > | log |
This object is typically owned by GRunDataCollection as a std::unique_ptr. It provides:
The counter is incremented via increment_events_processed().
Definition at line 61 of file gRunHeader.h.
|
inline |
The constructor logs:
| gopts | Shared options object used to configure logging and behavior. |
| rid | Run identifier. |
| tid | Optional thread ID for diagnostic labeling (default -1 = unspecified). |
Definition at line 77 of file gRunHeader.h.
|
inline |
This value is incremented by increment_events_processed(). Typical usage is "once per event integrated into the run accumulator".
Definition at line 108 of file gRunHeader.h.
|
inline |
Definition at line 97 of file gRunHeader.h.
|
inline |
Intended to be called once per event integrated into the run accumulator.
Definition at line 116 of file gRunHeader.h.