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

#include <gTrueInfoData.h>

Inheritance diagram for GTrueInfoData:
Inheritance graph
Collaboration diagram for GTrueInfoData:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Definition at line 31 of file gTrueInfoData.h.

Constructor & Destructor Documentation

◆ GTrueInfoData()

GTrueInfoData::GTrueInfoData ( const std::shared_ptr< GOptions > & gopts,
const GHit * ghit )
Parameters
ghitPointer to the GHit from which identity information is extracted.
goptsGOptions Shared pointer

Definition at line 12 of file gTrueInfoData.cc.

Member Function Documentation

◆ create()

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

Definition at line 76 of file gTrueInfoData.h.

◆ getDoubleVariablesMap()

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

Definition at line 64 of file gTrueInfoData.h.

◆ getIdentityString()

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

Definition at line 26 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 72 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 16 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 21 of file gTrueInfoData.cc.


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