gdata
Loading...
Searching...
No Matches
gEventDataCollection.h File Reference

Defines GEventDataCollection, event-level aggregation of per-detector hit data. More...

#include "gEventHeader.h"
#include "gDataCollection.h"
#include <map>
#include <string>
Include dependency graph for gEventDataCollection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GEventDataCollection
 Event container that owns per-detector hit data for one event. More...
 

Namespaces

namespace  gevent_data
 

Functions

auto gevent_data::defineOptions () -> GOptions
 Aggregated options for event-level data collection.
 

Variables

constexpr const char * GEVENTDATA_LOGGER = "gevent_data"
 

Detailed Description

An event data collection groups all hit data produced during a single event. The primary organization is:

detector name (std::string) -> GDataCollection
- vector<unique_ptr<GTrueInfoData>>
- vector<unique_ptr<GDigitizedData>>
Per-sensitive-detector container that owns true and digitized hit data.

Event-level semantics

Ownership

  • The event collection owns all hit entries via std::unique_ptr.
  • The caller transfers ownership when adding data (via std::move).

Intended usage

A typical event loop will:

  • create one GEventDataCollection per event
  • for each hit produced by simulation/digitization, push truth/digitized records into the event container
  • pass the finished event container downstream (output, run integration, analysis, etc.)

Definition in file gEventDataCollection.h.

Variable Documentation

◆ GEVENTDATA_LOGGER

constexpr const char* GEVENTDATA_LOGGER = "gevent_data"
constexpr

Definition at line 41 of file gEventDataCollection.h.