110{
113#ifdef G4VERBOSE
114 if (verboseLevel > 0) {
115 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
117 G4cout <<
" Particle properties can be modified only in Pre_Init state";
119 }
120#endif
121 return false;
122 }
123
125 if (aParticle == nullptr) {
126#ifdef G4VERBOSE
127 if (verboseLevel > 1) {
128 G4cout <<
"G4ParticlePropertyTable::GetParticleProperty() ";
131 }
132#endif
133 return false;
134 }
135
136 if (pData.fPDGMassModified) {
137 aParticle->thePDGMass = pData.thePDGMass;
138 }
139 if (pData.fPDGWidthModified) {
140 aParticle->thePDGMass = pData.thePDGMass;
141 }
142 if (pData.fPDGChargeModified) {
143 aParticle->thePDGCharge = pData.thePDGCharge;
144 }
145 if (pData.fPDGiSpinModified) {
146 aParticle->thePDGiSpin = pData.thePDGiSpin;
147 aParticle->thePDGSpin = 0.5 * pData.thePDGiSpin;
148 }
149 if (pData.fPDGiParityModified) {
150 aParticle->thePDGiParity = pData.thePDGiParity;
151 }
152 if (pData.fPDGiConjugationModified) {
153 aParticle->thePDGiConjugation = pData.thePDGiConjugation;
154 }
155 if (pData.fPDGiGParityModified) {
156 aParticle->thePDGiGParity = pData.thePDGiGParity;
157 }
158 if (pData.fPDGiIsospinModified) {
159 aParticle->thePDGiIsospin = pData.thePDGiIsospin;
160 aParticle->thePDGIsospin = 0.5 * pData.thePDGiIsospin;
161 }
162 if (pData.fPDGiIsospin3Modified) {
163 aParticle->thePDGiIsospin3 = pData.thePDGiIsospin3;
164 aParticle->thePDGIsospin3 = 0.5 * pData.thePDGiIsospin3;
165 }
166 if (pData.fPDGMagneticMomentModified) {
167 aParticle->thePDGMagneticMoment = pData.thePDGMagneticMoment;
168 }
169 if (pData.fLeptonNumberModified) {
170 aParticle->theLeptonNumber = pData.theLeptonNumber;
171 }
172 if (pData.fBaryonNumberModified) {
173 aParticle->theBaryonNumber = pData.theBaryonNumber;
174 }
175 if (pData.fPDGEncodingModified) {
176 aParticle->thePDGEncoding = pData.thePDGEncoding;
177 }
178 if (pData.fAntiPDGEncodingModified) {
179 aParticle->theAntiPDGEncoding = pData.theAntiPDGEncoding;
180 }
181 if (pData.fPDGLifeTimeModified) {
182 aParticle->thePDGLifeTime = pData.thePDGLifeTime;
183 }
184 for (std::size_t flv = 0; flv < G4ParticlePropertyData::NumberOfQuarkFlavor; ++flv) {
185 if (pData.fQuarkContentModified) {
187 }
188 if (pData.fAntiQuarkContentModified) {
190 }
191 }
192
193 return true;
194}
G4GLOB_DLL std::ostream G4cout
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4int theQuarkContent[NumberOfQuarkFlavor]
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()