1 #ifndef SLIC_EVENTSOURCEMANAGER_HH_
2 #define SLIC_EVENTSOURCEMANAGER_HH_ 1
14 #include "G4VPrimaryGenerator.hh"
15 #include "G4GeneralParticleSource.hh"
16 #include "G4ParticleGun.hh"
17 #include "G4UnitsTable.hh"
200 void endEvent(
const G4Event* event);
212 void endRun(
const G4Run* run);
254 G4GeneralParticleSource*
getGPS();
This singleton is responsible for managing physics event sources.
virtual ~EventSourceManager()
static std::string PARTICLE_GUN
void endRun(const G4Run *run)
const std::string & getCurrentSourceName()
const std::string & getSourceNameFromType(ESourceType egt) const
static std::string STDHEP
void setFilename(const std::string &fileName)
void enablePrintEvent(G4bool enable)
ESourceType getSourceTypeFromName(const std::string &name) const
EventSource * getCurrentSource()
void resetCurrentEventSource()
const std::string & getFilename()
void setLorentzTransformationAngle(const G4double angle)
double getLorentzTransformationAngle()
void setZSmearing(const G4double zSmear)
GeneratorMessenger * m_messenger
void deleteCurrentEventSource()
int getNumEventsGenerated()
void generateNextEvent(G4Event *evt)
G4GeneralParticleSource * getGPS()
void setEventSource(EventSource *eventSource)
unsigned int getSkipEvents()
void incrNumEventsGenerated()
void printNumEventsGenerated()
EventSource * m_currentEventSource
EventSource * m_particleGunSource
G4ParticleGun * getParticleGun()
void beginRun(const G4Run *run)
G4double m_lorentzTransformationAngle
ESourceType getSourceTypeFromFileExtension(const std::string &ext)
EventSource * createEventSource(ESourceType st)
static std::string UNKNOWN
void beginEvent(const G4Event *event)
void generate(G4Event *event)
G4bool m_enablePrintEvent
void endEvent(const G4Event *event)
ESourceType getCurrentSourceType()
void setSkipEvents(unsigned int n)
EventSourceWithInputFile * getFileSource()
G4double m_zSmearingParam
void setSourceType(ESourceType est)
The virtual base class for a physics event source such as a StdHep file.
Geant4 commands related to event generation.
Base class for slic code modules that provides common functionality, such as logging to an output str...