|
gdata
|
Per-sensitive-detector container that owns true and digitized hit data. More...
#include <gDataCollection.h>
Public Member Functions | |
| GDataCollection ()=default | |
| Constructs an empty data collection for a single sensitive detector. | |
| ~GDataCollection ()=default | |
| Destructor for GDataCollection. | |
| void | collectTrueInfosData (const std::unique_ptr< GTrueInfoData > &data) |
| Integrate ("collect") true-hit data into a run-level aggregate entry. | |
| void | collectDigitizedData (const std::unique_ptr< GDigitizedData > &data) |
| Integrate ("collect") digitized data into a run-level aggregate entry. | |
| void | addDigitizedData (std::unique_ptr< GDigitizedData > data) |
| Add one digitized-hit entry (event-level ownership transfer). | |
| void | addTrueInfoData (std::unique_ptr< GTrueInfoData > data) |
| Add one true-hit entry (event-level ownership transfer). | |
| auto | getTrueInfoData () const -> const std::vector< std::unique_ptr< GTrueInfoData > > & |
| Read-only access to stored true-hit data. | |
| auto | getDigitizedData () const -> const std::vector< std::unique_ptr< GDigitizedData > > & |
| Read-only access to stored digitized-hit data. | |
A GDataCollection is keyed by sensitive detector name in higher-level containers (e.g. in getDataCollectionMap()).
The container stores:
trueInfosData : vector of per-hit truth objects (or size 1 in run-integrated usage)digitizedData : vector of per-hit digitized objects (or size 1 in run-integrated usage)Two usage modes are supported:
Definition at line 61 of file gDataCollection.h.
|
explicitdefault |
The detector name itself is stored at higher layers (e.g. as a key in getDataCollectionMap()).
|
default |
All stored hit objects are owned via std::unique_ptr and are released automatically.
|
inline |
Event-level API: each hit corresponds to one GDigitizedData object that is owned by this collection after insertion.
| data | Digitized-hit object; ownership is moved into this collection. |
Definition at line 152 of file gDataCollection.h.
|
inline |
Event-level API: each hit corresponds to one GTrueInfoData object that is owned by this collection after insertion.
| data | True-hit object; ownership is moved into this collection. |
Definition at line 165 of file gDataCollection.h.
|
inline |
Intended for run-level accumulation:
data is stored as the first element.Filtering policy:
which=0 when reading observables maps, i.e. it excludes streaming readout keys (crate/slot/channel/timeAtElectronics/chargeAtElectronics).Rationale:
| data | Source digitized-hit object (not owned; values are copied/accumulated). |
Definition at line 127 of file gDataCollection.h.
|
inline |
Intended for run-level accumulation where a detector accumulates hit contributions:
data is stored as the first element.data is accumulated into the first element via accumulateVariable().Notes / design choices:
| data | Source true-hit object (not owned; values are copied/accumulated). |
Definition at line 97 of file gDataCollection.h.
|
inline |
Interpretation depends on usage:
Definition at line 193 of file gDataCollection.h.
|
inline |
Interpretation depends on usage:
Definition at line 179 of file gDataCollection.h.