26 goptions += gtouchable::defineOptions();
62 [[nodiscard]]
inline const std::unique_ptr<GEventHeader>&
getHeader()
const {
return gheader; }
68 [[nodiscard]]
inline const std::map<std::string, std::unique_ptr<GDataCollection>>&
getDataCollectionMap()
const {
return gdataCollectionMap; }
78 static std::shared_ptr<GEventDataCollection>
create(
const std::shared_ptr<GOptions>& gopts) {
80 auto edc = std::make_shared<GEventDataCollection>(gopts, std::move(header));
85 edc->addDetectorDigitizedData(
"ctof", std::move(digi_data));
86 edc->addDetectorTrueInfoData(
"ctof", std::move(true_data));
92 std::unique_ptr<GEventHeader>
gheader;
93 std::map<std::string, std::unique_ptr<GDataCollection>> gdataCollectionMap;
96 static std::atomic<int> globalEventDataCollectionCounter;
static std::unique_ptr< GDigitizedData > create(const std::shared_ptr< GOptions > &gopts)
const std::map< std::string, std::unique_ptr< GDataCollection > > & getDataCollectionMap() const
Gets the map of data collections.
static std::shared_ptr< GEventDataCollection > create(const std::shared_ptr< GOptions > &gopts)
GEventDataCollection(const std::shared_ptr< GOptions > &gopts, std::unique_ptr< GEventHeader > header)
Constructs a GEventDataCollection.
void addDetectorTrueInfoData(const std::string &sdName, std::unique_ptr< GTrueInfoData > data)
Adds true hit information data for a detector.
void addDetectorDigitizedData(const std::string &sdName, std::unique_ptr< GDigitizedData > data)
Adds digitized hit data for a detector.
int getEventNumber() const
Gets the event number.
const std::unique_ptr< GEventHeader > & getHeader() const
Gets the event header.
static std::unique_ptr< GTrueInfoData > create(const std::shared_ptr< GOptions > &gopts)
constexpr const char * GEVENTDATA_LOGGER