|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Converts from MCParticle collection into a G4Event. More...
#include <MCParticleGenerator.hh>
Public Member Functions | |
| MCParticleGenerator (G4String eventFile) | |
| virtual | ~MCParticleGenerator () |
| void | generateEvent (G4Event *event) |
| LCEvent * | getCurrentEvent () |
| void | readNextEvent () |
Private Attributes | |
| LCEvent * | _lcevent |
| MCParticleManager * | _particleManager |
| LCReader * | _reader |
Converts from MCParticle collection into a G4Event.
Definition at line 31 of file MCParticleGenerator.hh.
| MCParticleGenerator | ( | G4String | eventFile | ) |
Class constructor.
Setup the reader.
Definition at line 23 of file MCParticleGenerator.cc.
References MCParticleGenerator::_particleManager, MCParticleGenerator::_reader, and Singleton< MCParticleManager >::instance().
|
virtual |
Class destructor.
Definition at line 36 of file MCParticleGenerator.cc.
References MCParticleGenerator::_reader.
| void generateEvent | ( | G4Event * | event | ) |
Generate a G4Event from an MCParticleCollection in an LCEvent.
| [in,out] | event | The input G4Event to be created. |
Definition at line 48 of file MCParticleGenerator.cc.
References MCParticleGenerator::_lcevent, MCParticleGenerator::_particleManager, and MCParticleManager::generateEvent().
Referenced by LcioEventSource::generate().
| LCEvent * getCurrentEvent | ( | ) |
Get the current LCEvent.
Definition at line 44 of file MCParticleGenerator.cc.
References MCParticleGenerator::_lcevent.
Referenced by LcioEventSource::readNextEvent().
| void readNextEvent | ( | ) |
Read the next LCEvent.
Definition at line 40 of file MCParticleGenerator.cc.
References MCParticleGenerator::_lcevent, and MCParticleGenerator::_reader.
Referenced by LcioEventSource::readNextEvent().
|
private |
Definition at line 64 of file MCParticleGenerator.hh.
Referenced by MCParticleGenerator::generateEvent(), MCParticleGenerator::getCurrentEvent(), and MCParticleGenerator::readNextEvent().
|
private |
Definition at line 66 of file MCParticleGenerator.hh.
Referenced by MCParticleGenerator::MCParticleGenerator(), and MCParticleGenerator::generateEvent().
|
private |
Definition at line 65 of file MCParticleGenerator.hh.
Referenced by MCParticleGenerator::MCParticleGenerator(), MCParticleGenerator::~MCParticleGenerator(), and MCParticleGenerator::readNextEvent().