#include <G4PDGCodeChecker.hh>
Definition at line 44 of file G4PDGCodeChecker.hh.
G4PDGCodeChecker::G4PDGCodeChecker |
( |
| ) |
|
Definition at line 45 of file G4PDGCodeChecker.cc.
46 :
code(0),theParticleType(
""),
48 exotic(0),radial(0),multiplet(0),
49 quark1(0),quark2(0),quark3(0),spin(0)
55 theQuarkContent[flavor] =0;
56 theAntiQuarkContent[flavor] =0;
G4PDGCodeChecker::~G4PDGCodeChecker |
( |
| ) |
|
|
inline |
Definition at line 353 of file G4PDGCodeChecker.cc.
358 totalCharge += (-1./3.)*
eplus*theQuarkContent[flavor];
359 totalCharge += 1./3.*
eplus*theAntiQuarkContent[flavor];
360 totalCharge += 2./3.*
eplus*theQuarkContent[flavor+1];
361 totalCharge += (-2./3.)*
eplus*theAntiQuarkContent[flavor+1];
364 if (std::fabs(totalCharge-thePDGCharge)>0.1*
eplus) {
366 if (verboseLevel>0) {
367 G4cout <<
" G4PDGCodeChecker::CheckCharge : ";
368 G4cout <<
" illegal electric charge " << thePDGCharge/
eplus;
G4GLOB_DLL std::ostream G4cout
static constexpr double eplus
Definition at line 61 of file G4PDGCodeChecker.cc.
65 theParticleType = particleType;
70 theQuarkContent[flavor] =0;
71 theAntiQuarkContent[flavor] =0;
75 if ((theParticleType ==
"nucleus")||(theParticleType ==
"anti_nucleus")) {
76 return CheckForNuclei();
83 if (theParticleType ==
"quarks") {
84 return CheckForQuarks();
86 }
else if (theParticleType ==
"diquarks") {
87 return CheckForDiQuarks();
89 }
else if (theParticleType ==
"gluons") {
94 }
else if (theParticleType ==
"meson") {
95 return CheckForMesons();
97 }
else if (theParticleType ==
"baryon"){
98 return CheckForBaryons();
G4int G4PDGCodeChecker::GetAntiQuarkContent |
( |
G4int |
flavor | ) |
const |
|
inline |
Definition at line 119 of file G4PDGCodeChecker.hh.
123 value = theAntiQuarkContent[flavor];
const XML_Char int const XML_Char * value
G4int G4PDGCodeChecker::GetExotic |
( |
| ) |
const |
|
inline |
G4int G4PDGCodeChecker::GetMultiplet |
( |
| ) |
const |
|
inline |
G4int G4PDGCodeChecker::GetQuarkContent |
( |
G4int |
flavor | ) |
const |
|
inline |
Definition at line 109 of file G4PDGCodeChecker.hh.
113 value = theQuarkContent[flavor];
const XML_Char int const XML_Char * value
G4int G4PDGCodeChecker::GetQuarkFlavor |
( |
G4int |
idx | ) |
const |
|
inline |
Definition at line 130 of file G4PDGCodeChecker.hh.
133 if (idx ==0) value = quark1;
134 else if (idx ==1) value = quark2;
135 else if (idx ==2) value = quark3;
const XML_Char int const XML_Char * value
G4int G4PDGCodeChecker::GetRadial |
( |
| ) |
const |
|
inline |
G4int G4PDGCodeChecker::GetSpin |
( |
| ) |
const |
|
inline |
G4int G4PDGCodeChecker::GetVerboseLevel |
( |
| ) |
const |
|
inline |
G4bool G4PDGCodeChecker::IsAntiParticle |
( |
| ) |
const |
|
inline |
void G4PDGCodeChecker::SetVerboseLevel |
( |
G4int |
verbose | ) |
|
|
inline |
The documentation for this class was generated from the following files: