#include <EDepSimUserDetectorConstruction.hh>
Public Member Functions | |
UserDetectorConstruction () | |
virtual | ~UserDetectorConstruction () |
virtual G4VPhysicalVolume * | Construct () |
virtual void | ConstructSDandField () |
virtual EDepSim::DetectorMessenger * | GetMessenger (void) |
Return the detector construction messenger. More... | |
void | UpdateGeometry () |
void | ValidateGeometry () |
Set ValidateGeomtry to true. More... | |
void | SetGDMLParser (G4GDMLParser *parser) |
Set the GDML parser that this class should use. More... | |
G4GDMLParser * | GetGDMLParser () |
Get the GDML parser that this class is using. More... | |
void | AddExcludedSensitiveDetector (std::string exclude) |
Protected Member Functions | |
void | DefineMaterials (void) |
Define the materials used in the detector. More... | |
G4Element * | DefineElement (G4String name, G4String symbol, G4double z) |
Define the natural isotope abundance. More... | |
G4VPhysicalVolume * | ConstructDetector () |
Protected Attributes | |
EDepSim::DetectorMessenger * | fDetectorMessenger |
A messenger to for the DetectorConstruction object. More... | |
EDepSim::Builder * | fWorldBuilder |
A constructor to create the world. More... | |
G4GDMLParser * | fGDMLParser |
A GDML Parser if one has been defined. More... | |
G4VPhysicalVolume * | fPhysicalWorld |
The constructed world volume. More... | |
Private Attributes | |
G4Material * | fDefaultMaterial |
The default material. More... | |
bool | fValidateGeometry |
Apply Validation. More... | |
std::vector< std::string > | fExcludeAsSensitiveDetector |
Vector of logical volumes to exclude being sensitive detectors. More... | |
Construct the EDepSim detector geometry. This handles two methods of construction. In the first, the geometry is read from a GDML file which is expected to contain the SensDet, EField and BField auxiliary types for logical volumes that are sensitive, have an electric field, and have a magnetic field (respectively). The alternative is to define a builder
Definition at line 24 of file EDepSimUserDetectorConstruction.hh.
EDepSim::UserDetectorConstruction::UserDetectorConstruction | ( | ) |
Definition at line 47 of file EDepSimUserDetectorConstruction.cc.
|
virtual |
Definition at line 61 of file EDepSimUserDetectorConstruction.cc.
|
inline |
Exclude a logical volume from being a sensitive detector (e.g. the Rock around the detector). This is used to override a gdml geometry.
Definition at line 57 of file EDepSimUserDetectorConstruction.hh.
|
virtual |
The required method to construct the detector and define the world volume.
Definition at line 149 of file EDepSimUserDetectorConstruction.cc.
|
protected |
This really constructs the detector, but doesn't define materials before it's constructed. This is called by Construct()
Definition at line 649 of file EDepSimUserDetectorConstruction.cc.
|
virtual |
The method to setup the sensitive detectors and fields. In a multi thread application, this is called per thread.
Definition at line 239 of file EDepSimUserDetectorConstruction.cc.
|
protected |
Define the natural isotope abundance.
Definition at line 627 of file EDepSimUserDetectorConstruction.cc.
|
protected |
Define the materials used in the detector.
Definition at line 420 of file EDepSimUserDetectorConstruction.cc.
|
inline |
Get the GDML parser that this class is using.
Definition at line 53 of file EDepSimUserDetectorConstruction.hh.
|
inlinevirtual |
Return the detector construction messenger.
Definition at line 38 of file EDepSimUserDetectorConstruction.hh.
|
inline |
Set the GDML parser that this class should use.
Definition at line 50 of file EDepSimUserDetectorConstruction.hh.
void EDepSim::UserDetectorConstruction::UpdateGeometry | ( | ) |
Update the geometry information to match stuff read from the macro file.
Definition at line 677 of file EDepSimUserDetectorConstruction.cc.
|
inline |
Set ValidateGeomtry to true.
Definition at line 47 of file EDepSimUserDetectorConstruction.hh.
|
private |
The default material.
Definition at line 88 of file EDepSimUserDetectorConstruction.hh.
|
protected |
A messenger to for the DetectorConstruction object.
Definition at line 74 of file EDepSimUserDetectorConstruction.hh.
|
private |
Vector of logical volumes to exclude being sensitive detectors.
Definition at line 94 of file EDepSimUserDetectorConstruction.hh.
|
protected |
A GDML Parser if one has been defined.
Definition at line 80 of file EDepSimUserDetectorConstruction.hh.
|
protected |
The constructed world volume.
Definition at line 83 of file EDepSimUserDetectorConstruction.hh.
|
private |
Apply Validation.
Definition at line 91 of file EDepSimUserDetectorConstruction.hh.
|
protected |
A constructor to create the world.
Definition at line 77 of file EDepSimUserDetectorConstruction.hh.