Logo ROOT  
Reference Guide
TParticlePDG.h
Go to the documentation of this file.
1 // @(#)root/eg:$Id$
2 // Author: Pasha Murat 12/02/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 #ifndef TParticlePDG_hh
12 #define TParticlePDG_hh
13 
14 #include "TNamed.h"
15 #include "TObjArray.h"
16 
17 class TDecayChannel;
18 
19 class TParticlePDG : public TNamed {
20 public:
21 //------------------------------------------------------------------------------
22 // data members
23 //------------------------------------------------------------------------------
24 protected:
25  Int_t fPdgCode; // PDG code of the particle
26  Double_t fMass; // particle mass in GeV
27  Double_t fCharge; // charge in units of |e|/3
28  Double_t fLifetime; // proper lifetime in seconds
29  Double_t fWidth; // total width in GeV
32  Double_t fIsospin; // isospin
33  Double_t fI3; // i3
34  Int_t fStrangeness; // flavours are defined if i3 != -1
35  Int_t fCharm; // 1 or -1 for C-particles,
36  // 0 for others
38  Int_t fTop; //
39  Int_t fY; // X,Y: quantum numbers for the 4-th generation
40  Int_t fX; //
41  Int_t fStable; // 1 if stable, 0 otherwise
42 
43  TObjArray* fDecayList; // array of decay channels
44 
45  TString fParticleClass; // lepton, meson etc
46 
47  Int_t fTrackingCode; // G3 tracking code of the particle
48  TParticlePDG* fAntiParticle; // pointer to antiparticle
49 //------------------------------------------------------------------------------
50 // functions
51 //------------------------------------------------------------------------------
52  TParticlePDG(const TParticlePDG&);
54 
55 public:
56  // ****** constructors and destructor
57  TParticlePDG();
58  TParticlePDG(const char* Name, const char* Title, Double_t Mass,
60  const char* ParticleClass, Int_t PdgCode, Int_t Anti,
62 
63  virtual ~TParticlePDG();
64  // ****** access methods
65 
66  Int_t PdgCode () const { return fPdgCode; }
67  Double_t Mass () const { return fMass; }
68  Double_t Charge () const { return fCharge; } //charge in units of |e|/3
69  Double_t Lifetime () const { return fLifetime; }
70  Double_t Width () const { return fWidth; }
71  Int_t Parity () const { return fParity; }
72  Double_t Spin () const { return fSpin; }
73  Double_t Isospin () const { return fIsospin; }
74  Double_t I3 () const { return fI3; }
75  Int_t Strangeness () const { return fStrangeness; }
76  Int_t Charm () const { return fCharm; }
77  Int_t Beauty () const { return fBeauty; }
78  Int_t Top () const { return fTop; }
79  Int_t X () const { return fX; }
80  Int_t Y () const { return fY; }
81  Int_t Stable () const { return fStable; }
82  const char* ParticleClass() const { return fParticleClass.Data(); }
83 
84  TObjArray* DecayList () { return fDecayList; }
85 
86  Int_t NDecayChannels () const {
87  return (fDecayList) ? fDecayList->GetEntriesFast() : 0;
88  }
89 
90  Int_t TrackingCode() const { return fTrackingCode; }
91 
93 
95  const TParticlePDG* AntiParticle() const { return fAntiParticle; }
96 
97  // ****** modifiers
98 
100 
102  Double_t BranchingRatio,
103  Int_t NDaughters,
104  Int_t* DaughterPdgCode);
105 
106  virtual void PrintDecayChannel(TDecayChannel* dc, Option_t* opt = "") const;
107 
108  virtual void Print(Option_t* opt = "") const; // *MENU*
109 
110  ClassDef(TParticlePDG,2) // PDG static particle definition
111 };
112 
113 #endif
TParticlePDG::fCharm
Int_t fCharm
Definition: TParticlePDG.h:35
TParticlePDG::Spin
Double_t Spin() const
Definition: TParticlePDG.h:72
TParticlePDG::fMass
Double_t fMass
Definition: TParticlePDG.h:26
TObjArray
An array of TObjects.
Definition: TObjArray.h:37
TParticlePDG::Charm
Int_t Charm() const
Definition: TParticlePDG.h:76
Option_t
const char Option_t
Definition: RtypesCore.h:66
TParticlePDG::fStrangeness
Int_t fStrangeness
Definition: TParticlePDG.h:34
TParticlePDG::fBeauty
Int_t fBeauty
Definition: TParticlePDG.h:37
TParticlePDG::PrintDecayChannel
virtual void PrintDecayChannel(TDecayChannel *dc, Option_t *opt="") const
print the list of decays
Definition: TParticlePDG.cxx:215
TParticlePDG::operator=
TParticlePDG & operator=(const TParticlePDG &)
assignement operator
Definition: TParticlePDG.cxx:147
TString::Data
const char * Data() const
Definition: TString.h:369
TNamed.h
TParticlePDG
Description of the static properties of a particle.
Definition: TParticlePDG.h:19
TParticlePDG::I3
Double_t I3() const
Definition: TParticlePDG.h:74
TParticlePDG::PdgCode
Int_t PdgCode() const
Definition: TParticlePDG.h:66
Int_t
int Int_t
Definition: RtypesCore.h:45
xmlio::Title
const char * Title
Definition: TXMLSetup.cxx:68
TParticlePDG::fTrackingCode
Int_t fTrackingCode
Definition: TParticlePDG.h:47
TParticlePDG::Beauty
Int_t Beauty() const
Definition: TParticlePDG.h:77
TParticlePDG::AntiParticle
const TParticlePDG * AntiParticle() const
Definition: TParticlePDG.h:95
TParticlePDG::fTop
Int_t fTop
Definition: TParticlePDG.h:38
TParticlePDG::Mass
Double_t Mass() const
Definition: TParticlePDG.h:67
TString
Basic string class.
Definition: TString.h:136
ROOT::Math::IntegrationOneDim::Type
Type
enumeration specifying the integration types.
Definition: AllIntegrationTypes.h:45
TParticlePDG::fY
Int_t fY
Definition: TParticlePDG.h:39
bool
TParticlePDG::AntiParticle
TParticlePDG * AntiParticle()
Definition: TParticlePDG.h:94
TParticlePDG::NDecayChannels
Int_t NDecayChannels() const
Definition: TParticlePDG.h:86
TParticlePDG::fX
Int_t fX
Definition: TParticlePDG.h:40
TParticlePDG::fLifetime
Double_t fLifetime
Definition: TParticlePDG.h:28
TParticlePDG::fAntiParticle
TParticlePDG * fAntiParticle
Definition: TParticlePDG.h:48
TParticlePDG::Y
Int_t Y() const
Definition: TParticlePDG.h:80
TParticlePDG::SetAntiParticle
void SetAntiParticle(TParticlePDG *ap)
Definition: TParticlePDG.h:99
TParticlePDG::Charge
Double_t Charge() const
Definition: TParticlePDG.h:68
TObjArray::GetEntriesFast
Int_t GetEntriesFast() const
Definition: TObjArray.h:64
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TParticlePDG::Print
virtual void Print(Option_t *opt="") const
Print the entire information of this kind of particle.
Definition: TParticlePDG.cxx:248
TParticlePDG::ParticleClass
const char * ParticleClass() const
Definition: TParticlePDG.h:82
TParticlePDG::fCharge
Double_t fCharge
Definition: TParticlePDG.h:27
TDecayChannel
Description of the decay channel.
Definition: TDecayChannel.h:24
TParticlePDG::X
Int_t X() const
Definition: TParticlePDG.h:79
TParticlePDG::Parity
Int_t Parity() const
Definition: TParticlePDG.h:71
TParticlePDG::fIsospin
Double_t fIsospin
Definition: TParticlePDG.h:32
TParticlePDG::Isospin
Double_t Isospin() const
Definition: TParticlePDG.h:73
TParticlePDG::DecayList
TObjArray * DecayList()
Definition: TParticlePDG.h:84
TParticlePDG::Stable
Int_t Stable() const
Definition: TParticlePDG.h:81
TParticlePDG::fWidth
Double_t fWidth
Definition: TParticlePDG.h:29
TParticlePDG::TParticlePDG
TParticlePDG()
default constructor
Definition: TParticlePDG.cxx:55
TParticlePDG::DecayChannel
TDecayChannel * DecayChannel(Int_t i)
return pointer to decay channel object at index i
Definition: TParticlePDG.cxx:207
xmlio::Name
const char * Name
Definition: TXMLSetup.cxx:67
TParticlePDG::fSpin
Double_t fSpin
Definition: TParticlePDG.h:31
TParticlePDG::Width
Double_t Width() const
Definition: TParticlePDG.h:70
TParticlePDG::fParticleClass
TString fParticleClass
Definition: TParticlePDG.h:45
Double_t
double Double_t
Definition: RtypesCore.h:59
TObjArray.h
TParticlePDG::Lifetime
Double_t Lifetime() const
Definition: TParticlePDG.h:69
TParticlePDG::fStable
Int_t fStable
Definition: TParticlePDG.h:41
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TParticlePDG::fPdgCode
Int_t fPdgCode
Definition: TParticlePDG.h:25
TParticlePDG::Strangeness
Int_t Strangeness() const
Definition: TParticlePDG.h:75
TParticlePDG::Top
Int_t Top() const
Definition: TParticlePDG.h:78
TParticlePDG::TrackingCode
Int_t TrackingCode() const
Definition: TParticlePDG.h:90
TParticlePDG::~TParticlePDG
virtual ~TParticlePDG()
destructor
Definition: TParticlePDG.cxx:178
TParticlePDG::fI3
Double_t fI3
Definition: TParticlePDG.h:33
TParticlePDG::AddDecayChannel
Int_t AddDecayChannel(Int_t Type, Double_t BranchingRatio, Int_t NDaughters, Int_t *DaughterPdgCode)
add new decay channel, Particle owns those...
Definition: TParticlePDG.cxx:189
TParticlePDG::fDecayList
TObjArray * fDecayList
Definition: TParticlePDG.h:43
TParticlePDG::fParity
Int_t fParity
Definition: TParticlePDG.h:30
int