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

#include <gDigitizedData.h>

Inheritance diagram for GDigitizedData:
Inheritance graph
Collaboration diagram for GDigitizedData:
Collaboration graph

Public Member Functions

 GDigitizedData (const std::shared_ptr< GOptions > &gopts, const GHit *ghit)
 Constructs a GDigitizedData object from a GHit.
 
std::string getIdentityString () const
 Returns a string representation of the hit identity.
 
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.
 
std::map< std::string, double > getDblObservablesMap (int which) const
 Returns the filtered map of double observables.
 
int getTimeAtElectronics ()
 Gets the time at electronics.
 
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.
 
std::map< std::string, std::vector< double > > getArrayDblObservablesMap () const
 Returns the map of double array observables.
 

Static Public Member Functions

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

Detailed Description

Definition at line 34 of file gDigitizedData.h.

Constructor & Destructor Documentation

◆ GDigitizedData()

GDigitizedData::GDigitizedData ( const std::shared_ptr< GOptions > & gopts,
const GHit * ghit )
Parameters
ghitunique_ptr the GHit from which identity information is extracted.
goptsPointer to a GOptions instance.

Definition at line 18 of file gDigitizedData.cc.

Member Function Documentation

◆ create()

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

Definition at line 93 of file gDigitizedData.h.

◆ 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 90 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 84 of file gDigitizedData.h.

◆ getDblObservable()

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

Definition at line 67 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 29 of file gDigitizedData.cc.

◆ getIdentityString()

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

Definition at line 74 of file gDigitizedData.cc.

◆ getIntObservable()

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

Definition at line 60 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 22 of file gDigitizedData.cc.

◆ getTimeAtElectronics()

int GDigitizedData::getTimeAtElectronics ( )

Returns -1 if TIMEATELECTRONICS is not included.

Returns
The time at electronics.

Definition at line 54 of file gDigitizedData.cc.

◆ includeVariable() [1/2]

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

Definition at line 49 of file gDigitizedData.cc.

◆ includeVariable() [2/2]

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

Definition at line 44 of file gDigitizedData.cc.


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