gdata
GTrueInfoData Class Reference

#include <gTrueInfoData.h>

Collaboration diagram for GTrueInfoData:
Collaboration graph

Public Member Functions

 GTrueInfoData (GHit *ghit, std::shared_ptr< GLogger > logger)
 Constructs a GTrueInfoData object. More...
 
 ~GTrueInfoData ()
 Destructor for GTrueInfoData. More...
 
std::string getIdentityString ()
 Returns a string representation of the identity. More...
 
void includeVariable (const std::string &varName, double var)
 Includes a double variable in the true hit data. More...
 
void includeVariable (const std::string &varName, std::string var)
 Includes a string variable in the true hit data. More...
 
std::map< std::string, double > getDoubleVariablesMap () const
 Returns the map of double variables. More...
 
std::map< std::string, std::string > getStringVariablesMap () const
 Returns the map of string variables. More...
 

Detailed Description

Definition at line 17 of file gTrueInfoData.h.

Constructor & Destructor Documentation

◆ GTrueInfoData()

GTrueInfoData::GTrueInfoData ( GHit *  ghit,
std::shared_ptr< GLogger >  logger 
)
Parameters
ghitPointer to the GHit from which identity information is extracted.
loggerGLogger Shared pointer

Definition at line 10 of file gTrueInfoData.cc.

◆ ~GTrueInfoData()

GTrueInfoData::~GTrueInfoData ( )
inline

Definition at line 29 of file gTrueInfoData.h.

Member Function Documentation

◆ getDoubleVariablesMap()

std::map<std::string, double> GTrueInfoData::getDoubleVariablesMap ( ) const
inline
Returns
A map from variable names to double values.

Definition at line 55 of file gTrueInfoData.h.

◆ getIdentityString()

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

Definition at line 25 of file gTrueInfoData.cc.

◆ getStringVariablesMap()

std::map<std::string, std::string> GTrueInfoData::getStringVariablesMap ( ) const
inline
Returns
A map from variable names to string values.

Definition at line 63 of file gTrueInfoData.h.

◆ includeVariable() [1/2]

void GTrueInfoData::includeVariable ( const std::string &  varName,
double  var 
)
Parameters
varNameThe variable name.
varThe double value.

Definition at line 15 of file gTrueInfoData.cc.

◆ includeVariable() [2/2]

void GTrueInfoData::includeVariable ( const std::string &  varName,
std::string  var 
)
Parameters
varNameThe variable name.
varThe string value.

Definition at line 20 of file gTrueInfoData.cc.


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