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

Concrete implementation of the Geant4 user detector construction action sequence. More...

Inheritance diagram for dd4hep::sim::Geant4UserDetectorConstruction:
G4VUserDetectorConstruction dd4hep::sim::SequenceHdl< Geant4DetectorConstructionSequence >

Public Member Functions

 Geant4UserDetectorConstruction (Geant4Context *ctxt, Geant4DetectorConstructionSequence *seq)
 Standard constructor. More...
 
virtual ~Geant4UserDetectorConstruction ()
 Default destructor. More...
 
virtual void ConstructSDandField () final
 Call the actions for the construction of the sensitive detectors and the field. More...
 
virtual G4VPhysicalVolume * Construct () final
 Call the actions to construct the detector geometry. More...
 
- Public Member Functions inherited from dd4hep::sim::SequenceHdl< Geant4DetectorConstructionSequence >
 SequenceHdl ()
 Default constructor. More...
 
 SequenceHdl (Geant4Context *ctxt, Geant4DetectorConstructionSequence *seq)
 Initializing constructor. More...
 
virtual ~SequenceHdl ()
 Default destructor. More...
 
void _aquire (Geant4DetectorConstructionSequence *s)
 Acquire object reference. More...
 
void _release ()
 Release object. More...
 
void updateContext (Geant4Context *ctxt)
 Update Geant4Context for current call. More...
 
Geant4Context * context () const
 Access reference to the current active Geant4Context structure. More...
 
Geant4Kernel & kernel () const
 Access reference to the current active Geant4Kernel structure. More...
 
void configureFiber (Geant4Context *ctxt)
 G4 callback in multi threaded mode to configure thread fiber. More...
 
void createClientContext (const G4Run *run)
 Create Geant4 run context. More...
 
void createClientContext (const G4Event *evt)
 Create Geant4 event context. More...
 
void destroyClientContext (const G4Run *)
 Destroy Geant4 run context. More...
 
void destroyClientContext (const G4Event *)
 Destroy Geant4 event context. More...
 

Protected Attributes

Geant4DetectorConstructionContext m_ctxt
 

Additional Inherited Members

- Public Types inherited from dd4hep::sim::SequenceHdl< Geant4DetectorConstructionSequence >
typedef SequenceHdl< Geant4DetectorConstructionSequence > Base
 
- Public Attributes inherited from dd4hep::sim::SequenceHdl< Geant4DetectorConstructionSequence >
Geant4DetectorConstructionSequence * m_sequence
 
Geant4Context * m_activeContext
 

Detailed Description

Concrete implementation of the Geant4 user detector construction action sequence.

Author
M.Frank
Version
1.0

Definition at line 327 of file Geant4Exec.cpp.

Constructor & Destructor Documentation

◆ Geant4UserDetectorConstruction()

dd4hep::sim::Geant4UserDetectorConstruction::Geant4UserDetectorConstruction ( Geant4Context *  ctxt,
Geant4DetectorConstructionSequence *  seq 
)
inline

Standard constructor.

Definition at line 335 of file Geant4Exec.cpp.

◆ ~Geant4UserDetectorConstruction()

virtual dd4hep::sim::Geant4UserDetectorConstruction::~Geant4UserDetectorConstruction ( )
inlinevirtual

Default destructor.

Definition at line 341 of file Geant4Exec.cpp.

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * dd4hep::sim::Geant4UserDetectorConstruction::Construct ( )
finalvirtual

Call the actions to construct the detector geometry.

Construct electro magnetic field entity from the dd4hep field.

The G4TransportationManager is thread-local. Thus, regardless of whether the field class object is global or local to a certain volume, a field object must be assigned to G4FieldManager.

Definition at line 424 of file Geant4Exec.cpp.

◆ ConstructSDandField()

void dd4hep::sim::Geant4UserDetectorConstruction::ConstructSDandField ( )
finalvirtual

Call the actions for the construction of the sensitive detectors and the field.

Instantiate Geant4 sensitive detectors and electro-magnetic field.

Definition at line 413 of file Geant4Exec.cpp.

Member Data Documentation

◆ m_ctxt

Geant4DetectorConstructionContext dd4hep::sim::Geant4UserDetectorConstruction::m_ctxt
protected

Definition at line 332 of file Geant4Exec.cpp.


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