25 using namespace DD4hep;
26 using namespace DD4hep::Simulation;
29 Geant4Run::Geant4Run(
const G4Run* run_pointer)
54 : m_kernel(kernel_pointer), m_run(0), m_event(0) {
72 invalidHandleError<Geant4Run>();
84 invalidHandleError<Geant4Event>();
95 string err =
DD4hep::format(
"Geant4Kernel",
"createTrajectory: Purely virtual method. requires overloading!");
97 throw runtime_error(err);
Concrete implementation of the Geant4 stepping action sequence.
Geant4Event & event() const
Access the geant4 event – valid only between BeginEvent() and EndEvent()!
virtual ~Geant4Event()
Default destructor.
User event context for DDG4.
Geant4SteppingActionSequence * steppingAction(bool create)
Access stepping action sequence.
G4TrackingManager * trackMgr() const
Access the tracking manager.
Geant4TrackingActionSequence * trackingAction(bool create)
Access tracking action sequence.
static void decrement(T *)
Decrement count according to type information.
Geant4StackingActionSequence * stackingAction(bool create)
Access stacking action sequence.
LCDD & lcdd() const
Access to detector description.
Concrete implementation of the Geant4 event action sequence.
Concrete implementation of the Geant4 tracking action sequence.
std::string format(const std::string &src, const std::string &fmt,...)
Build formatted string.
Geant4StackingActionSequence & stackingAction() const
Access to the main stacking action sequence from the kernel object.
Concrete implementation of the Geant4 stacking action sequence.
Class, which allows all Geant4Action derivatives to access the DDG4 kernel structures.
Geant4Run & run() const
Access the geant4 run – valid only between BeginRun() and EndRun()!
Geant4RunActionSequence & runAction() const
Access to the main run action sequence from the kernel object.
Geant4EventActionSequence * eventAction(bool create)
Access run action sequence.
virtual ~Geant4Context()
Default destructor.
Geant4Event(const G4Event *run, Geant4Random *rndm)
Intializing constructor.
User run context for DDG4.
Geant4GeneratorActionSequence & generatorAction() const
Access to the main generator action sequence from the kernel object.
Geant4GeneratorActionSequence * generatorAction(bool create)
Access generator action sequence.
Concrete implementation of the Geant4 generator action sequence.
Concrete basic implementation of the Geant4 run action sequencer.
virtual ~Geant4Run()
Default destructor.
static void increment(T *)
Increment count according to type information.
Geant4Context(Geant4Kernel *kernel)
Default constructor.
void setEvent(Geant4Event *new_event)
Set the geant4 event reference.
Geant4SensDetSequences & sensitiveActions() const
Access to the sensitive detector sequences from the kernel object.
virtual G4VTrajectory * createTrajectory(const G4Track *track) const
Create a user trajectory.
void setRun(Geant4Run *new_run)
Set the geant4 run reference.
Geometry::LCDD & lcdd() const
Access to detector description.
Geant4EventActionSequence & eventAction() const
Access to the main event action sequence from the kernel object.
G4TrackingManager * trackMgr() const
Access the tracking manager.
The main interface to the DD4hep detector description package.
Geant4SteppingActionSequence & steppingAction() const
Access to the main stepping action sequence from the kernel object.
Mini interface to THE random generator of the application.
Geant4SensDetSequences & sensitiveActions() const
Access to the sensitive detector sequences from the actioncontainer object.
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.
Geant4SensDetSequences: class to access groups of sensitive actions.
Implementation of an object supporting arbitrary user extensions.
Geant4RunActionSequence * runAction(bool create)
Access run action sequence.
Geant4TrackingActionSequence & trackingAction() const
Access to the main tracking action sequence from the kernel object.