|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_DDG4_GEANT4PARTICLEDUMPACTION_H
14 #define DD4HEP_DDG4_GEANT4PARTICLEDUMPACTION_H
46 virtual void begin(
const G4Event* event)
override;
48 virtual void end(
const G4Event* event)
override;
75 #include <G4HCofThisEvent.hh>
102 dump.
print(ALWAYS,parts);
105 warning(
"+++ [Event:%d] No particle map available!",event->GetEventID());
bool m_needsControl
Default property: Flag to create control instance.
Class to dump the records of the intrinsic Geant4 event model.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
static void increment(T *)
Increment count according to type information.
Geant4Event & event() const
Access the geant4 event – valid only between BeginEvent() and EndEvent()!
#define DECLARE_GEANT4ACTION(name)
Plugin defintion to create Geant4Action objects.
void warning(const char *fmt,...) const
Support of warning messages.
Data structure to map particles produced during the generation and the simulation.
T * extension(bool alert=true)
Access to type safe extension object. Exception is thrown if the object is invalid.
Concrete basic implementation of the Geant4 event action.
static void decrement(T *)
Decrement count according to type information.
const std::string & name() const
Access name of the action.
virtual void end(const G4Event *event) override
Geant4EventAction interface: End-of-event callback.
Geant4ParticleDumpAction(Geant4Context *context, const std::string &nam)
Standard constructor.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Namespace for the AIDA detector description toolkit.
Class to measure the energy of escaping tracks.
virtual void begin(const G4Event *event) override
Geant4EventAction interface: Begin-of-event callback.
virtual ~Geant4ParticleDumpAction()
Default destructor.
void print(PrintLevel level, Geant4ParticleHandle p) const
Print a single particle to the output logging using the specified print level.
Generic context to extend user, run and event information.
Geant4Context * context() const
Access the context.