ROOT logo
ROOT » MONTECARLO » EG » TParticlePDG

class TParticlePDG: public TNamed


 Description of the static properties of a particle.
 The class is typically generated by the TDatabasePDG class.
 It is referenced by the dynamic particle class TParticle.
  Int_t            fPdgCode;          // PDG code of the particle
  Double_t         fMass;             // particle mass in GeV
  Double_t         fCharge;           // charge in units of |e|/3
  Double_t         fLifetime;         // proper lifetime in seconds
  Double_t         fWidth;            // total width in GeV
  Int_t            fParity;           // parity
  Double_t         fSpin;             // spin
  Double_t         fIsospin;          // isospin
  Double_t         fI3;               // i3
  Int_t            fStrangeness;      // flavours are defined if i3 != -1
  Int_t            fCharm;            // 1 or -1 for C-particles,  0 for others
  Int_t            fBeauty;
  Int_t            fTop;
  Int_t            fY;                // X,Y: quantum numbers for the 4-th generation
  Int_t            fX;
  Int_t            fStable;           // 1 if stable, 0 otherwise

  TObjArray*       fDecayList;        // array of decay channels

  TString          fParticleClass;    // lepton, meson etc

  Int_t            fTrackingCode;     // G3 tracking code of the particle
  TParticlePDG*    fAntiParticle;     // pointer to antiparticle

Function Members (Methods)

public:
TParticlePDG()
TParticlePDG(int pdg_code)
TParticlePDG(const char* Name, const char* Title, Double_t Mass, Bool_t Stable, Double_t Width, Double_t Charge, const char* ParticleClass, Int_t PdgCode, Int_t Anti, Int_t TrackingCode)
virtual~TParticlePDG()
voidTObject::AbstractMethod(const char* method) const
Int_tAddDecayChannel(Int_t Type, Double_t BranchingRatio, Int_t NDaughters, Int_t* DaughterPdgCode)
TParticlePDG*AntiParticle()
const TParticlePDG*AntiParticle() const
virtual voidTObject::AppendPad(Option_t* option = "")
Int_tBeauty() const
virtual voidTObject::Browse(TBrowser* b)
Double_tCharge() const
Int_tCharm() const
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
virtual voidTNamed::Copy(TObject& named) const
TDecayChannel*DecayChannel(Int_t i)
TObjArray*DecayList()
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 Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() 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
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
Double_tI3() 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
Double_tIsospin() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
Double_tLifetime() const
virtual voidTNamed::ls(Option_t* option = "") const
Double_tMass() const
voidTObject::MayNotUse(const char* method) const
Int_tNDecayChannels() 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)
virtual voidTObject::Paint(Option_t* option = "")
Int_tParity() const
const char*ParticleClass() const
Int_tPdgCode() const
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt = "") constMENU
virtual voidPrintDecayChannel(TDecayChannel* dc, Option_t* opt = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidSetAntiParticle(TParticlePDG* ap)
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
Double_tSpin() const
Int_tStable() const
Int_tStrangeness() 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
Int_tTop() const
Int_tTrackingCode() const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
Double_tWidth() 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
Int_tX() const
Int_tY() const
protected:
TParticlePDG(const TParticlePDG&)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
TParticlePDG&operator=(const TParticlePDG&)

Data Members

protected:
TParticlePDG*fAntiParticlepointer to antiparticle
Int_tfBeauty
Double_tfChargecharge in units of |e|/3
Int_tfCharm1 or -1 for C-particles,
TObjArray*fDecayListarray of decay channels
Double_tfI3i3
Double_tfIsospinisospin
Double_tfLifetimeproper lifetime in seconds
Double_tfMassparticle mass in GeV
TStringTNamed::fNameobject identifier
Int_tfParity
TStringfParticleClasslepton, meson etc
Int_tfPdgCodePDG code of the particle
Double_tfSpin
Int_tfStable1 if stable, 0 otherwise
Int_tfStrangenessflavours are defined if i3 != -1
TStringTNamed::fTitleobject title
Int_tfTop
Int_tfTrackingCodeG3 tracking code of the particle
Double_tfWidthtotal width in GeV
Int_tfX
Int_tfYX,Y: quantum numbers for the 4-th generation

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TParticlePDG()
default constructor
TParticlePDG(Int_t )
 empty for the time  being
TParticlePDG(const char* Name, const char* Title, Double_t Mass, Bool_t Stable, Double_t Width, Double_t Charge, const char* ParticleClass, Int_t PdgCode, Int_t Anti, Int_t TrackingCode)
TParticlePDG(const TParticlePDG& )
copy constructor
TParticlePDG& operator=(const TParticlePDG& )
assignement operator
~TParticlePDG()
destructor
Int_t AddDecayChannel(Int_t Type, Double_t BranchingRatio, Int_t NDaughters, Int_t* DaughterPdgCode)
 add new decay channel, Particle owns those...
TDecayChannel* DecayChannel(Int_t i)
return pointer to decay channel object at index i
void PrintDecayChannel(TDecayChannel* dc, Option_t* opt = "") const
print the list of decays
void Print(Option_t* opt = "") const
  Print the entire information of this kind of particle

Int_t PdgCode() const
 ****** access methods
{ return fPdgCode; }
Double_t Mass() const
{ return fMass; }
Double_t Charge() const
{ return fCharge; }
Double_t Lifetime() const
{ return fLifetime; }
Double_t Width() const
{ return fWidth; }
Int_t Parity() const
{ return fParity; }
Double_t Spin() const
{ return fSpin; }
Double_t Isospin() const
{ return fIsospin; }
Double_t I3() const
{ return fI3; }
Int_t Strangeness() const
{ return fStrangeness; }
Int_t Charm() const
{ return fCharm; }
Int_t Beauty() const
{ return fBeauty; }
Int_t Top() const
{ return fTop; }
Int_t X() const
{ return fX; }
Int_t Y() const
{ return fY; }
Int_t Stable() const
{ return fStable; }
const char* ParticleClass() const
{ return fParticleClass.Data(); }
TObjArray* DecayList()
{ return fDecayList; }
Int_t NDecayChannels() const
Int_t TrackingCode() const
{ return fTrackingCode; }
TParticlePDG* AntiParticle()
{ return fAntiParticle; }
const TParticlePDG* AntiParticle() const
{ return fAntiParticle; }
void SetAntiParticle(TParticlePDG* ap)
 ****** modifiers
{ fAntiParticle = ap; }