gdata
Loading...
Searching...
No Matches
GEventDataCollection Class Reference

#include <gEventDataCollection.h>

Inheritance diagram for GEventDataCollection:
Inheritance graph
Collaboration diagram for GEventDataCollection:
Collaboration graph

Public Member Functions

 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.
 
const std::unique_ptr< GEventHeader > & getHeader () const
 Gets the event header.
 
const std::map< std::string, std::unique_ptr< GDataCollection > > & getDataCollectionMap () const
 Gets the map of data collections.
 
int getEventNumber () const
 Gets the event number.
 

Static Public Member Functions

static std::shared_ptr< GEventDataCollectioncreate (const std::shared_ptr< GOptions > &gopts)
 

Detailed Description

Definition at line 32 of file gEventDataCollection.h.

Constructor & Destructor Documentation

◆ GEventDataCollection()

GEventDataCollection::GEventDataCollection ( const std::shared_ptr< GOptions > & gopts,
std::unique_ptr< GEventHeader > header )
inline
Parameters
headerPointer to the event header.
loggerPointer to a GLogger instance (using the 'gdata' name).

Definition at line 41 of file gEventDataCollection.h.

Member Function Documentation

◆ addDetectorDigitizedData()

void GEventDataCollection::addDetectorDigitizedData ( const std::string & sdName,
std::unique_ptr< GDigitizedData > data )
Parameters
sdNameThe sensitive detector name.
dataPointer to GDigitizedData.

Definition at line 18 of file gEventDataCollection.cc.

◆ addDetectorTrueInfoData()

void GEventDataCollection::addDetectorTrueInfoData ( const std::string & sdName,
std::unique_ptr< GTrueInfoData > data )
Parameters
sdNameThe sensitive detector name.
dataPointer to GTrueInfoData.

Definition at line 12 of file gEventDataCollection.cc.

◆ create()

static std::shared_ptr< GEventDataCollection > GEventDataCollection::create ( const std::shared_ptr< GOptions > & gopts)
inlinestatic

Definition at line 78 of file gEventDataCollection.h.

◆ getDataCollectionMap()

const std::map< std::string, std::unique_ptr< GDataCollection > > & GEventDataCollection::getDataCollectionMap ( ) const
inline
Returns
Pointer to the map from detector names to GDataCollection.

Definition at line 68 of file gEventDataCollection.h.

◆ getEventNumber()

int GEventDataCollection::getEventNumber ( ) const
inline
Returns
The event number.

Definition at line 74 of file gEventDataCollection.h.

◆ getHeader()

const std::unique_ptr< GEventHeader > & GEventDataCollection::getHeader ( ) const
inline
Returns
Pointer to the event header.

Definition at line 62 of file gEventDataCollection.h.


The documentation for this class was generated from the following files: