LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 () |
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 30 of file DetectorConstruction.cxx.
References fWorld, and parser().
|
virtual |
Definition at line 55 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 60 of file DetectorConstruction.cxx.
References fFieldMgr, mag::MagneticField::Fields(), fWorld, mag::kConstantBFieldMode, mag::kNoBFieldMode, LOG_ERROR, and LOG_INFO.
|
inlinestatic |
Magnetic field.
Definition at line 40 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 37 of file DetectorConstruction.h.
References fWorld.
Referenced by larg4::OpDetReadoutGeometry::Construct(), larg4::AuxDetReadoutGeometry::Construct(), and larg4::LArVoxelReadoutGeometry::Construct().
|
staticprivate |
pointer to the field manager
Definition at line 44 of file DetectorConstruction.h.
Referenced by Construct(), and GetFieldMgr().
|
staticprivate |
pointer to the world volume
Definition at line 43 of file DetectorConstruction.h.
Referenced by Construct(), DetectorConstruction(), and GetWorld().