|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Converts from StdHep input to a G4Event. More...
#include <StdHepGenerator.hh>
Public Member Functions | |
| StdHepGenerator (G4String eventFile) | |
| virtual | ~StdHepGenerator () |
| void | generateEvent (G4Event *event) |
| LCCollectionVec * | getCurrentParticleCollection () |
| void | readNextEvent () |
Private Attributes | |
| LCCollectionVec * | _particles |
| LCStdHepRdrNew * | _reader |
Converts from StdHep input to a G4Event.
Definition at line 31 of file StdHepGenerator.hh.
| StdHepGenerator | ( | G4String | eventFile | ) |
Class constructor.
Definition at line 18 of file StdHepGenerator.cc.
References StdHepGenerator::_reader.
|
virtual |
Class destructor.
Definition at line 23 of file StdHepGenerator.cc.
References StdHepGenerator::_reader.
| void generateEvent | ( | G4Event * | event | ) |
Generate a G4Event from the current collection of MCParticles.
| [in] | event | The output G4Event. |
Definition at line 32 of file StdHepGenerator.cc.
References StdHepGenerator::_particles, and Singleton< MCParticleManager >::instance().
Referenced by StdHepEventSource::generate().
| LCCollectionVec * getCurrentParticleCollection | ( | ) |
Get the current MCParticle collection.
Definition at line 40 of file StdHepGenerator.cc.
References StdHepGenerator::_particles.
Referenced by StdHepEventSource::readNextEvent().
| void readNextEvent | ( | ) |
Read the next event from the StdHep file.
Definition at line 27 of file StdHepGenerator.cc.
References StdHepGenerator::_particles, and StdHepGenerator::_reader.
Referenced by StdHepEventSource::readNextEvent().
|
private |
Definition at line 64 of file StdHepGenerator.hh.
Referenced by StdHepGenerator::generateEvent(), StdHepGenerator::getCurrentParticleCollection(), and StdHepGenerator::readNextEvent().
|
private |
Definition at line 63 of file StdHepGenerator.hh.
Referenced by StdHepGenerator::StdHepGenerator(), StdHepGenerator::~StdHepGenerator(), and StdHepGenerator::readNextEvent().