40 G4ParticlePropertyTable::fgParticlePropertyTable =
nullptr;
45 if (fgParticlePropertyTable ==
nullptr)
49 return fgParticlePropertyTable;
83 if (aParticle ==
nullptr )
return nullptr;
92 if (aParticle ==
nullptr )
return nullptr;
110 for (std::size_t flv=0;
111 flv<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv)
132 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
134 G4cout <<
" Particle properties can be modified only in Pre_Init state";
143 if (aParticle ==
nullptr )
148 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
156 if (pData.fPDGMassModified) {
157 aParticle->thePDGMass = pData.thePDGMass;
159 if (pData.fPDGWidthModified) {
160 aParticle->thePDGMass = pData.thePDGMass;
162 if (pData.fPDGChargeModified) {
163 aParticle->thePDGCharge = pData.thePDGCharge;
165 if (pData.fPDGiSpinModified) {
166 aParticle->thePDGiSpin = pData.thePDGiSpin;
167 aParticle->thePDGSpin = 0.5*pData.thePDGiSpin;
169 if (pData.fPDGiParityModified) {
170 aParticle->thePDGiParity = pData.thePDGiParity;
172 if (pData.fPDGiConjugationModified) {
173 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
175 if (pData.fPDGiGParityModified) {
176 aParticle->thePDGiGParity = pData.thePDGiGParity;
178 if (pData.fPDGiIsospinModified) {
179 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
180 aParticle->thePDGIsospin = 0.5*pData.thePDGiIsospin;
182 if (pData.fPDGiIsospin3Modified) {
183 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
184 aParticle->thePDGIsospin3 = 0.5*pData.thePDGiIsospin3;
186 if (pData.fPDGMagneticMomentModified) {
187 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
189 if (pData.fLeptonNumberModified) {
190 aParticle->theLeptonNumber = pData.theLeptonNumber;
192 if (pData.fBaryonNumberModified) {
193 aParticle->theBaryonNumber = pData.theBaryonNumber;
195 if (pData.fPDGEncodingModified) {
196 aParticle->thePDGEncoding = pData.thePDGEncoding;
198 if (pData.fAntiPDGEncodingModified) {
199 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
201 if (pData.fPDGLifeTimeModified) {
202 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
204 for (std::size_t flv=0;
205 flv<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv)
207 if (pData.fQuarkContentModified)
211 if (pData.fAntiQuarkContentModified)
G4GLOB_DLL 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
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()
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()