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

#include <gDataCollection.h>

Collaboration diagram for GDataCollection:
Collaboration graph

Public Member Functions

 GDataCollection ()
 Constructs a GDataCollection.
 
void addTrueInfoData (std::unique_ptr< GTrueInfoData > data)
 Destructor for GDataCollection.
 
void addDigitizedData (std::unique_ptr< GDigitizedData > data)
 Adds digitized hit data.
 
const std::vector< std::unique_ptr< GTrueInfoData > > & getTrueInfoData () const
 Provides read-only access to the stored true hit data.
 
const std::vector< std::unique_ptr< GDigitizedData > > & getDigitizedData () const
 Provides read-only access to the stored digitized hit data.
 

Detailed Description

Definition at line 19 of file gDataCollection.h.

Constructor & Destructor Documentation

◆ GDataCollection()

GDataCollection::GDataCollection ( )
inlineexplicit
Parameters
loggerPointer to a GLogger instance.

Definition at line 25 of file gDataCollection.h.

Member Function Documentation

◆ addDigitizedData()

void GDataCollection::addDigitizedData ( std::unique_ptr< GDigitizedData > data)
inline
Parameters
dataUnique pointer to GDigitizedData.

Definition at line 45 of file gDataCollection.h.

◆ addTrueInfoData()

void GDataCollection::addTrueInfoData ( std::unique_ptr< GTrueInfoData > data)
inline

Smart pointers clean up automatically.

Adds true hit information data.

Parameters
dataUnique pointer to GTrueInfoData.

Definition at line 37 of file gDataCollection.h.

◆ getDigitizedData()

const std::vector< std::unique_ptr< GDigitizedData > > & GDataCollection::getDigitizedData ( ) const
inline

Returns a constant reference to the internal vector of unique pointers to GDigitizedData objects. Ownership of the data remains with this class. Callers may read the data but must not modify or transfer ownership.

Returns
Const reference to the vector of unique_ptr<GDigitizedData>.

Definition at line 70 of file gDataCollection.h.

◆ getTrueInfoData()

const std::vector< std::unique_ptr< GTrueInfoData > > & GDataCollection::getTrueInfoData ( ) const
inline

Returns a constant reference to the internal vector of unique pointers to GTrueInfoData objects. Ownership of the data remains with this class. Callers may inspect the data via the pointers but must not modify or take ownership of them.

Returns
Const reference to the vector of unique_ptr<GTrueInfoData>.

Definition at line 59 of file gDataCollection.h.


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