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