82 if (aParticle ==
nullptr)
return nullptr;
99 for (std::size_t flv = 0; flv < G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
114 if (verboseLevel > 0) {
115 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
117 G4cout <<
" Particle properties can be modified only in Pre_Init state";
125 if (aParticle ==
nullptr) {
127 if (verboseLevel > 1) {
128 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
136 if (pData.fPDGMassModified) {
137 aParticle->thePDGMass = pData.thePDGMass;
139 if (pData.fPDGWidthModified) {
140 aParticle->thePDGMass = pData.thePDGMass;
142 if (pData.fPDGChargeModified) {
143 aParticle->thePDGCharge = pData.thePDGCharge;
145 if (pData.fPDGiSpinModified) {
146 aParticle->thePDGiSpin = pData.thePDGiSpin;
147 aParticle->thePDGSpin = 0.5 * pData.thePDGiSpin;
149 if (pData.fPDGiParityModified) {
150 aParticle->thePDGiParity = pData.thePDGiParity;
152 if (pData.fPDGiConjugationModified) {
153 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
155 if (pData.fPDGiGParityModified) {
156 aParticle->thePDGiGParity = pData.thePDGiGParity;
158 if (pData.fPDGiIsospinModified) {
159 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
160 aParticle->thePDGIsospin = 0.5 * pData.thePDGiIsospin;
162 if (pData.fPDGiIsospin3Modified) {
163 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
164 aParticle->thePDGIsospin3 = 0.5 * pData.thePDGiIsospin3;
166 if (pData.fPDGMagneticMomentModified) {
167 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
169 if (pData.fLeptonNumberModified) {
170 aParticle->theLeptonNumber = pData.theLeptonNumber;
172 if (pData.fBaryonNumberModified) {
173 aParticle->theBaryonNumber = pData.theBaryonNumber;
175 if (pData.fPDGEncodingModified) {
176 aParticle->thePDGEncoding = pData.thePDGEncoding;
178 if (pData.fAntiPDGEncodingModified) {
179 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
181 if (pData.fPDGLifeTimeModified) {
182 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
184 for (std::size_t flv = 0; flv < G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
185 if (pData.fQuarkContentModified) {
188 if (pData.fAntiQuarkContentModified) {
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
G4ParticlePropertyData * GetParticleProperty(const G4String &aParticleName)
static G4ParticlePropertyTable * GetParticlePropertyTable()
std::vector< G4ParticlePropertyData * > arrayDataObject
G4ParticleTable * fParticleTable
G4bool SetParticleProperty(const G4ParticlePropertyData &newProperty)
~G4ParticlePropertyTable()
G4ParticlePropertyTable()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()