28 log->debug(CONSTRUCTOR,
"GEventDataCollection");
29 gdataCollectionMap =
new std::map<std::string, GDataCollection*>();
38 log->debug(DESTRUCTOR,
"GEventDataCollection");
39 for (
auto& [keys, values] : (*gdataCollectionMap)) {
delete values; }
41 delete gdataCollectionMap;
69 return gdataCollectionMap;
93 std::shared_ptr<GLogger> log;
95 std::map<std::string, GDataCollection*>* gdataCollectionMap;
const std::vector< GDigitizedData * > * getDigitizedDataForDetector(std::string detector) const
Gets the digitized hit data for a specific detector.
void addDetectorTrueInfoData(std::string sdName, GTrueInfoData *data)
Adds true hit information data for a detector.
GEventDataCollection(GEventDataCollectionHeader *header, std::shared_ptr< GLogger > logger)
Constructs a GEventDataCollection.
const std::map< std::string, GDataCollection * > * getDataCollectionMap() const
Gets the map of data collections.
int getEventNumber() const
Gets the event number.
void addDetectorDigitizedData(std::string sdName, GDigitizedData *data)
Adds digitized hit data for a detector.
const GEventDataCollectionHeader * getHeader() const
Gets the event header.
const std::vector< GTrueInfoData * > * getTrueInfoDataForDetector(std::string detector) const
Gets the true hit information data for a specific detector.
~GEventDataCollection()
Destructor for GEventDataCollection.