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