18std::atomic<int> GEventDataCollection::globalEventDataCollectionCounter{1};
21std::atomic<int> GEventHeader::globalEventHeaderCounter{1};
25 if (gdataCollectionMap.find(sdName) == gdataCollectionMap.end()) {
26 gdataCollectionMap[sdName] = std::make_unique<GDataCollection>();
30 gdataCollectionMap[sdName]->addTrueInfoData(std::move(data));
31 log->
info(2,
"GEventDataCollection: added new detector TrueInfoData for ", sdName);
36 if (gdataCollectionMap.find(sdName) == gdataCollectionMap.end()) {
37 gdataCollectionMap[sdName] = std::make_unique<GDataCollection>();
41 gdataCollectionMap[sdName]->addDigitizedData(std::move(data));
42 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)
Append one true-hit entry to the specified detector.
void addDetectorDigitizedData(const std::string &sdName, std::unique_ptr< GDigitizedData > data)
Append one digitized-hit entry to the specified detector.
void info(int level, Args &&... args) const
Defines GEventDataCollection, event-level aggregation of per-detector hit data.