|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.physics.event.generator.GeneratorFactory
A factory used for creating events and particles. The user can override this class to provide custom implementations of event or particle.
Constructor Summary | |
GeneratorFactory()
|
Method Summary | |
MCEvent |
createEvent(int run,
int event)
Create a new event |
BasicParticle |
createParticle(Hep3Vector origin,
HepLorentzVector p,
ParticleType ptype,
int status,
double time)
Create a new particle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GeneratorFactory()
Method Detail |
public MCEvent createEvent(int run, int event)
run
- The run numberevent
- The event number
public BasicParticle createParticle(Hep3Vector origin, HepLorentzVector p, ParticleType ptype, int status, double time)
origin
- The particles creation pointp
- The particles momentum and energyptype
- The particles typestatus
- The particles statustime
- The particles creation time
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |