143 return gdataCollectionMap;
170 static auto create(
const std::shared_ptr<GOptions>& gopts) -> std::shared_ptr<GEventDataCollection> {
172 auto edc = std::make_shared<GEventDataCollection>(gopts, std::move(header));
177 edc->addDetectorDigitizedData(
"ctof", std::move(digi_data));
178 edc->addDetectorTrueInfoData(
"ctof", std::move(true_data));
185 std::unique_ptr<GEventHeader> gevent_header;
188 std::map<std::string, std::unique_ptr<GDataCollection>> gdataCollectionMap;
191 static std::atomic<int> globalEventDataCollectionCounter;
Per-sensitive-detector container that owns truth and digitized data objects.
static std::unique_ptr< GDigitizedData > create(const std::shared_ptr< GOptions > &gopts)
Creates deterministic example data for tests and examples.
Owns all detector-local data for one event.
auto getEventNumber() const -> int
Returns the event number stored in the owned header.
static auto create(const std::shared_ptr< GOptions > &gopts) -> std::shared_ptr< GEventDataCollection >
Creates a minimal example event containing one detector entry and one hit pair.
GEventDataCollection(const std::shared_ptr< GOptions > &gopts, std::unique_ptr< GEventHeader > header)
Constructs an event data collection with an owned header.
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.
auto getDataCollectionMap() const -> const std::map< std::string, std::unique_ptr< GDataCollection > > &
Returns read-only access to the detector map for this event.
auto getHeader() const -> const std::unique_ptr< GEventHeader > &
Returns read-only access to the owned event header.
static std::unique_ptr< GTrueInfoData > create(const std::shared_ptr< GOptions > &gopts)
Creates deterministic example data for tests and examples.
Defines the GDataCollection class, the per-detector container of truth and digitized hit data.
constexpr const char * GEVENTDATA_LOGGER
GOptions defineOptions()
Defines the options subtree used by the digitized-data logger domain.
auto defineOptions() -> GOptions
Aggregates the option groups needed by event-level data containers.
GOptions defineOptions()
Defines the options subtree used by the true-data logger domain.