|
gdata
|
Run-level container that integrates per-event detector data into per-detector summaries. More...
#include <gRunDataCollection.h>
Public Member Functions | |
| GRunDataCollection (const std::shared_ptr< GOptions > &gopts, std::unique_ptr< GRunHeader > header) | |
| Construct a run data collection. | |
| void | collect_event_data_collection (const std::shared_ptr< GEventDataCollection > edc) |
| Integrate one event data collection into this run summary. | |
| auto | getHeader () const -> const std::unique_ptr< GRunHeader > & |
| Access the owned run header. | |
| auto | getDataCollectionMap () const -> const std::map< std::string, std::unique_ptr< GDataCollection > > & |
| Access the per-detector run summary map. | |
| auto | getRunNumber () const -> int |
| Convenience accessor for the run number. | |
| auto | get_events_processed () const -> int |
| Number of events integrated into this run summary. | |
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 main API is collect_event_data_collection(), which:
The per-detector map is keyed by sensitive detector name.
Definition at line 81 of file gRunDataCollection.h.
|
inline |
The header stores metadata such as run ID and (optionally) number of integrated events.
Ownership:
header is moved into this object and owned exclusively.| gopts | Shared options object used to configure logging and behavior. |
| header | Owned run header describing this run. |
Definition at line 96 of file gRunDataCollection.h.
| void GRunDataCollection::collect_event_data_collection | ( | const std::shared_ptr< GEventDataCollection > | edc | ) |
For each detector present in edc, integrates all per-hit entries:
"collectDetectorTrueInfoData()")"collectDetectorDigitizedData()")The integration semantics for individual hits are implemented in GDataCollection :
| edc | Event-level container to integrate. |
Definition at line 37 of file gRunDataCollection.cc.
|
inline |
This value is stored in GRunHeader and incremented by increment_events_processed().
Definition at line 150 of file gRunDataCollection.h.
|
inline |
Key: sensitive detector name. Value: per-detector GDataCollection accumulator.
Definition at line 131 of file gRunDataCollection.h.
|
inline |
Definition at line 120 of file gRunDataCollection.h.
|
inline |
Definition at line 139 of file gRunDataCollection.h.