hep.physics.event.generator
Class GeneratorFactory
java.lang.Object
hep.physics.event.generator.GeneratorFactory
public class GeneratorFactory
- extends java.lang.Object
A factory used for creating events and particles.
The user can override this class to provide custom implementations
of event or particle.
- Author:
- tonyj
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratorFactory
public GeneratorFactory()
createEvent
public MCEvent createEvent(int run,
int event)
- Create a new event
- Parameters:
run
- The run numberevent
- The event number
- Returns:
- The created event.
createParticle
public BasicParticle createParticle(Hep3Vector origin,
HepLorentzVector p,
ParticleType ptype,
int status,
double time)
- Create a new particle
- Parameters:
origin
- The particles creation pointp
- The particles momentum and energyptype
- The particles typestatus
- The particles statustime
- The particles creation time
- Returns:
- The newly created particle
Copyright © 2000-2010 FreeHEP. All Rights Reserved.