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

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

#include "gDataCollection.h"
#include "gEventHeader.h"
#include <map>
#include <string>
#include <vector>
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

struct  GGeneratedParticleData
 Serialization record for one generated particle in event output. More...
 
class  GEventDataCollection
 Owns all detector-local data for one event. More...
 

Namespaces

namespace  gevent_data
 

Typedefs

using GGeneratedParticleBank = std::vector<GGeneratedParticleData>
 Event-local generated-particle bank.
 

Functions

auto gevent_data::defineOptions () -> GOptions
 Aggregates the option groups needed by event-level data containers.
 

Variables

constexpr const char * GEVENTDATA_LOGGER = "gevent_data"
 

Detailed Description

GEventDataCollection groups detector-local hit data and generated-particle metadata produced during one event.

Primary organization:

detector name (std::string) -> GDataCollection
- vector<unique_ptr<GTrueInfoData>>
- vector<unique_ptr<GDigitizedData>>
generated particle banks:
- generated
- generated_tracked
Per-sensitive-detector container that owns truth and digitized data objects.

Event semantics:

  • each insertion appends one hit-side object to the target detector entry
  • detector entries are created lazily on first use
  • ownership of inserted objects is transferred to this collection

Typical workflow:

  • create one event container
  • add truth and digitized objects as hits are produced
  • pass the completed event container downstream for output, analysis, or run integration

Definition in file gEventDataCollection.h.

Typedef Documentation

◆ GGeneratedParticleBank

Definition at line 91 of file gEventDataCollection.h.

Variable Documentation

◆ GEVENTDATA_LOGGER

constexpr const char* GEVENTDATA_LOGGER = "gevent_data"
constexpr

Definition at line 41 of file gEventDataCollection.h.