LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "DetectorConstruction.h"
Public Member Functions | |
DetectorConstruction (std::string const &gdmlFile, bool const &overlapCheck=false, bool const &validateSchema=true) | |
Standard constructor and destructor. More... | |
virtual | ~DetectorConstruction () |
G4VPhysicalVolume * | Construct () |
void | SetCustomMagneticService () |
Set a custom Magnetic service. More... | |
Static Public Member Functions | |
static G4VPhysicalVolume * | GetWorld () |
static G4FieldManager * | GetFieldMgr () |
Magnetic field. More... | |
Static Private Attributes | |
static G4VPhysicalVolume * | fWorld = nullptr |
pointer to the world volume More... | |
static G4FieldManager * | fFieldMgr = nullptr |
pointer to the field manager More... | |
Definition at line 19 of file DetectorConstruction.h.
|
explicit |
Standard constructor and destructor.
Definition at line 32 of file DetectorConstruction.cxx.
References fWorld, and parser().
|
virtual |
Definition at line 57 of file DetectorConstruction.cxx.
G4VPhysicalVolume * DetectorConstruction::Construct | ( | ) |
The key method in this class; returns the Geant4 version of the detector geometry. Required of any class that inherits from G4VUserDetectorConstruction.
Definition at line 62 of file DetectorConstruction.cxx.
References fFieldMgr, fWorld, mag::kConstantBFieldMode, mag::kFieldRZMapMode, mag::kFieldXYZMapMode, mag::kNoBFieldMode, MF_LOG_ERROR, MF_LOG_INFO, and mag::MagneticFieldService::provider().
|
inlinestatic |
Magnetic field.
Definition at line 43 of file DetectorConstruction.h.
References fFieldMgr.
|
inlinestatic |
Return a pointer to the world volume. This returns the same pointer as Construct(), but Construct() also does other actions such as setting up sensitive detectors. World() just returns the pointer to the top physical volume.
Definition at line 40 of file DetectorConstruction.h.
References fWorld.
Referenced by larg4::OpDetReadoutGeometry::Construct(), larg4::AuxDetReadoutGeometry::Construct(), and larg4::LArVoxelReadoutGeometry::Construct().
void g4b::DetectorConstruction::SetCustomMagneticService | ( | ) |
Set a custom Magnetic service.
|
staticprivate |
pointer to the field manager
Definition at line 47 of file DetectorConstruction.h.
Referenced by Construct(), and GetFieldMgr().
|
staticprivate |
pointer to the world volume
Definition at line 46 of file DetectorConstruction.h.
Referenced by Construct(), DetectorConstruction(), and GetWorld().