125{
128 {
129#ifdef G4VERBOSE
130 if (verboseLevel>0)
131 {
132 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
134 G4cout <<
" Particle properties can be modified only in Pre_Init state";
136 }
137#endif
138 return false;
139 }
140
143 if (aParticle == nullptr )
144 {
145#ifdef G4VERBOSE
146 if (verboseLevel>1)
147 {
148 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
151 }
152#endif
153 return false;
154 }
155
156 if (pData.fPDGMassModified) {
157 aParticle->thePDGMass = pData.thePDGMass;
158 }
159 if (pData.fPDGWidthModified) {
160 aParticle->thePDGMass = pData.thePDGMass;
161 }
162 if (pData.fPDGChargeModified) {
163 aParticle->thePDGCharge = pData.thePDGCharge;
164 }
165 if (pData.fPDGiSpinModified) {
166 aParticle->thePDGiSpin = pData.thePDGiSpin;
167 aParticle->thePDGSpin = 0.5*pData.thePDGiSpin;
168 }
169 if (pData.fPDGiParityModified) {
170 aParticle->thePDGiParity = pData.thePDGiParity;
171 }
172 if (pData.fPDGiConjugationModified) {
173 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
174 }
175 if (pData.fPDGiGParityModified) {
176 aParticle->thePDGiGParity = pData.thePDGiGParity;
177 }
178 if (pData.fPDGiIsospinModified) {
179 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
180 aParticle->thePDGIsospin = 0.5*pData.thePDGiIsospin;
181 }
182 if (pData.fPDGiIsospin3Modified) {
183 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
184 aParticle->thePDGIsospin3 = 0.5*pData.thePDGiIsospin3;
185 }
186 if (pData.fPDGMagneticMomentModified) {
187 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
188 }
189 if (pData.fLeptonNumberModified) {
190 aParticle->theLeptonNumber = pData.theLeptonNumber;
191 }
192 if (pData.fBaryonNumberModified) {
193 aParticle->theBaryonNumber = pData.theBaryonNumber;
194 }
195 if (pData.fPDGEncodingModified) {
196 aParticle->thePDGEncoding = pData.thePDGEncoding;
197 }
198 if (pData.fAntiPDGEncodingModified) {
199 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
200 }
201 if (pData.fPDGLifeTimeModified) {
202 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
203 }
204 for (std::size_t flv=0;
205 flv<G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv)
206 {
207 if (pData.fQuarkContentModified)
208 {
210 }
211 if (pData.fAntiQuarkContentModified)
212 {
214 }
215 }
216
217 return true;
218}
G4GLOB_DLL std::ostream G4cout
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4int theQuarkContent[NumberOfQuarkFlavor]
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()