#include <ParticleProperties.h>
|
static const char * | pionString = "1.3957018E+02 ,3.5E-04,3.5E-04,2.5284E-14 ,5.0E-18,5.0E-18,1 ,-,0 ,-, ,B, 211, +, ,R,pi ,uD " |
|
Definition at line 13 of file ParticleProperties.h.
◆ ParticleProperties()
ParticleProperties::ParticleProperties |
( |
std::string |
pdg_string = "" | ) |
|
Definition at line 46 of file ParticleProperties.cpp.
52 if(pdg_string.empty())
return;
53 if(pdg_string[0] ==
'*')
return;
55 replace(pdg_string.begin(), pdg_string.end(),
'\n',
',');
56 remove(pdg_string.begin(), pdg_string.end(),
' ');
58 static const unsigned int nFields=18;
59 std::string
s[nFields];
60 unsigned int first= 0;
61 unsigned int counter=0;
62 unsigned int charCounter=0;
63 while(counter < nFields){
64 if(pdg_string[charCounter] ==
','){
65 int n=charCounter-first;
68 std::string tempString =
" ";
69 if(n >= 1) tempString = pdg_string.substr(first, n);
71 cout <<
" tempString for charCounter = " << charCounter
72 <<
", and counter = " << counter
73 <<
" is: " << tempString << endl;
75 if(tempString.empty()){
78 s[counter] = tempString;
82 first = charCounter+1;
84 if(charCounter < pdg_string.size()-1) charCounter++;
86 if(counter != nFields)
return;
89 cout <<
"the strings : ";
90 for(
unsigned int i=0; i<nFields; i++) cout <<
s[i] <<
"\n";
94 _mass = atof(
s[0].c_str());
102 char Gchar =
s[7][0];
104 char Pchar =
s[9][0];
105 char Cchar =
s[10][0];
121 if(Cchar ==
'+')
_Cqm= 1;
122 if(Cchar ==
'-')
_Cqm= -1;
123 if(Cchar ==
' ')
_Cqm= 0;
124 if(Cchar ==
'0')
_Cqm= 0;
134 cout <<
"ParticleProperties constructor: " 135 <<
"This is how I parsed the string: ";
MultiQuarkContent _netQuarkContent
bool initFromString(const std::string &str)
void print(std::ostream &out=std::cout) const
◆ anti()
◆ antiCharge()
void ParticleProperties::antiCharge |
( |
| ) |
|
|
protected |
◆ antiQuarkContent()
void ParticleProperties::antiQuarkContent |
( |
| ) |
|
|
protected |
◆ antiQuarks()
void ParticleProperties::antiQuarks |
( |
| ) |
|
|
protected |
◆ antiThis()
bool ParticleProperties::antiThis |
( |
| ) |
|
◆ C()
int ParticleProperties::C |
( |
| ) |
const |
|
inline |
◆ charge()
std::string ParticleProperties::charge |
( |
| ) |
const |
|
inline |
◆ ctau()
double ParticleProperties::ctau |
( |
| ) |
const |
◆ ctau_in_microns()
double ParticleProperties::ctau_in_microns |
( |
| ) |
const |
◆ G()
int ParticleProperties::G |
( |
| ) |
const |
|
inline |
◆ hasDistinctAnti()
bool ParticleProperties::hasDistinctAnti |
( |
| ) |
const |
◆ I()
std::string ParticleProperties::I |
( |
| ) |
const |
|
inline |
◆ isAxialVector()
bool ParticleProperties::isAxialVector |
( |
| ) |
const |
|
inline |
◆ isItsOwnAnti()
bool ParticleProperties::isItsOwnAnti |
( |
| ) |
const |
|
inline |
◆ isNonResonant()
bool ParticleProperties::isNonResonant |
( |
| ) |
const |
◆ isPseudoScalar()
bool ParticleProperties::isPseudoScalar |
( |
| ) |
const |
|
inline |
◆ isPseudoTensor()
bool ParticleProperties::isPseudoTensor |
( |
| ) |
const |
|
inline |
◆ isScalar()
bool ParticleProperties::isScalar |
( |
| ) |
const |
|
inline |
◆ isTensor()
bool ParticleProperties::isTensor |
( |
| ) |
const |
|
inline |
◆ isValid()
bool ParticleProperties::isValid |
( |
| ) |
const |
|
inline |
◆ isVector()
bool ParticleProperties::isVector |
( |
| ) |
const |
|
inline |
◆ J()
std::string ParticleProperties::J |
( |
| ) |
const |
|
inline |
◆ lifetime()
double ParticleProperties::lifetime |
( |
| ) |
const |
◆ lifetime_in_ns()
double ParticleProperties::lifetime_in_ns |
( |
| ) |
const |
◆ lifetime_in_ps()
double ParticleProperties::lifetime_in_ps |
( |
| ) |
const |
◆ mass()
double ParticleProperties::mass |
( |
| ) |
const |
|
inline |
◆ mErrMinus()
double ParticleProperties::mErrMinus |
( |
| ) |
const |
|
inline |
◆ mErrPlus()
double ParticleProperties::mErrPlus |
( |
| ) |
const |
|
inline |
◆ name()
std::string ParticleProperties::name |
( |
| ) |
const |
◆ netQuarkContent()
◆ operator<()
◆ operator<=()
◆ operator==()
◆ operator>()
◆ operator>=()
◆ P()
int ParticleProperties::P |
( |
| ) |
const |
|
inline |
◆ pdg_id()
int ParticleProperties::pdg_id |
( |
| ) |
const |
|
inline |
◆ print()
void ParticleProperties::print |
( |
std::ostream & |
out = std::cout | ) |
const |
Definition at line 22 of file ParticleProperties.cpp.
25 <<
"\n I=" <<
I() <<
", G=" <<
G()
26 <<
"\n J=" <<
J() <<
", C=" <<
C() <<
", P=" <<
P()
28 <<
"\n pdg_id " <<
pdg_id()
29 <<
"\n name " <<
name()
30 <<
"\n quark content: " <<
quarks()
32 <<
"\n is its own antiparticle? " << (
isItsOwnAnti() ?
"yes" :
"no")
34 <<
"\n radius " <<
radius()*
GeV <<
" /GeV"
double lifetime_in_ps() const
std::string quarks() const
std::string charge() const
const MultiQuarkContent & netQuarkContent() const
bool isItsOwnAnti() const
◆ quarks()
std::string ParticleProperties::quarks |
( |
| ) |
const |
|
inline |
◆ R()
int ParticleProperties::R |
( |
| ) |
const |
|
inline |
◆ radius()
double ParticleProperties::radius |
( |
| ) |
const |
◆ S()
char ParticleProperties::S |
( |
| ) |
const |
|
inline |
◆ ScalarVectorPseudoAxialVectorTensor()
std::string ParticleProperties::ScalarVectorPseudoAxialVectorTensor |
( |
| ) |
const |
Definition at line 273 of file ParticleProperties.cpp.
275 if(
J()==
"0" &&
P() == -1)
return "P";
276 else if(
J()==
"1" &&
P() == -1)
return "V";
277 else if(
J()==
"0" &&
P() == 1)
return "S";
278 else if(
J()==
"1" &&
P() == 1)
return "A";
279 else if(
J()==
"2" &&
P() == 1)
return "T";
280 else if(
J()==
"2" &&
P() == -1)
return "PT";
◆ setMass()
void ParticleProperties::setMass |
( |
double |
m | ) |
const |
◆ setRadius()
void ParticleProperties::setRadius |
( |
| ) |
|
|
protected |
Definition at line 142 of file ParticleProperties.cpp.
153 string parName = pdg_id_string +
"_Radius_invGeV";
157 , NamedParameterBase::QUIET
159 if(specificR > -9998){
165 , NamedParameterBase::QUIET);
166 if(genericR > -9998){
static double _defaultCharmRadius
std::string anythingToString(const T &anything)
static double _defaultRadius
◆ SVPAT()
std::string ParticleProperties::SVPAT |
( |
| ) |
const |
|
inline |
◆ wErrMinus()
double ParticleProperties::wErrMinus |
( |
| ) |
const |
|
inline |
◆ wErrPlus()
double ParticleProperties::wErrPlus |
( |
| ) |
const |
|
inline |
◆ width()
double ParticleProperties::width |
( |
| ) |
const |
|
inline |
◆ _Aformat
char ParticleProperties::_Aformat |
|
protected |
◆ _charge
std::string ParticleProperties::_charge |
|
protected |
◆ _Cqm
int ParticleProperties::_Cqm |
|
protected |
◆ _defaultCharmRadius
double ParticleProperties::_defaultCharmRadius = 5.0/GeV |
|
staticprotected |
◆ _defaultRadius
double ParticleProperties::_defaultRadius = 1.5/GeV |
|
staticprotected |
◆ _Gparity
int ParticleProperties::_Gparity |
|
protected |
◆ _Isospin
std::string ParticleProperties::_Isospin |
|
protected |
◆ _isValid
bool ParticleProperties::_isValid |
|
protected |
◆ _JtotalSpin
std::string ParticleProperties::_JtotalSpin |
|
protected |
◆ _mass
double ParticleProperties::_mass |
|
mutableprotected |
◆ _mErrMinus
double ParticleProperties::_mErrMinus |
|
mutableprotected |
◆ _mErrPlus
double ParticleProperties::_mErrPlus |
|
mutableprotected |
◆ _name
std::string ParticleProperties::_name |
|
protected |
◆ _netQuarkContent
◆ _Parity
int ParticleProperties::_Parity |
|
protected |
◆ _pdg_id
int ParticleProperties::_pdg_id |
|
protected |
◆ _quarks
std::string ParticleProperties::_quarks |
|
protected |
◆ _Radius
double ParticleProperties::_Radius |
|
protected |
◆ _Rexist
int ParticleProperties::_Rexist |
|
protected |
◆ _Status
char ParticleProperties::_Status |
|
protected |
◆ _wErrMinus
double ParticleProperties::_wErrMinus |
|
protected |
◆ _wErrPlus
double ParticleProperties::_wErrPlus |
|
protected |
◆ _width
double ParticleProperties::_width |
|
protected |
◆ pionString
const char * ParticleProperties::pionString = "1.3957018E+02 ,3.5E-04,3.5E-04,2.5284E-14 ,5.0E-18,5.0E-18,1 ,-,0 ,-, ,B, 211, +, ,R,pi ,uD " |
|
staticprivate |
The documentation for this class was generated from the following files: