20 #include "TParticlePDG.h"
30 theParticle_(particle),
41 if ( TMath::Abs(this->code()) == 211 ) {
44 }
else if ( this->code() == 111 ) {
48 }
else if ( TMath::Abs(this->code()) == 321 ) {
51 }
else if ( this->code() == 130 || this->code() == 310 || TMath::Abs(this->code()) == 311 ) {
54 if ( this->code() == 310 ) {
57 }
else if ( this->code() == 221 ) {
59 }
else if ( this->code() == 331 ) {
61 }
else if ( TMath::Abs(this->code()) == 411 ) {
64 }
else if ( TMath::Abs(this->code()) == 421 ) {
67 }
else if ( TMath::Abs(this->code()) == 431) {
70 }
else if ( TMath::Abs(this->code()) == 511 ) {
73 }
else if ( TMath::Abs(this->code()) == 521 ) {
76 }
else if ( TMath::Abs(this->code()) == 531 ) {
89 cerr<<
"ERROR in LauParticlePDG::code : Null pointer."<<endl;
98 cerr<<
"ERROR in LauParticlePDG::conjugateCode : Null pointer."<<endl;
107 cerr<<
"ERROR in LauParticlePDG::charge : Null pointer."<<endl;
111 Int_t theCharge =
static_cast<Int_t
>(chargeTimesThree/3.0);
118 cerr<<
"ERROR in LauParticlePDG::string : Null pointer."<<endl;
127 name.ReplaceAll(
"*",
"st");
128 name.ReplaceAll(
"_",
"");
129 name.ReplaceAll(
"(",
"");
130 name.ReplaceAll(
")",
"");
131 name.ReplaceAll(
"+",
"p");
132 name.ReplaceAll(
"-",
"m");
TString string() const
Particle name.
const Double_t mEta
Mass of eta (GeV/c^2)
Class for storing particle properties.
virtual ~LauParticlePDG()
Destructor.
Int_t charge() const
The charge of the particle.
const TParticlePDG * theParticle_
The particle.
const Double_t mK0
Mass of K0 (GeV/c^2)
const TString & name() const
The parameter name.
const Double_t mDs
Mass of Ds (GeV/c^2)
const Double_t mD0
Mass of neutral D (GeV/c^2)
const Double_t mBs0
Mass of neutral B_s (GeV/c^2)
const LauParticlePDG * antiParticle_
The antiparticle.
const Double_t mB0
Mass of neutral B_d (GeV/c^2)
const Double_t mPi
Mass of pi+- (GeV/c^2)
const Double_t mB
Mass of charged B (GeV/c^2)
TString stringAlphaNum() const
Particle name, containing only alphanumeric characters.
File containing declaration of LauDatabasePDG class.
File containing declaration of LauParticlePDG class.
const Double_t mEtaPrime
Mass of eta' (GeV/c^2)
File containing LauConstants namespace.
const Double_t mD
Mass of charged D (GeV/c^2)
Int_t conjugateCode() const
The anti-particle PDG code.
Int_t code() const
The particle PDG code.
const Double_t mK
Mass of K+- (GeV/c^2)
const Double_t mPi0
Mass of pi0 (GeV/c^2)