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;
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);
G4double AtomicMass(const G4double A, const G4double Z) const
void SetElement(G4int anIndex, Type *anElement)
G4double EvaporationEffects(G4double kineticEnergy)
void SetMomentum(const G4ThreeVector &momentum)
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetSide(const G4int sid)
void CalculateMomenta(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
void Initialize(G4int items)
G4DynamicParticle * ReturnTargetParticle() const
G4ParticleDefinition * GetDefinition() const
void SetStatusChange(G4HadFinalStateStatus aS)
G4int GetMultiplicityT1(G4double KE) const
const G4ParticleDefinition * GetDefinition() const
G4ParticleDefinition * particleDef[18]
G4double GetKineticEnergy() const
void SetTotalEnergy(const G4double en)
const G4LorentzVector & Get4Momentum() const
G4double GetKineticEnergy() const
void SetEnergyChange(G4double anEnergy)
G4double GetPDGMass() const
void NuclearReaction(G4FastVector< G4ReactionProduct, 4 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4Nucleus &aNucleus, const G4double theAtomicMass, const G4double *massVec)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double Cinema(G4double kineticEnergy)
std::vector< G4int > GetFSPartTypesForNN(G4int mult, G4double KE) const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
void SetDefinition(G4ParticleDefinition *aParticleDefinition)
G4ThreeVector GetMomentum() const
G4HadFinalState theParticleChange
std::vector< G4int > GetFSPartTypesForNP(G4int mult, G4double KE) const
void CheckQnums(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4double Q, G4double B, G4double S)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4int GetMultiplicityT0(G4double KE) const
void AddSecondary(G4DynamicParticle *aP)