45 modifiedOriginal = *originalIncident;
47 targetParticle = *originalTarget;
50 SlowNeutron(originalIncident,modifiedOriginal,targetParticle,targetNucleus );
51 delete originalTarget;
64 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
78 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
88 SlowNeutron( originalIncident, modifiedOriginal, targetParticle, targetNucleus );
89 delete originalTarget;
96 G4bool incidentHasChanged =
false;
97 G4bool targetHasChanged =
false;
98 G4bool quasiElastic =
false;
103 InitialCollision(vec, vecLen, currentParticle, targetParticle,
104 incidentHasChanged, targetHasChanged);
107 originalIncident, originalTarget, modifiedOriginal,
108 targetNucleus, currentParticle, targetParticle,
109 incidentHasChanged, targetHasChanged, quasiElastic);
112 currentParticle, targetParticle,
115 delete originalTarget;
120 G4RPGNeutronInelastic::SlowNeutron(
const G4HadProjectile* originalIncident,
141 eka = 1.0 + 2.0*cost1*A + A*A;
143 G4double cost = std::min( 1.0, std::max( -1.0, (A*cost1+1.0)/std::sqrt(eka) ) );
144 eka /= (1.0+A)*(1.0+A);
149 G4double p = std::sqrt(std::abs(en*en-amas*amas));
150 G4double sint = std::sqrt(std::abs(1.0-cost*cost));
162 G4double pO = std::sqrt(pxO*pxO+pyO*pyO+pzO*pzO);
164 sint = 0.5*(std::sqrt(std::abs((1.0-cost)*(1.0+cost)))+std::sqrt(ptO)/pO);
166 if( pyO < 0.0 )ph = ph*1.5;
167 if( std::abs(pxO) > 0.000001 )ph = std::atan2(pyO,pxO);
170 px = cost*cosp*px - sinp*py+sint*cosp*pz;
171 py = cost*sinp*px + cosp*py+sint*sinp*pz;
172 pz = -sint*px + cost*pz;
176 if( pz < 0.0 )pz *= -1.0;
178 G4double pu = std::sqrt(px*px+py*py+pz*pz);
186 targetParticle.
SetTotalEnergy( std::sqrt( pp*pp + tarmas*tarmas ) );
202 massVec[0] = targetNucleus.
AtomicMass( A+1.0, Z );
203 massVec[1] = theAtomicMass;
205 if (Z > 1.0) massVec[2] = targetNucleus.
AtomicMass(A, Z-1.0);
207 if (Z > 1.0 && A > 1.0) massVec[3] = targetNucleus.
AtomicMass(A-1.0, Z-1.0 );
209 if (Z > 1.0 && A > 2.0 && A-2.0 > Z-1.0)
210 massVec[4] = targetNucleus.
AtomicMass( A-2.0, Z-1.0 );
212 if (Z > 2.0 && A > 3.0 && A-3.0 > Z-2.0)
213 massVec[5] = targetNucleus.
AtomicMass( A-3.0, Z-2.0 );
215 if (A > 1.0 && A-1.0 > Z) massVec[6] = targetNucleus.
AtomicMass(A-1.0, Z);
216 massVec[7] = massVec[3];
218 if (Z > 2.0 && A > 1.0) massVec[8] = targetNucleus.
AtomicMass( A-1.0,Z-2.0 );
221 targetNucleus, theAtomicMass, massVec );
227 for(
G4int i=0; i<vecLen; ++i ) {
248 G4bool& incidentHasChanged,
255 std::vector<G4int> fsTypes;
276 incidentHasChanged =
true;
278 targetHasChanged =
true;
283 targetHasChanged =
true;
284 incidentHasChanged =
true;
288 if (part2 >
neu && part2 <
xi0) targetHasChanged =
true;
305 incidentHasChanged =
true;
306 }
else if (part2 ==
neu) {
308 incidentHasChanged =
true;
309 targetHasChanged =
true;
315 }
else if (part2 >
neu && part2 <
xi0) {
316 incidentHasChanged =
true;
317 targetHasChanged =
true;
321 targetHasChanged =
true;
334 fsTypes.erase(fsTypes.begin());
335 fsTypes.erase(fsTypes.begin());
340 for(
G4int i=0; i < mult-2; ++i ) {
341 partType = fsTypes[i];
350 CheckQnums(vec, vecLen, currentParticle, targetParticle,
351 testCharge, testBaryon, testStrange);