GGS(GenericGEANT4Simulation)Software
2.6.0
|
Class for storing the geometry parameters on Root output file. More...
#include <GGSTGeoParams.h>
Public Member Functions | |
void | SetIntGeoParams (const std::map< std::string, int > &intGeoParams) |
Sets the integer geometry parameters. More... | |
void | SetBoolGeoParams (const std::map< std::string, bool > &boolGeoParams) |
Sets the boolean geometry parameters. More... | |
void | SetRealGeoParams (const std::map< std::string, double > &realGeoParams) |
Sets the real geometry parameters. More... | |
void | SetStringGeoParams (const std::map< std::string, std::string > &stringGeoParams) |
Sets the string geometry parameters. More... | |
int | GetIntGeoParam (const std::string &name) const |
Gets an integer geometry parameter. More... | |
bool | GetBoolGeoParam (const std::string &name) const |
Gets a boolean geometry parameter. More... | |
double | GetRealGeoParam (const std::string &name) const |
Gets a real geometry parameter. More... | |
std::string | GetStringGeoParam (const std::string &name) const |
Gets a string geometry parameter. More... | |
bool | AreSameParamsAs (const GGSTGeoParams ¶ms) const |
Compares two geometry parameter objects. More... | |
Class for storing the geometry parameters on Root output file.
Definition at line 18 of file GGSTGeoParams.h.
bool GGSTGeoParams::AreSameParamsAs | ( | const GGSTGeoParams & | params | ) | const |
Compares two geometry parameter objects.
This method returns true if the parameters of the argument object are identical in number, names and values to those of this object.
(Note: this method is defined for similarity with GGSTSimInfo::IsSameSimAs, instead of defining GGSTGeoParams::operator= )
params | The geometry parameters object to be compared with this. |
Definition at line 60 of file GGSTGeoParams.cpp.
bool GGSTGeoParams::GetBoolGeoParam | ( | const std::string & | name | ) | const |
Gets a boolean geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 36 of file GGSTGeoParams.cpp.
int GGSTGeoParams::GetIntGeoParam | ( | const std::string & | name | ) | const |
Gets an integer geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 28 of file GGSTGeoParams.cpp.
double GGSTGeoParams::GetRealGeoParam | ( | const std::string & | name | ) | const |
Gets a real geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 44 of file GGSTGeoParams.cpp.
std::string GGSTGeoParams::GetStringGeoParam | ( | const std::string & | name | ) | const |
Gets a string geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 52 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetBoolGeoParams | ( | const std::map< std::string, bool > & | boolGeoParams | ) |
Sets the boolean geometry parameters.
boolGeoParams | (name,value) map of the boolean geometry parameters. |
Definition at line 16 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetIntGeoParams | ( | const std::map< std::string, int > & | intGeoParams | ) |
Sets the integer geometry parameters.
intGeoParams | (name,value) map of the integer geometry parameters. |
Definition at line 12 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetRealGeoParams | ( | const std::map< std::string, double > & | realGeoParams | ) |
Sets the real geometry parameters.
intGeoParams | (name,value) map of the real geometry parameters. |
Definition at line 20 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetStringGeoParams | ( | const std::map< std::string, std::string > & | stringGeoParams | ) |
Sets the string geometry parameters.
intGeoParams | (name,value) map of the string geometry parameters. |
Definition at line 24 of file GGSTGeoParams.cpp.