150{
153#ifdef G4VERBOSE
154 if (verboseLevel>0){
155 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
157 G4cout <<
" Particle properties can be modified only in Pre_Init state";
159 }
160#endif
161 return false;
162 }
163
165 if (aParticle ==0 ) {
166#ifdef G4VERBOSE
167 if (verboseLevel>1){
168 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
171 }
172#endif
173 return false;
174 }
175
176 if (pData.fPDGMassModified) {
177 aParticle->thePDGMass = pData.thePDGMass;
178 }
179 if (pData.fPDGWidthModified) {
180 aParticle->thePDGMass = pData.thePDGMass;
181 }
182 if (pData.fPDGChargeModified) {
183 aParticle->thePDGCharge = pData.thePDGCharge;
184 }
185 if (pData.fPDGiSpinModified) {
186 aParticle->thePDGiSpin = pData.thePDGiSpin;
187 aParticle->thePDGSpin = 0.5*pData.thePDGiSpin;
188 }
189 if (pData.fPDGiParityModified) {
190 aParticle->thePDGiParity = pData.thePDGiParity;
191 }
192 if (pData.fPDGiConjugationModified) {
193 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
194 }
195 if (pData.fPDGiGParityModified) {
196 aParticle->thePDGiGParity = pData.thePDGiGParity;
197 }
198 if (pData.fPDGiIsospinModified) {
199 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
200 aParticle->thePDGIsospin = 0.5*pData.thePDGiIsospin;
201 }
202 if (pData.fPDGiIsospin3Modified) {
203 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
204 aParticle->thePDGIsospin3 = 0.5*pData.thePDGiIsospin3;
205 }
206 if (pData.fPDGMagneticMomentModified) {
207 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
208 }
209 if (pData.fLeptonNumberModified) {
210 aParticle->theLeptonNumber = pData.theLeptonNumber;
211 }
212 if (pData.fBaryonNumberModified) {
213 aParticle->theBaryonNumber = pData.theBaryonNumber;
214 }
215 if (pData.fPDGEncodingModified) {
216 aParticle->thePDGEncoding = pData.thePDGEncoding;
217 }
218 if (pData.fAntiPDGEncodingModified) {
219 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
220 }
221 if (pData.fPDGLifeTimeModified) {
222 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
223 }
224 for (size_t flv=0; flv<<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
225 if (pData.fQuarkContentModified){
227 }
228 if (pData.fAntiQuarkContentModified){
230 }
231 }
232
233 return true;
234}
G4DLLIMPORT std::ostream G4cout
G4ApplicationState GetCurrentState() const
static G4StateManager * GetStateManager()