#include <TGenerator.h>
Inheritance diagram for TGenerator:
Public Member Functions | |
TGenerator () | |
TGenerator (const char *name, const char *title="Generator class") | |
virtual | ~TGenerator () |
virtual void | Browse (TBrowser *b) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | GenerateEvent () |
virtual Double_t | GetParameter (const char *) const |
virtual Int_t | ImportParticles (TClonesArray *particles, Option_t *option="") |
virtual TObjArray * | ImportParticles (Option_t *option="") |
virtual TParticle * | GetParticle (Int_t i) const |
Int_t | GetNumberOfParticles () const |
virtual TObjArray * | GetListOfParticles () const |
virtual TObjArray * | GetPrimaries (Option_t *option="") |
Float_t | GetPtCut () const |
virtual void | Paint (Option_t *option="") |
virtual void | SetParameter (const char *, Double_t) |
virtual void | SetPtCut (Float_t ptcut=0) |
virtual void | SetViewRadius (Float_t rbox=1000) |
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) |
virtual void | ShowNeutrons (Bool_t show=1) |
TGenerator () | |
TGenerator (const char *name, const char *title="Generator class") | |
virtual | ~TGenerator () |
virtual void | Browse (TBrowser *b) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | GenerateEvent () |
virtual Double_t | GetParameter (const char *) const |
virtual Int_t | ImportParticles (TClonesArray *particles, Option_t *option="") |
virtual TObjArray * | ImportParticles (Option_t *option="") |
virtual TParticle * | GetParticle (Int_t i) const |
Int_t | GetNumberOfParticles () const |
virtual TObjArray * | GetListOfParticles () const |
virtual TObjArray * | GetPrimaries (Option_t *option="") |
Float_t | GetPtCut () const |
virtual void | Paint (Option_t *option="") |
virtual void | SetParameter (const char *, Double_t) |
virtual void | SetPtCut (Float_t ptcut=0) |
virtual void | SetViewRadius (Float_t rbox=1000) |
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) |
virtual void | ShowNeutrons (Bool_t show=1) |
Protected Member Functions | |
TGenerator (const TGenerator &tg) | |
TGenerator & | operator= (const TGenerator &tg) |
TGenerator (const TGenerator &tg) | |
TGenerator & | operator= (const TGenerator &tg) |
Protected Attributes | |
Float_t | fPtCut |
Bool_t | fShowNeutrons |
Pt cut. Do not show primaries below. | |
TObjArray * | fParticles |
display neutrons if true | |
TObjArray * | fParticles |
display neutrons if true |
Definition at line 146 of file TGenerator.h.
TGenerator::TGenerator | ( | const TGenerator & | tg | ) | [inline, protected] |
Definition at line 153 of file TGenerator.h.
TGenerator::TGenerator | ( | ) | [inline] |
Definition at line 165 of file TGenerator.h.
TGenerator::TGenerator | ( | const char * | name, | |
const char * | title = "Generator class" | |||
) |
TGenerator::~TGenerator | ( | ) | [virtual] |
TGenerator::TGenerator | ( | const TGenerator & | tg | ) | [inline, protected] |
Definition at line 153 of file TGenerator.h.
TGenerator::TGenerator | ( | ) | [inline] |
Definition at line 165 of file TGenerator.h.
TGenerator::TGenerator | ( | const char * | name, | |
const char * | title = "Generator class" | |||
) |
virtual TGenerator::~TGenerator | ( | ) | [virtual] |
TGenerator& TGenerator::operator= | ( | const TGenerator & | tg | ) | [inline, protected] |
Definition at line 155 of file TGenerator.h.
References fParticles, fPtCut, fShowNeutrons, and TNamed::operator=().
void TGenerator::Browse | ( | TBrowser * | b | ) | [virtual] |
Reimplemented from TObject.
Definition at line 321 of file TGenerator.cxx.
References ROOT::Math::gv_detail::dist().
void TGenerator::Draw | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 335 of file TGenerator.cxx.
References TPaveText::AddText(), TObject::AppendPad(), TView::CreateView(), TPaveText::Draw(), TObject::Draw(), fParticles, fPtCut, fShowNeutrons, TObjArray::GetEntriesFast(), TNamed::GetName(), TView::GetRange(), TNamed::GetTitle(), gPad, gROOT, i, TMath::Log10(), TROOT::MakeDefCanvas(), name, p, TAttFill::SetFillColor(), TView::SetRange(), snprintf, text(), and TObjArray::UncheckedAt().
Referenced by Browse(), SetPtCut(), SetViewRange(), and ShowNeutrons().
void TGenerator::GenerateEvent | ( | ) | [virtual] |
Definition at line 181 of file TGenerator.cxx.
virtual Double_t TGenerator::GetParameter | ( | const char * | ) | const [inline, virtual] |
Definition at line 173 of file TGenerator.h.
Int_t TGenerator::ImportParticles | ( | TClonesArray * | particles, | |
Option_t * | option = "" | |||
) | [virtual] |
Definition at line 249 of file TGenerator.cxx.
References TClonesArray::Clear(), HEPEVT, and i.
Referenced by GetPrimaries().
Definition at line 187 of file TGenerator.cxx.
References TObjArray::Add(), TObjArray::Clear(), fParticles, HEPEVT, i, and p.
Definition at line 493 of file TGenerator.cxx.
References fParticles, TObjArray::GetLast(), n, and TObjArray::UncheckedAt().
Int_t TGenerator::GetNumberOfParticles | ( | ) | const |
virtual TObjArray* TGenerator::GetListOfParticles | ( | ) | const [inline, virtual] |
Definition at line 178 of file TGenerator.h.
References fParticles.
Referenced by makeEventSample().
Definition at line 179 of file TGenerator.h.
References ImportParticles(), and option.
Referenced by TPythia6Decayer::Decay().
Float_t TGenerator::GetPtCut | ( | ) | const [inline] |
void TGenerator::Paint | ( | Option_t * | option = "" |
) | [virtual] |
virtual void TGenerator::SetParameter | ( | const char * | , | |
Double_t | ||||
) | [inline, virtual] |
Definition at line 182 of file TGenerator.h.
void TGenerator::SetPtCut | ( | Float_t | ptcut = 0 |
) | [virtual] |
void TGenerator::SetViewRadius | ( | Float_t | rbox = 1000 |
) | [virtual] |
void TGenerator::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 | |||
) | [virtual] |
Definition at line 534 of file TGenerator.cxx.
References Draw(), gPad, and TView::SetRange().
Referenced by SetViewRadius().
void TGenerator::ShowNeutrons | ( | Bool_t | show = 1 |
) | [virtual] |
TGenerator& TGenerator::operator= | ( | const TGenerator & | tg | ) | [inline, protected] |
Definition at line 155 of file TGenerator.h.
References fParticles, fPtCut, fShowNeutrons, and TNamed::operator=().
Reimplemented from TObject.
Reimplemented from TObject.
virtual void TGenerator::GenerateEvent | ( | ) | [virtual] |
virtual Double_t TGenerator::GetParameter | ( | const char * | ) | const [inline, virtual] |
Definition at line 173 of file TGenerator.h.
virtual Int_t TGenerator::ImportParticles | ( | TClonesArray * | particles, | |
Option_t * | option = "" | |||
) | [virtual] |
Int_t TGenerator::GetNumberOfParticles | ( | ) | const |
virtual TObjArray* TGenerator::GetListOfParticles | ( | ) | const [inline, virtual] |
Float_t TGenerator::GetPtCut | ( | ) | const [inline] |
virtual void TGenerator::SetParameter | ( | const char * | , | |
Double_t | ||||
) | [inline, virtual] |
Definition at line 182 of file TGenerator.h.
virtual void TGenerator::SetPtCut | ( | Float_t | ptcut = 0 |
) | [virtual] |
virtual void TGenerator::SetViewRadius | ( | Float_t | rbox = 1000 |
) | [virtual] |
virtual void TGenerator::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 | |||
) | [virtual] |
virtual void TGenerator::ShowNeutrons | ( | Bool_t | show = 1 |
) | [virtual] |
Float_t TGenerator::fPtCut [protected] |
Definition at line 149 of file TGenerator.h.
Referenced by Draw(), GetPtCut(), operator=(), and SetPtCut().
Bool_t TGenerator::fShowNeutrons [protected] |
Pt cut. Do not show primaries below.
Definition at line 150 of file TGenerator.h.
Referenced by Draw(), operator=(), and ShowNeutrons().
TObjArray* TGenerator::fParticles [protected] |
display neutrons if true
Definition at line 151 of file TGenerator.h.
Referenced by Draw(), GetListOfParticles(), GetNumberOfParticles(), GetParticle(), TPythia6::ImportParticles(), TPythia8::ImportParticles(), ImportParticles(), operator=(), TPythia6::TPythia6(), TPythia8::TPythia8(), ~TGenerator(), TPythia6::~TPythia6(), and TPythia8::~TPythia8().
TObjArray* TGenerator::fParticles [protected] |