GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSVGeometryConstruction.cpp
1 /*
2  * GGSVGeometryConstruction.cpp
3  *
4  * Created on: 27 dic 2017
5  * Author: Nicola Mori
6  */
7 
11 
12 #include <utility>
13 
14 const std::map<std::string, int> &GGSVGeometryConstruction::GetIntParameters() {
15  return _intParams;
16 }
17 
18 const std::map<std::string, bool> &GGSVGeometryConstruction::GetBoolParameters() {
19  return _boolParams;
20 }
21 
22 const std::map<std::string, double> &GGSVGeometryConstruction::GetRealParameters() {
23  return _realParams;
24 }
25 
26 const std::map<std::string, std::string> &GGSVGeometryConstruction::GetStringParameters() {
27  return _stringParams;
28 }
29 
30 bool GGSVGeometryConstruction::ExportIntParameter(std::string name, int value) {
31  return _intParams.insert(std::make_pair(name, value)).second;
32 }
33 
34 bool GGSVGeometryConstruction::ExportBoolParameter(std::string name, bool value) {
35  return _boolParams.insert(std::make_pair(name, value)).second;
36 }
37 
38 bool GGSVGeometryConstruction::ExportRealParameter(std::string name, double value) {
39  return _realParams.insert(std::make_pair(name, value)).second;
40 }
41 bool GGSVGeometryConstruction::ExportStringParameter(std::string name, std::string value) {
42  return _stringParams.insert(std::make_pair(name, value)).second;
43 }
44 
bool ExportBoolParameter(std::string name, bool value)
Sets the value of a boolean parameter.
const std::map< std::string, int > & GetIntParameters()
Getter method for integer geometry parameters.
const std::map< std::string, double > & GetRealParameters()
Getter method for real geometry parameters.
bool ExportRealParameter(std::string name, double value)
Sets the value of a real parameter.
const std::map< std::string, std::string > & GetStringParameters()
Getter method for string geometry parameters.
const std::map< std::string, bool > & GetBoolParameters()
Getter method for boolean geometry parameters.
bool ExportStringParameter(std::string name, std::string value)
Sets the value of a string parameter.
bool ExportIntParameter(std::string name, int value)
Sets the value of an integer parameter.