49 if (!fgParticlePropertyTable){
50 fgParticlePropertyTable = &theParticlePropertyTable;
52 return fgParticlePropertyTable;
83 verboseLevel = right.verboseLevel;
113 if (aParticle ==0 )
return 0;
121 if (aParticle ==0 )
return 0;
138 for (
size_t flv=0; flv<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
155 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
157 G4cout <<
" Particle properties can be modified only in Pre_Init state";
165 if (aParticle ==0 ) {
168 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
176 if (pData.fPDGMassModified) {
177 aParticle->thePDGMass = pData.thePDGMass;
179 if (pData.fPDGWidthModified) {
180 aParticle->thePDGMass = pData.thePDGMass;
182 if (pData.fPDGChargeModified) {
183 aParticle->thePDGCharge = pData.thePDGCharge;
185 if (pData.fPDGiSpinModified) {
186 aParticle->thePDGiSpin = pData.thePDGiSpin;
187 aParticle->thePDGSpin = 0.5*pData.thePDGiSpin;
189 if (pData.fPDGiParityModified) {
190 aParticle->thePDGiParity = pData.thePDGiParity;
192 if (pData.fPDGiConjugationModified) {
193 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
195 if (pData.fPDGiGParityModified) {
196 aParticle->thePDGiGParity = pData.thePDGiGParity;
198 if (pData.fPDGiIsospinModified) {
199 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
200 aParticle->thePDGIsospin = 0.5*pData.thePDGiIsospin;
202 if (pData.fPDGiIsospin3Modified) {
203 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
204 aParticle->thePDGIsospin3 = 0.5*pData.thePDGiIsospin3;
206 if (pData.fPDGMagneticMomentModified) {
207 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
209 if (pData.fLeptonNumberModified) {
210 aParticle->theLeptonNumber = pData.theLeptonNumber;
212 if (pData.fBaryonNumberModified) {
213 aParticle->theBaryonNumber = pData.theBaryonNumber;
215 if (pData.fPDGEncodingModified) {
216 aParticle->thePDGEncoding = pData.thePDGEncoding;
218 if (pData.fAntiPDGEncodingModified) {
219 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
221 if (pData.fPDGLifeTimeModified) {
222 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
224 for (
size_t flv=0; flv<<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
225 if (pData.fQuarkContentModified){
228 if (pData.fAntiQuarkContentModified){
G4DLLIMPORT std::ostream G4cout
G4double GetPDGMagneticMoment() const
G4int GetPDGiIsospin() const
G4int GetPDGiConjugation() const
G4int GetAntiPDGEncoding() const
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4int GetPDGiGParity() const
G4double GetPDGMass() const
G4int GetPDGiParity() const
G4int GetPDGEncoding() const
G4int GetLeptonNumber() const
G4double GetPDGWidth() const
G4double GetPDGCharge() const
G4int GetPDGiSpin() const
G4int theQuarkContent[NumberOfQuarkFlavor]
G4int GetBaryonNumber() const
G4int GetPDGiIsospin3() const
G4double GetPDGLifeTime() const
const G4String & GetParticleName() const
G4int operator!=(const G4ParticlePropertyTable &right) const
G4ParticlePropertyData * GetParticleProperty(const G4String &aParticleName)
static G4ParticlePropertyTable * GetParticlePropertyTable()
std::vector< G4ParticlePropertyData * > arrayDataObject
G4ParticleTable * fParticleTable
G4bool SetParticleProperty(const G4ParticlePropertyData &newProperty)
G4int operator==(const G4ParticlePropertyTable &right) const
virtual ~G4ParticlePropertyTable()
G4ParticlePropertyTable()
G4ParticlePropertyTable & operator=(const G4ParticlePropertyTable &right)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
G4ApplicationState GetCurrentState() const
static G4StateManager * GetStateManager()