|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4USERINITIALIZATION_H
14 #define DDG4_GEANT4USERINITIALIZATION_H
41 virtual void build()
const;
67 template <
typename Q,
typename T>
void build(Q* p,
void (T::*f)()) {
71 template <
typename Q,
typename T>
void buildMaster(Q* p,
void (T::*f)()) {
80 virtual void build()
const override;
87 #endif // DDG4_GEANT4USERINITIALIZATION_H
void adopt(Geant4UserInitialization *action)
Add an actor responding to all callbacks. Sequence takes ownership.
Class to orchestrate a modular initializion of a multi- or single threaded Geant4 application.
virtual ~Geant4UserInitialization()
Default destructor.
void add(const Callback &cb, Location where)
Generically Add a new callback to the sequence depending on the location arguments.
virtual void build() const
Callback function to build setup for the MT worker thread.
Actors< Geant4UserInitialization > m_actors
The list of action objects to be called.
Geant4UserInitialization(Geant4Context *c, const std::string &nam)
Standard constructor.
void build(Q *p, void(T::*f)())
Register callback to setup worker. Types Q and T must be polymorph!
Definition of an actor on sequences of callbacks.
Base class to initialize a multi-threaded or single threaded Geant4 application.
void buildMaster(Q *p, void(T::*f)())
Register callback to setup master. Types Q and T must be polymorph!
Default base class for all Geant 4 actions and derivates thereof.
CallbackSequence m_masterCalls
Callback sequence to initialize the thread master.
CallbackSequence m_workerCalls
Callback sequence to initialize worker elements.
virtual ~Geant4UserInitializationSequence()
Default destructor.
Namespace for the AIDA detector description toolkit.
virtual void updateContext(Geant4Context *ctxt) override
Set client context.
virtual void buildMaster() const
Callback function to build setup for the MT master thread.
virtual void build() const override
Callback function to build setup for the MT worker thread.
Geant4UserInitializationSequence(Geant4Context *c, const std::string &nam)
Standard constructor.
virtual void buildMaster() const override
Callback function to build setup for the MT master thread.
Generic context to extend user, run and event information.