12 #include "TParticle.h"
13 #include "TMCParticleType.h"
15 #include "TParticlePDG.h"
16 #include "TDatabasePDG.h"
28 fname(particle->GetName()),
30 fmass(particle->GetMass()),
31 fcharge(particle->GetPDG()->Charge()),
32 fDecayTime(particle->GetPDG()->Lifetime()),
34 fwidth(particle->GetPDG()->Width()),
35 fiSpin((Int_t)particle->GetPDG()->Spin()),
36 fiParity(particle->GetPDG()->Parity()),
38 fiIsospin((Int_t)particle->GetPDG()->Isospin()),
43 fstable(particle->GetPDG()->Stable())
50 fpdg(1000000000+10000000*s+10000* z +10 * a),
58 fDecayTime(decaytime),
72 TDatabasePDG* pdgDB = TDatabasePDG::Instance();
73 if (!pdgDB->GetParticle(
fpdg)) {
75 TParticlePDG* kProton = pdgDB->GetParticle(2212);
76 Double_t kProtonMass=kProton->Mass();
79 pdgDB->AddParticle(name, name, mass, stable, 0, q,
"kPTHadron",
fpdg);
107 fpdg(10000000+10000* z +10 * a),
115 fDecayTime(decaytime),
131 TDatabasePDG* pdgDB = TDatabasePDG::Instance();
133 if (!pdgDB->GetParticle(
fpdg)) {
135 TParticlePDG* kProton = pdgDB->GetParticle(2212);
136 Double_t kProtonMass=kProton->Mass();
137 mass = a*kProtonMass;
139 pdgDB->AddParticle(name, name, mass, stable, 0, q,
"kPTHadron",
fpdg);
171 fname(particle->GetName()),
195 TMCParticleType mcType,
212 fParticle( new TParticle()),
219 fDecayTime( lifetime),
224 fiConjugation( iConjugation),
225 fiIsospin( iIsospin),
226 fiIsospinZ( iIsospinZ),
234 TDatabasePDG::Instance()
306 cout <<
"Particle: " <<
fParticle->GetName() <<
" with ID: " <<
fpdg << endl;
314 cout <<
"Primary " << endl;
328 cout << i <<
"th daughter: " << endl;
377 Fatal(
"GetDaughter",
"Index out of range");