GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTGeoParams.h
Go to the documentation of this file.
1 /*
2  * GGSTGeoParams.h
3  *
4  * Created on: 28 Dec 2017
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSTGEOPARAMS_H_
11 #define GGSTGEOPARAMS_H_
12 
13 #include "TObject.h"
14 
15 #include <map>
16 
18 class GGSTGeoParams: public TObject {
19 public:
20 
25  void SetIntGeoParams(const std::map<std::string, int> &intGeoParams);
26 
31  void SetBoolGeoParams(const std::map<std::string, bool> &boolGeoParams);
32 
37  void SetRealGeoParams(const std::map<std::string, double> &realGeoParams);
38 
43  void SetStringGeoParams(const std::map<std::string, std::string> &stringGeoParams);
44 
51  int GetIntGeoParam(const std::string &name) const;
52 
59  bool GetBoolGeoParam(const std::string &name) const;
60 
67  double GetRealGeoParam(const std::string &name) const;
68 
75  std::string GetStringGeoParam(const std::string &name) const;
76 
88  bool AreSameParamsAs(const GGSTGeoParams &params) const;
89 
90 private:
91  std::map<std::string, int> _intGeoParams;
92  std::map<std::string, double> _realGeoParams;
93  std::map<std::string, std::string> _stringGeoParams;
94  std::map<std::string, bool> _boolGeoParams;
95 
96 ClassDef(GGSTGeoParams, 2)
97  ;
98 };
99 
100 #endif /* GGSTGEOPARAMS_H_ */
bool GetBoolGeoParam(const std::string &name) const
Gets a boolean geometry parameter.
void SetStringGeoParams(const std::map< std::string, std::string > &stringGeoParams)
Sets the string geometry parameters.
bool AreSameParamsAs(const GGSTGeoParams &params) const
Compares two geometry parameter objects.
int GetIntGeoParam(const std::string &name) const
Gets an integer geometry parameter.
void SetRealGeoParams(const std::map< std::string, double > &realGeoParams)
Sets the real geometry parameters.
std::string GetStringGeoParam(const std::string &name) const
Gets a string geometry parameter.
Class for storing the geometry parameters on Root output file.
Definition: GGSTGeoParams.h:18
double GetRealGeoParam(const std::string &name) const
Gets a real geometry parameter.
void SetBoolGeoParams(const std::map< std::string, bool > &boolGeoParams)
Sets the boolean geometry parameters.
void SetIntGeoParams(const std::map< std::string, int > &intGeoParams)
Sets the integer geometry parameters.