15 #ifndef DD4HEP_DDG4_GEANT4INPUTACTION_H
16 #define DD4HEP_DDG4_GEANT4INPUTACTION_H
34 namespace Simulation {
133 std::string
issue(
int i)
const;
int currentEventNumber() const
return current Event Number
Geant4DataDump::Particles Particles
Data structure to store the MC particle information.
bool hasDirectAccess() const
Flag if direct event access (by event sequence number) is supported (Default: false) ...
std::vector< Particle * > Particles
Basic geant4 event reader class. This interface/base-class must be implemented by concrete readers...
Geant4Context * context() const
Access the context.
Data structure to store the MC vertex information.
const std::string & name() const
Access name of the action.
virtual ~Geant4EventReader()
Default destructor.
const std::string & name() const
File name.
virtual EventReaderStatus skipEvent()
Skip event. To be implemented for sequential sources.
EventReaderStatus
Status codes of the event reader object. Anything with NOT low-bit set is an error.
Geant4EventReader(const std::string &nam)
Initializing constructor.
Concrete implementation of the Geant4 generator action base class.
virtual EventReaderStatus moveToEvent(int event_number)
Move to the indicated event number.
int m_currEvent
Current event number.
virtual EventReaderStatus readParticles(int event_number, Vertex &primary_vertex, Particles &particles)=0
Read an event and fill a vector of MCParticles.
Generic context to extend user, run and event information.
bool m_directAccess
Flag if direct event access is supported. To be explicitly set by subclass constructors.
std::string m_name
File name to be opened and read.