LDMX Software
|
Implements the Geant4 detector construction. More...
#include <DetectorConstruction.h>
Public Member Functions | |
DetectorConstruction (simcore::geo::Parser *parser, framework::config::Parameters ¶meters, ConditionsInterface &ci) | |
Constructor. | |
virtual | ~DetectorConstruction ()=default |
Class destructor. | |
G4VPhysicalVolume * | Construct () |
Construct the detector. | |
void | ConstructSDandField () |
std::string | getDetectorName () |
Private Attributes | |
simcore::geo::Parser * | parser_ |
The parser used to load the detector into memory. | |
framework::config::Parameters | parameters_ |
The set of parameters used to configure this class. | |
simcore::ConditionsInterface & | conditions_interface_ |
interface to conditions to be passed to SDs | |
Implements the Geant4 detector construction.
Definition at line 33 of file DetectorConstruction.h.
simcore::DetectorConstruction::DetectorConstruction | ( | simcore::geo::Parser * | parser, |
framework::config::Parameters & | parameters, | ||
ConditionsInterface & | ci | ||
) |
Constructor.
parser | Parser used to parse the geometry into memory. |
parameters | The parameters used to configure this class. |
ci | The conditions needed to build the detector. |
Definition at line 119 of file DetectorConstruction.cxx.
G4VPhysicalVolume * simcore::DetectorConstruction::Construct | ( | ) |
Construct the detector.
Definition at line 124 of file DetectorConstruction.cxx.
References simcore::geo::Parser::GetWorldVolume(), and parser_.
void simcore::DetectorConstruction::ConstructSDandField | ( | ) |
Definition at line 128 of file DetectorConstruction.cxx.
|
inline |
Definition at line 65 of file DetectorConstruction.h.
References simcore::geo::Parser::getDetectorName(), and parser_.
Referenced by simcore::Simulator::beforeNewRun().
|
private |
interface to conditions to be passed to SDs
Definition at line 75 of file DetectorConstruction.h.
|
private |
The set of parameters used to configure this class.
Definition at line 72 of file DetectorConstruction.h.
|
private |
The parser used to load the detector into memory.
Definition at line 69 of file DetectorConstruction.h.
Referenced by Construct(), and getDetectorName().