library: libEG #include "TParticlePDG.h"

# TParticlePDG

class description - source file - inheritance tree (.ps)

## class TParticlePDG : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TParticlePDG`

        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)
                          TParticlePDG(const TParticlePDG&)
                  virtual ~TParticlePDG()
                    Int_t AddDecayChannel(Int_t Type, Double_t BranchingRatio, Int_t NDaughters, Int_t* DaughterPdgCode)
            TParticlePDG* AntiParticle()
                    Int_t Beauty() const
                 Double_t Charge() const
                    Int_t Charm() const
           static TClass* Class()
           TDecayChannel* DecayChannel(Int_t i)
               TObjArray* DecayList()
                 Double_t I3() const
          virtual TClass* IsA() const
                 Double_t Isospin() const
                 Double_t Lifetime() const
                 Double_t Mass() const
                    Int_t NDecayChannels()
            TParticlePDG& operator=(const TParticlePDG&)
                    Int_t Parity() const
              const char* ParticleClass() const
                    Int_t PdgCode() const
             virtual void Print(Option_t* opt) const
             virtual void PrintDecayChannel(TDecayChannel* dc, Option_t* opt) const
                     void SetAntiParticle(TParticlePDG* ap)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 Double_t Spin() const
                    Int_t Stable() const
                    Int_t Strangeness() const
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
                    Int_t Top() const
                    Int_t TrackingCode()
                 Double_t Width() const
                    Int_t X() const
                    Int_t Y() const

### Data Members

        protected:

                  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 nanoseconds
               Double_t fWidth          total width in GeV
                  Int_t fParity
               Double_t fSpin
               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,
                  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

## Class Description

TParticlePDG()

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) : TNamed(Name,Title)

~TParticlePDG()

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)

void PrintDecayChannel(TDecayChannel* dc, Option_t* option) const

void Print(Option_t *) const

      Print the entire information of this kind of particle

### Inline Functions

                    Int_t PdgCode() const
                 Double_t Mass() const
                 Double_t Charge() const
                 Double_t Lifetime() const
                 Double_t Width() const
                    Int_t Parity() const
                 Double_t Spin() const
                 Double_t Isospin() const
                 Double_t I3() const
                    Int_t Strangeness() const
                    Int_t Charm() const
                    Int_t Beauty() const
                    Int_t Top() const
                    Int_t X() const
                    Int_t Y() const
                    Int_t Stable() const
              const char* ParticleClass() const
               TObjArray* DecayList()
                    Int_t NDecayChannels()
                    Int_t TrackingCode()
            TParticlePDG* AntiParticle()
                     void SetAntiParticle(TParticlePDG* ap)
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
             TParticlePDG TParticlePDG(const TParticlePDG&)
            TParticlePDG& operator=(const TParticlePDG&)

Author: Pasha Murat 12/02/99
Last update: root/eg:$Name: $:$Id: TParticlePDG.cxx,v 1.7 2003/02/12 07:58:43 brun Exp $