gdata
GDigitizedData Class Reference

#include <gDigitizedData.h>

Collaboration diagram for GDigitizedData:
Collaboration graph

Public Member Functions

 GDigitizedData (GHit *ghit, const std::shared_ptr< GLogger > &logger)
 Constructs a GDigitizedData object from a GHit. More...
 
 ~GDigitizedData ()
 Destructor for GDigitizedData. More...
 
std::string getIdentityString ()
 Returns a string representation of the hit identity. More...
 
void includeVariable (const std::string &vname, int value)
 
void includeVariable (const std::string &vname, double value)
 
std::map< std::string, int > getIntObservablesMap (int which) const
 Returns the filtered map of integer observables. More...
 
std::map< std::string, double > getDblObservablesMap (int which) const
 Returns the filtered map of double observables. More...
 
int getTimeAtElectronics ()
 Gets the time at electronics. More...
 
int getIntObservable (const std::string &varName)
 
double getDblObservable (const std::string &varName)
 
std::map< std::string, std::vector< int > > getArrayIntObservablesMap () const
 Returns the map of integer array observables. More...
 
std::map< std::string, std::vector< double > > getArrayDblObservablesMap () const
 Returns the map of double array observables. More...
 

Detailed Description

Definition at line 17 of file gDigitizedData.h.

Constructor & Destructor Documentation

◆ GDigitizedData()

GDigitizedData::GDigitizedData ( GHit *  ghit,
const std::shared_ptr< GLogger > &  logger 
)
Parameters
ghitPointer to the GHit from which identity information is extracted.
loggerPointer to a GLogger instance.

Definition at line 12 of file gDigitizedData.cc.

◆ ~GDigitizedData()

GDigitizedData::~GDigitizedData ( )
inline

Definition at line 29 of file gDigitizedData.h.

Member Function Documentation

◆ getArrayDblObservablesMap()

std::map<std::string, std::vector<double> > GDigitizedData::getArrayDblObservablesMap ( ) const
inline
Returns
A map of variable names to vectors of double.

Definition at line 78 of file gDigitizedData.h.

◆ getArrayIntObservablesMap()

std::map<std::string, std::vector<int> > GDigitizedData::getArrayIntObservablesMap ( ) const
inline
Returns
A map of variable names to vectors of integers.

Definition at line 72 of file gDigitizedData.h.

◆ getDblObservable()

double GDigitizedData::getDblObservable ( const std::string &  varName)

Definition at line 79 of file gDigitizedData.cc.

◆ getDblObservablesMap()

std::map< std::string, double > GDigitizedData::getDblObservablesMap ( int  which) const
Parameters
which0: returns non-streaming variables; 1: returns streaming variables.
Returns
A map of variable names to double values.

Definition at line 28 of file gDigitizedData.cc.

◆ getIdentityString()

std::string GDigitizedData::getIdentityString ( )
Returns
A string representing the identity.

Definition at line 86 of file gDigitizedData.cc.

◆ getIntObservable()

int GDigitizedData::getIntObservable ( const std::string &  varName)

Definition at line 72 of file gDigitizedData.cc.

◆ getIntObservablesMap()

std::map< std::string, int > GDigitizedData::getIntObservablesMap ( int  which) const
Parameters
which0: returns non-streaming variables; 1: returns streaming variables.
Returns
A map of variable names to integer values.

Definition at line 17 of file gDigitizedData.cc.

◆ getTimeAtElectronics()

int GDigitizedData::getTimeAtElectronics ( )

Returns -1 if TIMEATELECTRONICS is not included.

Returns
The time at electronics.

Definition at line 64 of file gDigitizedData.cc.

◆ includeVariable() [1/2]

void GDigitizedData::includeVariable ( const std::string &  vname,
double  value 
)

Definition at line 59 of file gDigitizedData.cc.

◆ includeVariable() [2/2]

void GDigitizedData::includeVariable ( const std::string &  vname,
int  value 
)

Definition at line 54 of file gDigitizedData.cc.


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