SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
StdHepEventSource.hh
Go to the documentation of this file.
1 #ifndef SLIC_STDHEPEVENTSOURCE_HH_
2 #define SLIC_STDHEPEVENTSOURCE_HH_ 1
3 
4 // SLIC
6 #include "StdHepGenerator.hh"
7 
8 namespace slic {
15 
16  public:
17 
22  StdHepEventSource(const std::string& fname);
23 
24  public:
25 
30  void generate(G4Event* anEvent);
31 
35  void open();
36 
40  void close();
41 
45  void readNextEvent();
46 
50  void printCurrentEvent();
51 
56  void beginRun(const G4Run* aRun);
57 
62  void beginEvent(const G4Event* anEvent);
63 
64  private:
66 };
67 }
68 
69 #endif
An EventSource with an associated input file, such as StdHep or LCIO event files.
Top-level controller of StdHep input.
StdHepEventSource(const std::string &fname)
void generate(G4Event *anEvent)
void beginEvent(const G4Event *anEvent)
StdHepGenerator * m_eventGenerator
void beginRun(const G4Run *aRun)
Converts from StdHep input to a G4Event.