DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4DetectorConstructionContext Class Reference

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

Detectordescription
 Reference to geometry object. More...
 
G4VPhysicalVolume * world { nullptr }
 Reference to the world after construction. More...
 
Geant4GeometryInfogeometry { nullptr }
 The cached geometry information. More...
 
G4VUserDetectorConstructiondetector { nullptr }
 G4 User detector initializer. More...
 

Detailed Description

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.

Author
M.Frank
Version
1.0

Definition at line 61 of file Geant4DetectorConstruction.h.

Constructor & Destructor Documentation

◆ Geant4DetectorConstructionContext()

dd4hep::sim::Geant4DetectorConstructionContext::Geant4DetectorConstructionContext ( Detector l,
G4VUserDetectorConstruction d 
)
inline

Initializing Constructor.

Definition at line 76 of file Geant4DetectorConstruction.h.

◆ ~Geant4DetectorConstructionContext()

dd4hep::sim::Geant4DetectorConstructionContext::~Geant4DetectorConstructionContext ( )
inline

Default destructor.

Definition at line 79 of file Geant4DetectorConstruction.h.

Member Function Documentation

◆ setSensitiveDetector()

void Geant4DetectorConstructionContext::setSensitiveDetector ( G4LogicalVolume *  vol,
G4VSensitiveDetector sd 
)

Helper: Assign sensitive detector to logical volume.

Definition at line 27 of file Geant4DetectorConstruction.cpp.

Member Data Documentation

◆ description

Detector& dd4hep::sim::Geant4DetectorConstructionContext::description

Reference to geometry object.

Definition at line 67 of file Geant4DetectorConstruction.h.

◆ detector

G4VUserDetectorConstruction* dd4hep::sim::Geant4DetectorConstructionContext::detector { nullptr }

G4 User detector initializer.

Definition at line 74 of file Geant4DetectorConstruction.h.

◆ geometry

Geant4GeometryInfo* dd4hep::sim::Geant4DetectorConstructionContext::geometry { nullptr }

The cached geometry information.

Definition at line 72 of file Geant4DetectorConstruction.h.

◆ world

G4VPhysicalVolume* dd4hep::sim::Geant4DetectorConstructionContext::world { nullptr }

Reference to the world after construction.

Definition at line 70 of file Geant4DetectorConstruction.h.


The documentation for this class was generated from the following files: