SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
LHEEventSource.hh
Go to the documentation of this file.
1 #ifndef SLIC_LHEEVENTSOURCE_HH_
2 #define SLIC_LHEEVENTSOURCE_HH_ 1
3 
4 // SLIC
6 #include "LHEPrimaryGenerator.hh"
7 
8 namespace slic {
14 
15  public:
16 
21  LHEEventSource(const std::string& fname);
22 
23  virtual ~LHEEventSource();
24 
25  public:
26 
31  void generate(G4Event* anEvent);
32 
36  void open();
37 
41  void close();
42 
46  void readNextEvent();
47 
51  void printCurrentEvent();
52 
57  void beginRun(const G4Run* aRun);
58 
63  void beginEvent(const G4Event* anEvent);
64 
65  private:
67  LHEReader* m_reader{nullptr};
68 };
69 }
70 
71 #endif
An EventSource with an associated input file, such as StdHep or LCIO event files.
Top-level controller of LHE input.
void generate(G4Event *anEvent)
LHEEventSource(const std::string &fname)
void beginEvent(const G4Event *anEvent)
LHEPrimaryGenerator * m_eventGenerator
void beginRun(const G4Run *aRun)
Generates a Geant4 event from an LHEEvent.
Reads LHE event data into an LHEEvent object.
Definition: LHEReader.hh:22