Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ParticlePropertyData Class Reference

#include <G4ParticlePropertyData.hh>

Public Member Functions

 G4ParticlePropertyData (const G4String &particleName="")
 
 G4ParticlePropertyData (const G4ParticlePropertyData &right)
 
virtual ~G4ParticlePropertyData ()
 
G4ParticlePropertyDataoperator= (const G4ParticlePropertyData &right)
 
G4int operator== (const G4ParticlePropertyData &right) const
 
G4int operator!= (const G4ParticlePropertyData &right) const
 
const G4StringGetParticleName () const
 
G4double GetPDGMass () const
 
G4double GetPDGWidth () const
 
G4double GetPDGCharge () const
 
G4int GetPDGiSpin () const
 
G4int GetPDGiParity () const
 
G4int GetPDGiConjugation () const
 
G4int GetPDGiIsospin () const
 
G4int GetPDGiIsospin3 () const
 
G4int GetPDGiGParity () const
 
G4double GetPDGMagneticMoment () const
 
G4int GetLeptonNumber () const
 
G4int GetBaryonNumber () const
 
G4int GetPDGEncoding () const
 
G4int GetAntiPDGEncoding () const
 
G4int GetQuarkContent (G4int flavor) const
 
G4int GetAntiQuarkContent (G4int flavor) const
 
G4double GetPDGLifeTime () const
 
void SetPDGMass (G4double newMass)
 
void SetPDGWidth (G4double newWidth)
 
void SetPDGCharge (G4double newCharge)
 
void SetPDGiSpin (G4int newSpin)
 
void SetPDGiParity (G4int newParity)
 
void SetPDGiConjugation (G4int newConjugation)
 
void SetPDGiIsospin (G4int newIsospin)
 
void SetPDGiIsospin3 (G4int newIsospin3)
 
void SetPDGiGParity (G4int newGParity)
 
void SetPDGMagneticMoment (G4double mageticMoment)
 
void SetLeptonNumber (G4int newLeptonNumber)
 
void SetBaryonNumber (G4int newBaryonNumber)
 
void SetPDGEncoding (G4int newEncoding)
 
void SetAntiPDGEncoding (G4int newAntiEncoding)
 
void SetQuarkContent (G4int flavor, G4int newContent)
 
void SetAntiQuarkContent (G4int flavor, G4int newContent)
 
void SetPDGLifeTime (G4double newLifeTime)
 
void Print () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Friends

class G4ParticlePropertyTable
 

Detailed Description

Definition at line 46 of file G4ParticlePropertyData.hh.

Constructor & Destructor Documentation

G4ParticlePropertyData::G4ParticlePropertyData ( const G4String particleName = "")

Definition at line 49 of file G4ParticlePropertyData.cc.

49  :
50  theParticleName(particleName),
51  thePDGMass(0.0),
52  thePDGWidth(0.0),
53  thePDGCharge(0.0),
54  thePDGiSpin(0),
55  thePDGiParity(0),
56  thePDGiConjugation(0),
57  thePDGiGParity(0),
58  thePDGiIsospin(0),
59  thePDGiIsospin3(0),
60  thePDGMagneticMoment(0.0),
61  theLeptonNumber(0),
62  theBaryonNumber(0),
63  thePDGEncoding(0),
64  theAntiPDGEncoding(0),
65  thePDGLifeTime(-1.0),
66  fPDGMassModified(false),
67  fPDGWidthModified(false),
68  fPDGChargeModified(false),
69  fPDGiSpinModified(false),
70  fPDGiParityModified(false),
71  fPDGiConjugationModified(false),
72  fPDGiGParityModified(false),
73  fPDGiIsospinModified(false),
74  fPDGiIsospin3Modified(false),
75  fPDGIsospinModified(false),
76  fPDGIsospin3Modified(false),
77  fPDGMagneticMomentModified(false),
78  fLeptonNumberModified(false),
79  fBaryonNumberModified(false),
80  fPDGEncodingModified(false),
81  fAntiPDGEncodingModified(false),
82  fQuarkContentModified(false),
83  fAntiQuarkContentModified(false),
84  fPDGLifeTimeModified(false),
85  verboseLevel(1)
86 {
87  for (size_t flv=0; flv<NumberOfQuarkFlavor; ++flv) {
88  theQuarkContent[flv] =0;
89  theAntiQuarkContent[flv]=0;
90  }
91 }
G4ParticlePropertyData::G4ParticlePropertyData ( const G4ParticlePropertyData right)

Definition at line 95 of file G4ParticlePropertyData.cc.

95  :
96  fPDGMassModified(false),
97  fPDGWidthModified(false),
98  fPDGChargeModified(false),
99  fPDGiSpinModified(false),
100  fPDGiParityModified(false),
101  fPDGiConjugationModified(false),
102  fPDGiGParityModified(false),
103  fPDGiIsospinModified(false),
104  fPDGiIsospin3Modified(false),
105  fPDGIsospinModified(false),
106  fPDGIsospin3Modified(false),
107  fPDGMagneticMomentModified(false),
108  fLeptonNumberModified(false),
109  fBaryonNumberModified(false),
110  fPDGEncodingModified(false),
111  fAntiPDGEncodingModified(false),
112  fQuarkContentModified(false),
113  fAntiQuarkContentModified(false),
114  fPDGLifeTimeModified(false)
115 {
116  verboseLevel = right.verboseLevel;
117  theParticleName = right.theParticleName;
118  thePDGMass = right.thePDGMass;
119  thePDGWidth = right. thePDGWidth;
120  thePDGCharge = right.thePDGCharge;
121  thePDGiSpin = right.thePDGiSpin;
122  thePDGiParity = right.thePDGiParity;
123  thePDGiConjugation = right.thePDGiConjugation;
124  thePDGiGParity = right.thePDGiGParity;
125  thePDGiIsospin = right.thePDGiIsospin;
126  thePDGiIsospin3 = right.thePDGiIsospin3;
127  thePDGMagneticMoment = right.thePDGMagneticMoment;
128  theLeptonNumber = right.theLeptonNumber;
129  theBaryonNumber = right.theBaryonNumber;
130  thePDGEncoding = right.thePDGEncoding;
131  theAntiPDGEncoding = right.theAntiPDGEncoding;
132  for (size_t flv=0; flv<NumberOfQuarkFlavor; ++flv) {
133  theQuarkContent[flv] = right.theQuarkContent[flv];
134  theAntiQuarkContent[flv]= right.theAntiQuarkContent[flv];
135  }
136  thePDGLifeTime = right.thePDGLifeTime;
137 }
G4ParticlePropertyData::~G4ParticlePropertyData ( )
virtual

Definition at line 44 of file G4ParticlePropertyData.cc.

45 {
46 }

Member Function Documentation

G4int G4ParticlePropertyData::GetAntiPDGEncoding ( ) const
inline

Definition at line 93 of file G4ParticlePropertyData.hh.

93 { return theAntiPDGEncoding; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetAntiQuarkContent ( G4int  flavor) const
G4int G4ParticlePropertyData::GetBaryonNumber ( ) const
inline

Definition at line 90 of file G4ParticlePropertyData.hh.

90 { return theBaryonNumber; }
G4int G4ParticlePropertyData::GetLeptonNumber ( ) const
inline

Definition at line 89 of file G4ParticlePropertyData.hh.

89 { return theLeptonNumber; }
const G4String& G4ParticlePropertyData::GetParticleName ( ) const
inline

Definition at line 74 of file G4ParticlePropertyData.hh.

74 { return theParticleName; }
G4double G4ParticlePropertyData::GetPDGCharge ( ) const
inline

Definition at line 78 of file G4ParticlePropertyData.hh.

78 { return thePDGCharge; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetPDGEncoding ( ) const
inline

Definition at line 92 of file G4ParticlePropertyData.hh.

92 { return thePDGEncoding; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetPDGiConjugation ( ) const
inline

Definition at line 82 of file G4ParticlePropertyData.hh.

82 { return thePDGiConjugation; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetPDGiGParity ( ) const
inline

Definition at line 85 of file G4ParticlePropertyData.hh.

85 { return thePDGiGParity; }
G4int G4ParticlePropertyData::GetPDGiIsospin ( ) const
inline

Definition at line 83 of file G4ParticlePropertyData.hh.

83 { return thePDGiIsospin; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetPDGiIsospin3 ( ) const
inline

Definition at line 84 of file G4ParticlePropertyData.hh.

84 { return thePDGiIsospin3; }
G4int G4ParticlePropertyData::GetPDGiParity ( ) const
inline

Definition at line 81 of file G4ParticlePropertyData.hh.

81 { return thePDGiParity; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetPDGiSpin ( ) const
inline

Definition at line 80 of file G4ParticlePropertyData.hh.

80 { return thePDGiSpin; }

Here is the caller graph for this function:

G4double G4ParticlePropertyData::GetPDGLifeTime ( ) const
inline

Definition at line 101 of file G4ParticlePropertyData.hh.

101 { return thePDGLifeTime; }

Here is the caller graph for this function:

G4double G4ParticlePropertyData::GetPDGMagneticMoment ( ) const
inline

Definition at line 87 of file G4ParticlePropertyData.hh.

87 { return thePDGMagneticMoment; }
G4double G4ParticlePropertyData::GetPDGMass ( ) const
inline

Definition at line 76 of file G4ParticlePropertyData.hh.

76 { return thePDGMass; }

Here is the caller graph for this function:

G4double G4ParticlePropertyData::GetPDGWidth ( ) const
inline

Definition at line 77 of file G4ParticlePropertyData.hh.

77 { return thePDGWidth; }

Here is the caller graph for this function:

G4int G4ParticlePropertyData::GetQuarkContent ( G4int  flavor) const
G4int G4ParticlePropertyData::GetVerboseLevel ( ) const
G4int G4ParticlePropertyData::operator!= ( const G4ParticlePropertyData right) const

Definition at line 194 of file G4ParticlePropertyData.cc.

195 {
196  return (this != &right);
197 }
G4ParticlePropertyData & G4ParticlePropertyData::operator= ( const G4ParticlePropertyData right)

Definition at line 140 of file G4ParticlePropertyData.cc.

141 {
142  if (this != &right) {
143  verboseLevel = right.verboseLevel;
144  theParticleName = right.theParticleName;
145  thePDGMass = right.thePDGMass;
146  thePDGWidth = right. thePDGWidth;
147  thePDGCharge = right.thePDGCharge;
148  thePDGiSpin = right.thePDGiSpin;
149  thePDGiParity = right.thePDGiParity;
150  thePDGiConjugation = right.thePDGiConjugation;
151  thePDGiGParity = right.thePDGiGParity;
152  thePDGiIsospin = right.thePDGiIsospin;
153  thePDGiIsospin3 = right.thePDGiIsospin3;
154  thePDGMagneticMoment = right.thePDGMagneticMoment;
155  theLeptonNumber = right.theLeptonNumber;
156  theBaryonNumber = right.theBaryonNumber;
157  thePDGEncoding = right.thePDGEncoding;
158  theAntiPDGEncoding = right.theAntiPDGEncoding;
159  for (size_t flv=0; flv<NumberOfQuarkFlavor; ++flv) {
160  theQuarkContent[flv] = right.theQuarkContent[flv];
161  theAntiQuarkContent[flv]= right.theAntiQuarkContent[flv];
162  }
163  thePDGLifeTime = right.thePDGLifeTime;
164  fPDGMassModified = true;
165  fPDGWidthModified = true;
166  fPDGChargeModified = true;
167  fPDGiSpinModified = true;
168  fPDGiParityModified = true;
169  fPDGiConjugationModified = true;
170  fPDGiGParityModified = true;
171  fPDGiIsospinModified = true;
172  fPDGiIsospin3Modified = true;
173  fPDGIsospinModified = true;
174  fPDGIsospin3Modified = true;
175  fPDGMagneticMomentModified = true;
176  fLeptonNumberModified = true;
177  fBaryonNumberModified = true;
178  fPDGEncodingModified = true;
179  fAntiPDGEncodingModified = true;
180  fQuarkContentModified = true;
181  fAntiQuarkContentModified = true;
182  fPDGLifeTimeModified = true;
183  }
184  return *this;
185 }
G4int G4ParticlePropertyData::operator== ( const G4ParticlePropertyData right) const

Definition at line 188 of file G4ParticlePropertyData.cc.

189 {
190  return (this == &right);
191 }
void G4ParticlePropertyData::Print ( ) const

Definition at line 200 of file G4ParticlePropertyData.cc.

201 {
202 #ifdef G4VERBOSE
203  G4cout << " Particle Name : " << theParticleName << G4endl;
204  G4cout << " PDG particle code : " << thePDGEncoding;
205  G4cout << " [PDG anti-particle code: " << this->GetAntiPDGEncoding() << "]"<< G4endl;
206  G4cout << " Mass [GeV/c2] : " << thePDGMass/GeV ;
207  G4cout << " Width : " << thePDGWidth/GeV << G4endl;
208  G4cout << " Lifetime [nsec] : " << thePDGLifeTime/ns << G4endl;
209  G4cout << " Charge [e]: " << thePDGCharge/eplus << G4endl;
210  G4cout << " Spin : " << thePDGiSpin << "/2" << G4endl;
211  G4cout << " Parity : " << thePDGiParity << G4endl;
212  G4cout << " Charge conjugation : " << thePDGiConjugation << G4endl;
213  G4cout << " Isospin : (I,Iz): (" << thePDGiIsospin <<"/2";
214  G4cout << " , " << thePDGiIsospin3 << "/2 ) " << G4endl;
215  G4cout << " GParity : " << thePDGiGParity << G4endl;
216  G4cout << " MagneticMoment [MeV/T]: ";
217  if (thePDGMagneticMoment != 0.0) {
218  G4cout << thePDGMagneticMoment/MeV*tesla << G4endl;
219  }else {
220  G4cout << "not defined " << G4endl;
221  }
222  G4cout << " Lepton number : " << theLeptonNumber;
223  G4cout << " Baryon number : " << theBaryonNumber << G4endl;
224  G4cout << " Quark contents (d,u,s,c,b,t) : " << theQuarkContent[0];
225  G4cout << ", " << theQuarkContent[1];
226  G4cout << ", " << theQuarkContent[2];
227  G4cout << ", " << theQuarkContent[3];
228  G4cout << ", " << theQuarkContent[4];
229  G4cout << ", " << theQuarkContent[5] << G4endl;
230  G4cout << " AntiQuark contents : " << theAntiQuarkContent[0];
231  G4cout << ", " << theAntiQuarkContent[1];
232  G4cout << ", " << theAntiQuarkContent[2];
233  G4cout << ", " << theAntiQuarkContent[3];
234  G4cout << ", " << theAntiQuarkContent[4];
235  G4cout << ", " << theAntiQuarkContent[5] << G4endl;
236 #endif
237 }
static constexpr double tesla
Definition: G4SIunits.hh:268
G4GLOB_DLL std::ostream G4cout
static constexpr double eplus
Definition: G4SIunits.hh:199
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
#define ns
Definition: xmlparse.cc:614

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ParticlePropertyData::SetAntiPDGEncoding ( G4int  newAntiEncoding)
void G4ParticlePropertyData::SetAntiQuarkContent ( G4int  flavor,
G4int  newContent 
)
void G4ParticlePropertyData::SetBaryonNumber ( G4int  newBaryonNumber)
void G4ParticlePropertyData::SetLeptonNumber ( G4int  newLeptonNumber)
void G4ParticlePropertyData::SetPDGCharge ( G4double  newCharge)

Here is the caller graph for this function:

void G4ParticlePropertyData::SetPDGEncoding ( G4int  newEncoding)
void G4ParticlePropertyData::SetPDGiConjugation ( G4int  newConjugation)
void G4ParticlePropertyData::SetPDGiGParity ( G4int  newGParity)
void G4ParticlePropertyData::SetPDGiIsospin ( G4int  newIsospin)
void G4ParticlePropertyData::SetPDGiIsospin3 ( G4int  newIsospin3)
void G4ParticlePropertyData::SetPDGiParity ( G4int  newParity)
void G4ParticlePropertyData::SetPDGiSpin ( G4int  newSpin)
void G4ParticlePropertyData::SetPDGLifeTime ( G4double  newLifeTime)

Here is the caller graph for this function:

void G4ParticlePropertyData::SetPDGMagneticMoment ( G4double  mageticMoment)
void G4ParticlePropertyData::SetPDGMass ( G4double  newMass)

Here is the caller graph for this function:

void G4ParticlePropertyData::SetPDGWidth ( G4double  newWidth)

Here is the caller graph for this function:

void G4ParticlePropertyData::SetQuarkContent ( G4int  flavor,
G4int  newContent 
)
void G4ParticlePropertyData::SetVerboseLevel ( G4int  value)

Friends And Related Function Documentation

friend class G4ParticlePropertyTable
friend

Definition at line 54 of file G4ParticlePropertyData.hh.


The documentation for this class was generated from the following files: