10 #ifndef GGSVGEOMETRYCONSTRUCTION_H
11 #define GGSVGEOMETRYCONSTRUCTION_H
13 #include "G4ThreeVector.hh"
14 #include "G4VUserDetectorConstruction.hh"
36 virtual G4VPhysicalVolume *
Construct() = 0;
42 virtual G4VPhysicalVolume *
GetVolume() = 0;
53 virtual bool IsInsideAcceptance(
const G4ThreeVector &,
const G4ThreeVector &)
const {
return true; }
297 std::map<std::string, int> _intParams;
298 std::map<std::string, bool> _boolParams;
299 std::map<std::string, double> _realParams;
300 std::map<std::string, std::string> _stringParams;
301 std::map<std::string, std::vector<int>> _vectIntParams;
302 std::map<std::string, std::vector<double>> _vectRealParams;
303 std::map<std::string, std::vector<std::string>> _vectStringParams;
304 std::map<std::string, std::vector<bool>> _vectBoolParams;
309 #endif // GGSVGEOMETRYCONSTRUCTION_H
bool ExportBoolParameter(std::string name, bool value)
Sets the value of a boolean parameter.
const std::map< std::string, std::vector< bool > > & GetVectBoolParameters()
Getter method for vector-of-booleans geometry parameters.
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.
Abstract class needed to load GGS geometry.
GGSVGeometryConstruction()
Constructor.
const std::map< std::string, std::vector< std::string > > & GetVectStringParameters()
Getter method for vector-of-strings geometry parameters.
bool ExportRealParameter(std::string name, double value)
Sets the value of a real parameter.
virtual G4VPhysicalVolume * Construct()=0
Construct the detector - virtual method.
const std::map< std::string, std::vector< int > > & GetVectIntParameters()
Getter method for vector-of-integers geometry parameters.
const std::map< std::string, std::string > & GetStringParameters()
Getter method for string geometry parameters.
bool ExportVectBoolParameter(std::string name, std::vector< bool > value)
Sets the value of a vector-of-booleans parameter.
const std::map< std::string, std::vector< double > > & GetVectRealParameters()
Getter method for vector-of-reals geometry parameters.
virtual const std::string GetVersion()
Getter method for geometry version.
bool ExportVectRealParameter(std::string name, std::vector< double > value)
Sets the value of a vector-of-reals parameter.
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.
G4String _geoDataCard
The geometry datacard file.
bool ExportIntParameter(std::string name, int value)
Sets the value of an integer parameter.
virtual bool ExportParameters()
Function for exporting the geometry parameters.
virtual ~GGSVGeometryConstruction()
Destructor.
bool ExportVectIntParameter(std::string name, std::vector< int > value)
Sets the value of a vector-of-integers parameter.
int _verboseLevel
Verbosity level.
virtual G4VPhysicalVolume * GetVolume()=0
Get the detector VPhysicalVolume - virtual method.
bool ExportVectStringParameter(std::string name, std::vector< std::string > value)
Sets the value of a vector-of-strings parameter.
void SetVerboseLevel(int verboseLevel)
Sets the verbosity level.
virtual bool IsInsideAcceptance(const G4ThreeVector &, const G4ThreeVector &) const
Checks if a particle is inside the instrument's acceptance.
void SetGeoDataCard(const G4String &dataCard)
Sets the geometry configuration datacard.