23 using namespace DD4hep::Simulation;
26 Geant4UserInitialization::Geant4UserInitialization(
Geant4Context* ctxt,
const string& nam)
68 throw runtime_error(
"Geant4UserInitializationSequence: Attempt to add invalid actor!");
long release()
Decrease reference count. Implicit destruction.
Actors< Geant4UserInitialization > m_actors
The list of action objects to be called.
virtual void build() const
Callback function to build setup for the MT worker thread.
static void decrement(T *)
Decrement count according to type information.
virtual ~Geant4UserInitializationSequence()
Default destructor.
CallbackSequence m_masterCalls
Callback sequence to initialize the thread master.
Geant4Context * m_context
Reference to the Geant4 context.
CallbackSequence m_workerCalls
Callback sequence to initialize worker elements.
long addRef()
Increase reference count.
void clear()
Clear the sequence and remove all callbacks.
virtual void buildMaster() const
Callback function to build setup for the MT master thread.
Geant4UserInitializationSequence(Geant4Context *c, const std::string &nam)
Standard constructor.
void adopt(Geant4UserInitialization *action)
Add an actor responding to all callbacks. Sequence takes ownership.
Base class to initialize a multi-threaded or single threaded Geant4 application.
bool m_needsControl
Default property: Flag to create control instance.
virtual void updateContext(Geant4Context *ctxt)
Set client context.
static void increment(T *)
Increment count according to type information.
virtual void build() const
Callback function to build setup for the MT worker thread.
Generic context to extend user, run and event information.
virtual ~Geant4UserInitialization()
Default destructor.
Default base class for all Geant 4 actions and derivates thereof.
virtual void buildMaster() const
Callback function to build setup for the MT master thread.