DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::sim::SequenceHdl< T > Class Template Reference

Sequence handler implementing common actions to all sequences. More...

Public Types

typedef SequenceHdl< T > Base
 

Public Member Functions

 SequenceHdl ()
 Default constructor. More...
 
 SequenceHdl (Geant4Context *ctxt, T *seq)
 Initializing constructor. More...
 
virtual ~SequenceHdl ()
 Default destructor. More...
 
void _aquire (T *s)
 Aquire object reference. More...
 
void _release ()
 Release object. More...
 
void updateContext (Geant4Context *ctxt)
 Update Geant4Context for current call. More...
 
Geant4Contextcontext () const
 Access reference to the current active Geant4Context structure. More...
 
Geant4Kernelkernel () 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 destroyClientContext (const G4Run *)
 Destroy Geant4 run context. More...
 
void createClientContext (const G4Event *evt)
 Create Geant4 event context. More...
 
void destroyClientContext (const G4Event *)
 Destroy Geant4 event context. More...
 

Public Attributes

T * m_sequence
 
Geant4Contextm_activeContext
 

Detailed Description

template<typename T>
class dd4hep::sim::SequenceHdl< T >

Sequence handler implementing common actions to all sequences.

Author
M.Frank
Version
1.0

Definition at line 67 of file Geant4Exec.cpp.

Member Typedef Documentation

◆ Base

template<typename T >
typedef SequenceHdl<T> dd4hep::sim::SequenceHdl< T >::Base

Definition at line 69 of file Geant4Exec.cpp.

Constructor & Destructor Documentation

◆ SequenceHdl() [1/2]

template<typename T >
dd4hep::sim::SequenceHdl< T >::SequenceHdl ( )
inline

Default constructor.

Definition at line 73 of file Geant4Exec.cpp.

◆ SequenceHdl() [2/2]

template<typename T >
dd4hep::sim::SequenceHdl< T >::SequenceHdl ( Geant4Context ctxt,
T *  seq 
)
inline

Initializing constructor.

Definition at line 77 of file Geant4Exec.cpp.

◆ ~SequenceHdl()

template<typename T >
virtual dd4hep::sim::SequenceHdl< T >::~SequenceHdl ( )
inlinevirtual

Default destructor.

Definition at line 81 of file Geant4Exec.cpp.

Member Function Documentation

◆ _aquire()

template<typename T >
void dd4hep::sim::SequenceHdl< T >::_aquire ( T *  s)
inline

Aquire object reference.

Definition at line 85 of file Geant4Exec.cpp.

◆ _release()

template<typename T >
void dd4hep::sim::SequenceHdl< T >::_release ( )
inline

Release object.

Definition at line 91 of file Geant4Exec.cpp.

◆ configureFiber()

template<typename T >
void dd4hep::sim::SequenceHdl< T >::configureFiber ( Geant4Context ctxt)
inline

G4 callback in multi threaded mode to configure thread fiber.

Definition at line 111 of file Geant4Exec.cpp.

◆ context()

template<typename T >
Geant4Context* dd4hep::sim::SequenceHdl< T >::context ( ) const
inline

Access reference to the current active Geant4Context structure.

Definition at line 103 of file Geant4Exec.cpp.

◆ createClientContext() [1/2]

template<typename T >
void dd4hep::sim::SequenceHdl< T >::createClientContext ( const G4Event *  evt)
inline

Create Geant4 event context.

Definition at line 130 of file Geant4Exec.cpp.

◆ createClientContext() [2/2]

template<typename T >
void dd4hep::sim::SequenceHdl< T >::createClientContext ( const G4Run *  run)
inline

Create Geant4 run context.

Definition at line 117 of file Geant4Exec.cpp.

◆ destroyClientContext() [1/2]

template<typename T >
void dd4hep::sim::SequenceHdl< T >::destroyClientContext ( const G4Event *  )
inline

Destroy Geant4 event context.

Definition at line 135 of file Geant4Exec.cpp.

◆ destroyClientContext() [2/2]

template<typename T >
void dd4hep::sim::SequenceHdl< T >::destroyClientContext ( const G4Run *  )
inline

Destroy Geant4 run context.

Definition at line 122 of file Geant4Exec.cpp.

◆ kernel()

template<typename T >
Geant4Kernel& dd4hep::sim::SequenceHdl< T >::kernel ( ) const
inline

Access reference to the current active Geant4Kernel structure.

Definition at line 107 of file Geant4Exec.cpp.

◆ updateContext()

template<typename T >
void dd4hep::sim::SequenceHdl< T >::updateContext ( Geant4Context ctxt)
inline

Update Geant4Context for current call.

Definition at line 96 of file Geant4Exec.cpp.

Member Data Documentation

◆ m_activeContext

template<typename T >
Geant4Context* dd4hep::sim::SequenceHdl< T >::m_activeContext
mutable

Definition at line 71 of file Geant4Exec.cpp.

◆ m_sequence

template<typename T >
T* dd4hep::sim::SequenceHdl< T >::m_sequence

Definition at line 70 of file Geant4Exec.cpp.


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