GGS(GenericGEANT4Simulation)Software
2.7.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... | |
void | SetVectIntGeoParams (const std::map< std::string, std::vector< int >> &vectIntGeoParams) |
Sets the vector-of-integers geometry parameters. More... | |
void | SetVectBoolGeoParams (const std::map< std::string, std::vector< bool >> &vectBoolGeoParams) |
Sets the vector-of-booleans geometry parameters. More... | |
void | SetVectRealGeoParams (const std::map< std::string, std::vector< double >> &vectRealGeoParams) |
Sets the vector-of-reals geometry parameters. More... | |
void | SetVectStringGeoParams (const std::map< std::string, std::vector< std::string >> &vectStringGeoParams) |
Sets the vector-of-strings 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... | |
std::vector< int > | GetVectIntGeoParam (const std::string &name) const |
Gets a vector-of-integers geometry parameter. More... | |
std::vector< bool > | GetVectBoolGeoParam (const std::string &name) const |
Gets a vector-of-booleans geometry parameter. More... | |
std::vector< double > | GetVectRealGeoParam (const std::string &name) const |
Gets a vector-of-reals geometry parameter. More... | |
std::vector< std::string > | GetVectStringGeoParam (const std::string &name) const |
Gets a vector-of-strings 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 112 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 52 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 44 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 60 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 68 of file GGSTGeoParams.cpp.
std::vector< bool > GGSTGeoParams::GetVectBoolGeoParam | ( | const std::string & | name | ) | const |
Gets a vector-of-booleans geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 85 of file GGSTGeoParams.cpp.
std::vector< int > GGSTGeoParams::GetVectIntGeoParam | ( | const std::string & | name | ) | const |
Gets a vector-of-integers geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 76 of file GGSTGeoParams.cpp.
std::vector< double > GGSTGeoParams::GetVectRealGeoParam | ( | const std::string & | name | ) | const |
Gets a vector-of-reals geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 94 of file GGSTGeoParams.cpp.
std::vector< std::string > GGSTGeoParams::GetVectStringGeoParam | ( | const std::string & | name | ) | const |
Gets a vector-of-strings geometry parameter.
name | the name of the desired parameter. |
std::runtime_error | if the requested parameter does not exist. |
Definition at line 103 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 14 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetRealGeoParams | ( | const std::map< std::string, double > & | realGeoParams | ) |
Sets the real geometry parameters.
realGeoParams | (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.
stringGeoParams | (name,value) map of the string geometry parameters. |
Definition at line 24 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetVectBoolGeoParams | ( | const std::map< std::string, std::vector< bool >> & | vectBoolGeoParams | ) |
Sets the vector-of-booleans geometry parameters.
vectBoolGeoParams | (name,value) map of the vector-of-booleans geometry parameters. |
Definition at line 32 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetVectIntGeoParams | ( | const std::map< std::string, std::vector< int >> & | vectIntGeoParams | ) |
Sets the vector-of-integers geometry parameters.
vectIntGeoParams | (name,value) map of the vector-of-integers geometry parameters. |
Definition at line 28 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetVectRealGeoParams | ( | const std::map< std::string, std::vector< double >> & | vectRealGeoParams | ) |
Sets the vector-of-reals geometry parameters.
vectrEALGeoParams | (name,value) map of the vector-of-reals geometry parameters. |
Definition at line 36 of file GGSTGeoParams.cpp.
void GGSTGeoParams::SetVectStringGeoParams | ( | const std::map< std::string, std::vector< std::string >> & | vectStringGeoParams | ) |
Sets the vector-of-strings geometry parameters.
vectStringGeoParams | (name,value) map of the vector-of-strings geometry parameters. |
Definition at line 40 of file GGSTGeoParams.cpp.