14std::atomic<int> GEventDataCollection::globalEventDataCollectionCounter{1};
17std::atomic<int> GEventHeader::globalEventHeaderCounter{1};
21 if (gdataCollectionMap.find(sdName) == gdataCollectionMap.end()) {
22 gdataCollectionMap[sdName] = std::make_unique<GDataCollection>();
26 gdataCollectionMap[sdName]->addTrueInfoData(std::move(data));
27 log->
info(2,
"GEventDataCollection: added new detector TrueInfoData for ", sdName);
32 if (gdataCollectionMap.find(sdName) == gdataCollectionMap.end()) {
33 gdataCollectionMap[sdName] = std::make_unique<GDataCollection>();
37 gdataCollectionMap[sdName]->addDigitizedData(std::move(data));
38 log->
info(2,
"GEventDataCollection: added new detector DigitizedData for ", sdName);
std::shared_ptr< GLogger > log
void addDetectorTrueInfoData(const std::string &sdName, std::unique_ptr< GTrueInfoData > data)
Appends one truth object to the specified detector entry.
void addDetectorDigitizedData(const std::string &sdName, std::unique_ptr< GDigitizedData > data)
Appends one digitized object to the specified detector entry.
void info(int level, Args &&... args) const
Defines GEventDataCollection, the event-level aggregation of detector hit data.