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){
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4ApplicationState GetCurrentState() const
G4ParticleTable * fParticleTable
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4int theQuarkContent[NumberOfQuarkFlavor]