ROOT logo
ROOT » MONTECARLO » EG » TAttParticle

class TAttParticle: public TNamed


TAttParticle

Particle definition, partly based on GEANT3 particle definition



Function Members (Methods)

public:
TAttParticle()
TAttParticle(const TAttParticle&)
TAttParticle(const char* name, const char* title, Double_t Mass, Bool_t Stable, Double_t DecayWidth, Double_t Charge, const char* Type, Int_t MCnumber, Int_t granularity = 90, Double_t LowerCutOff = 1.e-5, Double_t HighCutOff = 1.e4)
virtual~TAttParticle()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
static Int_tConvertISAtoPDG(Int_t isaNumber)
virtual voidTNamed::Copy(TObject& named) const
static voidDefinePDG()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Double_tGetCharge() const
virtual Double_tGetDecayWidth() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Double_tGetEnergyCut() const
virtual Double_tGetEnergyLimit() const
virtual Double_tGetGranularity() const
virtual const char*TObject::GetIconName() const
virtual Double_tGetMass() const
virtual Int_tGetMCNumber() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
static TAttParticle*GetParticle(const char* name)
static TAttParticle*GetParticle(Int_t mcnumber)
virtual const char*GetParticleType() const
virtual Bool_tGetStable() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TAttParticle&operator=(const TAttParticle&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual Double_tSampleMass() const
virtual Double_tSampleMass(Double_t widthcut) const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
static THashList*fgList
protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
Double_tfEnergyCutLower energy cut off, the default is 10 keV
Double_tfEnergyLimitHigh energy cut off, the default is 10 TeV
Double_tfGranularityGranularity of the fLogEScale
Int_tfMCnumberOfPDGPDG MC number followed by
Double_tfPDGChargeCharge of the particle in units of e
Double_tfPDGDecayWidthLife time of the particle in sec.
Double_tfPDGMassMass of the particle in GeV/c2
Bool_tfPDGStableLogical indicator, if TRUE the particle can not decay
TStringfParticleTypeText indicator for the particle family

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TAttParticle()
  Particle definition default constructor

TAttParticle(const char* name, const char* title, Double_t Mass, Bool_t Stable, Double_t DecayWidth, Double_t Charge, const char* Type, Int_t MCnumber, Int_t granularity = 90, Double_t LowerCutOff = 1.e-5, Double_t HighCutOff = 1.e4)
  Particle definition normal constructor. If the particle is set to be
  stable, the decay width parameter does have no meaning and can be set to
  any value. The parameters granularity, LowerCutOff and HighCutOff are
  used for the construction of the mean free path look up tables. The
  granularity will be the number of logwise energy points for which the
  mean free path will be calculated.

~TAttParticle()
  Particle destructor

Int_t ConvertISAtoPDG(Int_t isaNumber)
  Converts the ISAJET Particle number into the PDG MC number

void DefinePDG()
  Defines particles according to the Particle Data Group

  For questions regarding distribution or content of the MC particle
  codes, contact
  Gary Wagman (GSWagman@LBL.BITNET, LBL::GSWagman, or GSWagman@LBL.GOV).
  (510)486-6610

TAttParticle* GetParticle(const char* name)
  Get a pointer to the particle object according to the name given

TAttParticle* GetParticle(Int_t mcnumber)
  Get a pointer to the particle object according to the MC code number

void Print(Option_t* option = "") const
  Print the entire information of this kind of particle

Double_t SampleMass() const
  Samples a mass according to the Breit-Wigner resonance distribution

Double_t SampleMass(Double_t widthcut) const
  Samples a mass in the interval:

  fPDGMass-widthcut*fPDGDecayWidtht - fPDGMass+widthcut*fPDGDecayWidth

  according to the Breit-Wigner resonance distribution

TAttParticle()
Double_t GetCharge() const
{ return fPDGCharge; }
Double_t GetEnergyCut() const
{ return fEnergyCut; }
Double_t GetEnergyLimit() const
{ return fEnergyLimit; }
Double_t GetGranularity() const
{ return fGranularity; }
Double_t GetDecayWidth() const
{ return fPDGDecayWidth; }
Double_t GetMass() const
{ return fPDGMass; }
Int_t GetMCNumber() const
{ return fMCnumberOfPDG; }
const char * GetParticleType() const
{ return fParticleType.Data(); }
Bool_t GetStable() const
{ return fPDGStable; }