|
gdata
|
Per-sensitive-detector container that owns truth and digitized data objects. More...
#include <gDataCollection.h>
Public Member Functions | |
| GDataCollection ()=default | |
| Constructs an empty detector-local data collection. | |
| ~GDataCollection ()=default | |
| Destroys the collection and all owned hit objects. | |
| void | collectTrueInfosData (const std::unique_ptr< GTrueInfoData > &data) |
| Integrates one truth object into the detector-level accumulator. | |
| void | collectDigitizedData (const std::unique_ptr< GDigitizedData > &data) |
| Integrates one digitized object into the detector-level accumulator. | |
| void | addDigitizedData (std::unique_ptr< GDigitizedData > data) |
| Appends one digitized object in event mode. | |
| void | addTrueInfoData (std::unique_ptr< GTrueInfoData > data) |
| Appends one truth object in event mode. | |
| auto | getTrueInfoData () const -> const std::vector< std::unique_ptr< GTrueInfoData > > & |
| Returns read-only access to the stored truth objects. | |
| auto | getDigitizedData () const -> const std::vector< std::unique_ptr< GDigitizedData > > & |
| Returns read-only access to the stored digitized objects. | |
| auto | getMutableDigitizedData () -> std::vector< std::unique_ptr< GDigitizedData > > & |
| Returns mutable access to the stored digitized objects. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const GDataCollection &collection) |
In higher-level maps, a GDataCollection is usually keyed by the sensitive detector name.
Stored content:
trueInfosData : truth objects, typically one per hit in event modedigitizedData : digitized objects, typically one per hit in event modeUsage modes:
Definition at line 64 of file gDataCollection.h.
|
explicitdefault |
The object starts with empty truth and digitized vectors. Detector naming is handled by the owning map at higher levels.
|
default |
Both truth and digitized entries are stored in std::unique_ptr containers, so destruction is automatic and exception-safe.
|
inline |
Ownership of data is transferred to this collection. Each appended object normally corresponds to one hit for this detector in one event.
| data | Digitized object to store. |
Definition at line 156 of file gDataCollection.h.
|
inline |
Ownership of data is transferred to this collection. Each appended object normally corresponds to one hit for this detector in one event.
| data | Truth object to store. |
Definition at line 170 of file gDataCollection.h.
|
inline |
This method is intended for integrated usage.
Behavior:
data becomes the first accumulator entrydata are summed into the first entryCurrent integration policy:
which = 0| data | Source digitized object whose values are copied or accumulated. |
Definition at line 131 of file gDataCollection.h.
|
inline |
This method is intended for integrated usage.
Behavior:
data becomes the first accumulator entrydata is summed into the first entryCurrent integration policy:
| data | Source truth object whose values are copied or accumulated. |
Definition at line 101 of file gDataCollection.h.
|
inline |
Interpretation depends on the usage mode:
Definition at line 199 of file gDataCollection.h.
|
inline |
This accessor is intended for workflows that need to update detector-local integrated digitized payloads after collection, such as final normalization at run end.
Definition at line 212 of file gDataCollection.h.
|
inline |
Interpretation depends on the usage mode:
Definition at line 185 of file gDataCollection.h.
|
friend |
Definition at line 242 of file gDataCollection.h.