gdata
Loading...
Searching...
No Matches
gDataCollection.h File Reference

Defines the GDataCollection class, the per-detector container of truth and digitized hit data. More...

#include "gDigitizedData.h"
#include "gTrueInfoData.h"
#include <memory>
#include <ostream>
#include <vector>
Include dependency graph for gDataCollection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GDataCollection
 Per-sensitive-detector container that owns truth and digitized data objects. More...
 

Detailed Description

GDataCollection is the detector-local aggregation unit used by higher-level containers. One instance usually corresponds to one sensitive detector entry and stores:

It supports two distinct usage patterns.

Event mode:

  • append one truth object and/or one digitized object per hit
  • ownership of inserted objects is transferred to this container

Integrated mode:

  • accumulate many contributions into the first stored entry of each vector
  • truth accumulation currently merges only floating-point truth variables
  • digitized accumulation currently merges only non-SRO scalar observables

Design notes:

  • the class does not require truth and digitized vectors to have matching sizes
  • detector naming is managed by higher-level maps such as those in GEventDataCollection and GRunDataCollection
  • vector index meaning depends on whether the object is used in event or integrated mode

Definition in file gDataCollection.h.