SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
LHEEventSource.cc
Go to the documentation of this file.
1 #include "LHEEventSource.hh"
2 
3 #include "G4Event.hh"
4 
5 namespace slic {
6 
7 LHEEventSource::LHEEventSource(const std::string& fname) : EventSourceWithInputFile(fname) {
8 }
9 
11  delete m_eventGenerator;
12 }
13 
14 void LHEEventSource::generate(G4Event* anEvent) {
16 }
17 
21  m_fileIsOpen = true;
22 }
23 
25  delete m_eventGenerator;
26  m_fileIsOpen = false;
27 }
28 
30  // The LHEEventGenerator will read the next event.
31 }
32 
34 }
35 
36 void LHEEventSource::beginRun(const G4Run* aRun) {
38 }
39 
40 void LHEEventSource::beginEvent(const G4Event* anEvent) {
42 }
43 
44 }
An EventSource with an associated input file, such as StdHep or LCIO event files.
void beginEvent(const G4Event *event)
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.
void GeneratePrimaryVertex(G4Event *anEvent)
Reads LHE event data into an LHEEvent object.
Definition: LHEReader.hh:22