134#ifndef ROOT_TGenerator
135#define ROOT_TGenerator
164 TGenerator(
const char *
name,
const char *title=
"Generator class");
#define ClassDef(name, id)
Using a TBrowser one can browse all ROOT objects.
An array of clone (identical) objects.
The interface to various event generators.
virtual TParticle * GetParticle(Int_t i) const
Returns pointer to primary number i;.
Int_t GetNumberOfParticles() const
Return the number of particles in the stack.
virtual Double_t GetParameter(const char *) const
virtual void SetViewRadius(Float_t rbox=1000)
Set lower and upper values of the view range.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void Paint(Option_t *option="")
Paint one event.
virtual ~TGenerator()
Event generator default destructor.
virtual void GenerateEvent()
must be implemented in concrete class (see eg TPythia6)
virtual TObjArray * GetListOfParticles() const
TGenerator(const TGenerator &tg)
Bool_t fShowNeutrons
Pt cut. Do not show primaries below.
virtual Int_t ImportParticles(TClonesArray *particles, Option_t *option="")
It reads the /HEPEVT/ common block which has been filled by the GenerateEvent method.
virtual void SetPtCut(Float_t ptcut=0)
Set Pt threshold below which primaries are not drawn.
TObjArray * fParticles
display neutrons if true
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to objects in event.
virtual TObjArray * GetPrimaries(Option_t *option="")
virtual void Draw(Option_t *option="")
Insert one event in the pad list.
TGenerator & operator=(const TGenerator &tg)
virtual void Browse(TBrowser *b)
browse generator
virtual void ShowNeutrons(Bool_t show=1)
Set flag to display or not neutrons.
virtual void SetViewRange(Float_t xmin=-10000, Float_t ymin=-10000, Float_t zmin=-10000, Float_t xmax=10000, Float_t ymax=10000, Float_t zmax=10000)
Set lower and upper values of the view range.
virtual void SetParameter(const char *, Double_t)
The TNamed class is the base class for all named ROOT classes.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
Description of the dynamic properties of a particle.