GGS(GenericGEANT4Simulation)Software
2.7.0
|
Class for GGS detector construction. More...
#include <GGSDetectorConstruction.h>
Public Member Functions | |
GGSDetectorConstruction (const G4String &library, const G4String &configDataCard) | |
Constructor. More... | |
GGSDetectorConstruction (const G4String &library, const G4String &detectorFlags, const G4String &configDataCard, bool verbose) | |
Constructor. More... | |
GGSDetectorConstruction (const G4String &gdml) | |
Constructor. More... | |
~GGSDetectorConstruction () | |
Destructor. | |
G4VPhysicalVolume * | Construct () |
Override of the Construct method. More... | |
void | ConstructSDandField () |
const G4VPhysicalVolume * | GetPhysicalWorld () const |
Returns a pointer to the physical world volume. More... | |
const GGSVGeometryConstruction * | GetGeometry () const |
Returns a pointer to the geometry. More... | |
Class for GGS detector construction.
This class inherits from G4VUserDetectorConstruction and handles the detector construction. It loads the externally defined geometry, then finds the sensitive volumes and associate the corresponding hit type to each of them.
Definition at line 29 of file GGSDetectorConstruction.h.
GGSDetectorConstruction::GGSDetectorConstruction | ( | const G4String & | library, |
const G4String & | configDataCard | ||
) |
Constructor.
Constructor for geometry provided by a shared library.
library | The shared library containing the concrete implementation of GGSVGeometryConstruction. |
configDataCard | Data card for geometry configuration (behavior is geometry-dependent). |
Definition at line 33 of file GGSDetectorConstruction.cpp.
GGSDetectorConstruction::GGSDetectorConstruction | ( | const G4String & | library, |
const G4String & | detectorFlags, | ||
const G4String & | configDataCard, | ||
bool | verbose | ||
) |
Constructor.
Old constructor maintained for backward compatibility. The detector and verbosity flags are ignored (if needed, their functionalities can be implemented using a messenger for the geometry and a geometry datacard).
library | The shared library containing the concrete implementation of GGSVGeometryConstruction. |
detectorFlags | Ignored. |
configDataCard | Data card for geometry configuration (behavior is geometry-dependent). |
verbose | Ignored. |
Definition at line 38 of file GGSDetectorConstruction.cpp.
GGSDetectorConstruction::GGSDetectorConstruction | ( | const G4String & | gdml | ) |
Constructor.
Constructor for geometry provided by a gdml file.
gdml | The gdml file. |
Definition at line 44 of file GGSDetectorConstruction.cpp.
G4VPhysicalVolume * GGSDetectorConstruction::Construct | ( | ) |
Override of the Construct method.
This override constructs the geometry by loading the external geometry library, then identifies the sensitive volumes and associate the corresponding hits to them.
Definition at line 53 of file GGSDetectorConstruction.cpp.
|
inline |
Returns a pointer to the geometry.
Definition at line 84 of file GGSDetectorConstruction.h.
|
inline |
Returns a pointer to the physical world volume.
Definition at line 78 of file GGSDetectorConstruction.h.