48 if (!fgParticlePropertyTable)
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){
G4bool SetParticleProperty(const G4ParticlePropertyData &newProperty)
std::vector< G4ParticlePropertyData * > arrayDataObject
G4int GetPDGiSpin() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4int GetPDGiIsospin3() const
G4int GetPDGiParity() const
G4ParticlePropertyData * GetParticleProperty(const G4String &aParticleName)
static G4ParticlePropertyTable * GetParticlePropertyTable()
G4int GetPDGEncoding() const
G4ParticlePropertyTable()
const G4String & GetParticleName() const
G4int GetAntiPDGEncoding() const
static G4StateManager * GetStateManager()
G4double GetPDGWidth() const
G4GLOB_DLL std::ostream G4cout
virtual ~G4ParticlePropertyTable()
G4ApplicationState GetCurrentState() const
G4ParticleTable * fParticleTable
G4int GetPDGiConjugation() const
G4int GetPDGiGParity() const
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4int GetPDGiIsospin() const
G4int theQuarkContent[NumberOfQuarkFlavor]
G4double GetPDGLifeTime() const
G4double GetPDGMagneticMoment() const
G4int operator!=(const G4ParticlePropertyTable &right) const
G4double GetPDGCharge() const
G4ParticlePropertyTable & operator=(const G4ParticlePropertyTable &right)
G4int GetLeptonNumber() const
G4int operator==(const G4ParticlePropertyTable &right) const
G4int GetBaryonNumber() const