SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
StdHepGenerator.hh
Go to the documentation of this file.
1 #ifndef SLIC_STDHEPGENERATOR_HH_
2 #define SLIC_STDHEPGENERATOR_HH_ 1
3 
4 // SLIC
5 #include "MCParticleManager.hh"
6 
7 // LCIO
8 #include "UTIL/LCStdHepRdrNew.h"
9 #include "EVENT/MCParticle.h"
10 #include "IMPL/LCCollectionVec.h"
11 
12 // Geant4
13 #include "G4Event.hh"
14 #include "G4PrimaryParticle.hh"
15 
16 // STL
17 #include <set>
18 
19 using UTIL::LCStdHepRdrNew;
20 using EVENT::MCParticle;
21 using EVENT::LCCollection;
22 using IMPL::LCCollectionVec;
23 
24 namespace slic {
25 
32 
33  public:
34 
38  StdHepGenerator(G4String eventFile);
39 
43  virtual ~StdHepGenerator();
44 
49  void generateEvent(G4Event* event);
50 
54  void readNextEvent();
55 
60  LCCollectionVec* getCurrentParticleCollection();
61 
62  private:
63  LCStdHepRdrNew* _reader;
64  LCCollectionVec* _particles;
65 };
66 
67 }
68 
69 #endif
Converts from StdHep input to a G4Event.
StdHepGenerator(G4String eventFile)
LCCollectionVec * getCurrentParticleCollection()
LCCollectionVec * _particles
LCStdHepRdrNew * _reader
void generateEvent(G4Event *event)