|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
19 #include <G4Threading.hh>
20 #include <G4AutoLock.hh>
24 G4Mutex action_mutex=G4MUTEX_INITIALIZER;
63 except(
"Attempt to use invalid actor!");
74 G4AutoLock protection_lock(&action_mutex); {
114 m_actors(&Geant4SteppingAction::operator(), step, mgr);
121 G4AutoLock protection_lock(&action_mutex);
126 except(
"Attempt to add invalid actor!");
bool m_needsControl
Default property: Flag to create control instance.
Concrete implementation of the Geant4 stepping action sequence.
virtual ~Geant4SteppingActionSequence()
Default destructor.
Geant4SteppingAction * get(const std::string &name) const
Get an action by name.
virtual void configureFiber(Geant4Context *thread_context)
Set or update client for the use in a new thread fiber.
Geant4SteppingAction(Geant4Context *context, const std::string &name)
Standard constructor.
Actors< Geant4SteppingAction > m_actors
The list of action objects to be called.
Functor to access elements by name.
Geant4Context * m_context
Reference to the Geant4 context.
virtual void operator()(const G4Step *step, G4SteppingManager *mgr) override
User stepping callback.
static void increment(T *)
Increment count according to type information.
virtual void configureFiber(Geant4Context *thread_context) override
Set or update client for the use in a new thread fiber.
Functor to update the context of a Geant4Action object.
PropertyManager m_properties
Property pool.
virtual void operator()(const G4Step *step, G4SteppingManager *mgr)
User stepping callback.
Geant4SteppingActionSequence(Geant4Context *context, const std::string &name)
Standard constructor.
Geant4SharedSteppingAction(Geant4Context *context, const std::string &nam)
Standard constructor.
CallbackSequence m_calls
Callback sequence for user stepping action calls.
void except(const char *fmt,...) const
Support of exceptions: Print fatal message and throw runtime_error.
virtual void configureFiber(Geant4Context *thread_context) override
Set or update client for the use in a new thread fiber.
virtual ~Geant4SharedSteppingAction()
Default destructor.
void adopt(const PropertyManager ©)
Import properties of another instance.
static void decrement(T *)
Decrement count according to type information.
Default base class for all Geant 4 actions and derivates thereof.
long release()
Decrease reference count. Implicit destruction.
virtual void updateContext(Geant4Context *ctxt) override
Set or update client context.
void clear()
Clear the sequence and remove all callbacks.
static TypeName split(const std::string &type_name)
Split string pair according to default delimiter ('/')
PropertyManager & properties()
Access to the properties of the object.
virtual void operator()(const G4Step *step, G4SteppingManager *mgr)
User stepping callback.
long addRef()
Increase reference count.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
virtual ~Geant4SteppingAction()
Default destructor.
virtual void use(Geant4SteppingAction *action)
Underlying object to be used during the execution of this thread.
void adopt(Geant4SteppingAction *action)
Add an actor responding to all callbacks. Sequence takes ownership.
Geant4SteppingAction * m_action
Reference to the shared action.
Generic context to extend user, run and event information.
Geant4Context * context() const
Access the context.