|
gdata
|
Owns and updates the run-level detector summary map. More...
#include <gRunDataCollection.h>
Public Member Functions | |
| GRunDataCollection (const std::shared_ptr< GOptions > &gopts, std::unique_ptr< GRunHeader > header) | |
| Constructs a run data collection with an owned run header. | |
| void | collect_event_data_collection (const std::shared_ptr< GEventDataCollection > edc) |
| Integrates one event collection into the run summary. | |
| void | collect_event_data_collections (const std::string &sdName, std::unique_ptr< GDigitizedData > ddata) |
| Integrates one digitized object into the named detector entry. | |
| auto | getHeader () const -> const std::unique_ptr< GRunHeader > & |
| Returns read-only access to the owned run header. | |
| auto | getDataCollectionMap () const -> const std::map< std::string, std::unique_ptr< GDataCollection > > & |
| Returns read-only access to the detector summary map. | |
| auto | getMutableDataCollectionMap () -> std::map< std::string, std::unique_ptr< GDataCollection > > & |
| Returns mutable access to the detector summary map. | |
| auto | getRunNumber () const -> int |
| Returns the run number stored in the owned header. | |
| auto | get_events_processed () const -> int |
| Returns the total processed-event count stored in the header. | |
| auto | get_events_with_payload () const -> int |
| Returns the number of processed events that contributed payload. | |
| void | merge (const GRunDataCollection &other) |
| Merges another run accumulator into this one. | |
Public Member Functions inherited from GBase< GRunDataCollection > | |
| 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< GRunDataCollection > | |
| std::shared_ptr< GLogger > | log |
The object integrates event content detector by detector.
Current event-integration behavior:
This class also supports merging partial run accumulators through merge().
Definition at line 84 of file gRunDataCollection.h.
|
inline |
Ownership of header is transferred to this object.
| gopts | Shared options used to configure logging and related behavior. |
| header | Owned run header. |
Definition at line 96 of file gRunDataCollection.h.
| void GRunDataCollection::collect_event_data_collection | ( | const std::shared_ptr< GEventDataCollection > | edc | ) |
Current implementation:
edc The detector-local accumulation rules are implemented in GDataCollection :
| edc | Event collection to integrate. |
Definition at line 25 of file gRunDataCollection.cc.
| void GRunDataCollection::collect_event_data_collections | ( | const std::string & | sdName, |
| std::unique_ptr< GDigitizedData > | ddata ) |
This helper accepts ownership of ddata and forwards the content into the detector-local accumulator path.
| sdName | Sensitive detector name. |
| ddata | Digitized object to integrate. |
Definition at line 43 of file gRunDataCollection.cc.
|
inline |
Definition at line 173 of file gRunDataCollection.h.
|
inline |
Definition at line 180 of file gRunDataCollection.h.
|
inline |
Keys are sensitive detector names and values are per-detector GDataCollection accumulators.
Definition at line 144 of file gRunDataCollection.h.
|
inline |
Definition at line 134 of file gRunDataCollection.h.
|
inline |
This accessor is intended for workflows that need to update integrated detector payloads after collection, such as run-final normalization on the master thread.
Definition at line 157 of file gRunDataCollection.h.
|
inline |
Definition at line 166 of file gRunDataCollection.h.
| void GRunDataCollection::merge | ( | const GRunDataCollection & | other | ) |
This method is intended for end-of-run reduction when multiple partial accumulators have been produced independently.
Current merge behavior:
other other into this object| other | Source run accumulator whose content will be added into this object. |
Definition at line 49 of file gRunDataCollection.cc.