DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Geant4 detector construction context definition. More...
#include <Geant4DetectorConstruction.h>
Public Member Functions | |
Geant4DetectorConstructionContext (Detector &l, G4VUserDetectorConstruction *d) | |
Initializing Constructor. More... | |
~Geant4DetectorConstructionContext () | |
Default destructor. More... | |
void | setSensitiveDetector (G4LogicalVolume *vol, G4VSensitiveDetector *sd) |
Helper: Assign sensitive detector to logical volume. More... | |
Public Attributes | |
Detector & | description |
Reference to geometry object. More... | |
G4VPhysicalVolume * | world { nullptr } |
Reference to the world after construction. More... | |
Geant4GeometryInfo * | geometry { nullptr } |
The cached geometry information. More... | |
G4VUserDetectorConstruction * | detector { nullptr } |
G4 User detector initializer. More... | |
Geant4 detector construction context definition.
Detector construction context to allow the workers a simplified access to the object created.
The context is a stack based object. Do not keep a pointer to The object scope does not span beyond the actional function call.
Definition at line 61 of file Geant4DetectorConstruction.h.
|
inline |
Initializing Constructor.
Definition at line 76 of file Geant4DetectorConstruction.h.
|
inline |
Default destructor.
Definition at line 79 of file Geant4DetectorConstruction.h.
void Geant4DetectorConstructionContext::setSensitiveDetector | ( | G4LogicalVolume * | vol, |
G4VSensitiveDetector * | sd | ||
) |
Helper: Assign sensitive detector to logical volume.
Definition at line 27 of file Geant4DetectorConstruction.cpp.
Detector& dd4hep::sim::Geant4DetectorConstructionContext::description |
Reference to geometry object.
Definition at line 67 of file Geant4DetectorConstruction.h.
G4VUserDetectorConstruction* dd4hep::sim::Geant4DetectorConstructionContext::detector { nullptr } |
G4 User detector initializer.
Definition at line 74 of file Geant4DetectorConstruction.h.
Geant4GeometryInfo* dd4hep::sim::Geant4DetectorConstructionContext::geometry { nullptr } |
The cached geometry information.
Definition at line 72 of file Geant4DetectorConstruction.h.
G4VPhysicalVolume* dd4hep::sim::Geant4DetectorConstructionContext::world { nullptr } |
Reference to the world after construction.
Definition at line 70 of file Geant4DetectorConstruction.h.