140 return gdataCollectionMap;
167 static auto create(
const std::shared_ptr<GOptions>& gopts) -> std::shared_ptr<GEventDataCollection> {
169 auto edc = std::make_shared<GEventDataCollection>(gopts, std::move(header));
174 edc->addDetectorDigitizedData(
"ctof", std::move(digi_data));
175 edc->addDetectorTrueInfoData(
"ctof", std::move(true_data));
181 std::unique_ptr<GEventHeader> gevent_header;
184 std::map<std::string, std::unique_ptr<GDataCollection>> gdataCollectionMap;
187 static std::atomic<int> globalEventDataCollectionCounter;
Per-sensitive-detector container that owns true and digitized hit data.
static std::unique_ptr< GDigitizedData > create(const std::shared_ptr< GOptions > &gopts)
Test/example factory: create a digitized hit with deterministic dummy data.
Event container that owns per-detector hit data for one event.
auto getEventNumber() const -> int
Convenience accessor for the event number.
static auto create(const std::shared_ptr< GOptions > &gopts) -> std::shared_ptr< GEventDataCollection >
Test/example factory: create an event collection with one dummy hit for "ctof".
GEventDataCollection(const std::shared_ptr< GOptions > &gopts, std::unique_ptr< GEventHeader > header)
Construct an event data collection with an owned header.
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.
auto getDataCollectionMap() const -> const std::map< std::string, std::unique_ptr< GDataCollection > > &
Access the per-detector map for this event.
auto getHeader() const -> const std::unique_ptr< GEventHeader > &
Access the owned event header.
static std::unique_ptr< GTrueInfoData > create(const std::shared_ptr< GOptions > &gopts)
Test/example factory: create a true-hit object with deterministic dummy data.
constexpr const char * GEVENTDATA_LOGGER
GOptions defineOptions()
Defines GOptions for the digitized-data logger domain.
auto defineOptions() -> GOptions
Aggregated options for event-level data collection.
GOptions defineOptions()
Defines GOptions for the true-data logger domain.