53 SlowProton( originalIncident, targetNucleus );
54 delete originalTarget;
64 modifiedOriginal = *originalIncident;
70 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
83 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
91 SlowProton( originalIncident, targetNucleus );
92 delete originalTarget;
98 targetParticle = *originalTarget;
101 G4bool incidentHasChanged =
false;
102 G4bool targetHasChanged =
false;
103 G4bool quasiElastic =
false;
108 InitialCollision(vec, vecLen, currentParticle, targetParticle,
109 incidentHasChanged, targetHasChanged);
112 originalIncident, originalTarget, modifiedOriginal,
113 targetNucleus, currentParticle, targetParticle,
114 incidentHasChanged, targetHasChanged, quasiElastic);
117 currentParticle, targetParticle,
118 incidentHasChanged );
120 delete originalTarget;
126G4RPGProtonInelastic::SlowProton(
const G4HadProjectile *originalIncident,
136 massVec[0] = targetNucleus.
AtomicMass( A+1.0, Z+1.0 );
139 massVec[1] = targetNucleus.
AtomicMass( A , Z+1.0 );
140 massVec[2] = theAtomicMass;
142 if (A > 1.0 && A-1.0 > Z)
143 massVec[3] = targetNucleus.
AtomicMass( A-1.0, Z );
145 if (A > 2.0 && A-2.0 > Z)
146 massVec[4] = targetNucleus.
AtomicMass( A-2.0, Z );
148 if (A > 3.0 && Z > 1.0 && A-3.0 > Z-1.0)
149 massVec[5] = targetNucleus.
AtomicMass( A-3.0, Z-1.0 );
151 if (A > 1.0 && A-1.0 > Z+1.0)
152 massVec[6] = targetNucleus.
AtomicMass( A-1.0, Z+1.0 );
153 massVec[7] = massVec[3];
155 if (A > 1.0 && Z > 1.0)
156 massVec[8] = targetNucleus.
AtomicMass( A-1.0, Z-1.0 );
163 targetNucleus, theAtomicMass, massVec );
169 for(
G4int i=0; i<vecLen; ++i )
191 G4bool& incidentHasChanged,
198 std::vector<G4int> fsTypes;
219 incidentHasChanged =
true;
223 targetHasChanged =
true;
225 }
else if (part2 >
neu && part2 <
xi0) {
226 targetHasChanged =
true;
230 targetHasChanged =
true;
231 incidentHasChanged =
true;
248 targetHasChanged =
true;
249 }
else if (part2 ==
neu) {
251 incidentHasChanged =
true;
252 targetHasChanged =
true;
257 targetHasChanged =
true;
261 incidentHasChanged =
true;
262 if (part2 >
neu && part2 <
xi0) targetHasChanged =
true;
272 fsTypes.erase(fsTypes.begin());
273 fsTypes.erase(fsTypes.begin());
278 for(
G4int i=0; i < mult-2; ++i ) {
279 partType = fsTypes[i];
288 CheckQnums(vec, vecLen, currentParticle, targetParticle,
289 testCharge, testBaryon, testStrange);
double A(double temperature)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetMomentum(const G4ThreeVector &momentum)
void SetElement(G4int anIndex, Type *anElement)
void Initialize(G4int items)
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4HadFinalState theParticleChange
G4double EvaporationEffects(G4double kineticEnergy)
G4double Cinema(G4double kineticEnergy)
G4DynamicParticle * ReturnTargetParticle() const
G4double AtomicMass(const G4double A, const G4double Z) const
G4double GetPDGMass() const
void CheckQnums(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4double Q, G4double B, G4double S)
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 SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
G4ParticleDefinition * particleDef[18]
G4int GetMultiplicityT0(G4double KE) const
G4int GetMultiplicityT1(G4double KE) const
std::vector< G4int > GetFSPartTypesForPP(G4int mult, G4double KE) const
std::vector< G4int > GetFSPartTypesForPN(G4int mult, G4double KE) const
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
void NuclearReaction(G4FastVector< G4ReactionProduct, 4 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4Nucleus &aNucleus, const G4double theAtomicMass, const G4double *massVec)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetKineticEnergy() const
const G4ParticleDefinition * GetDefinition() const
G4ThreeVector GetMomentum() const
void SetSide(const G4int sid)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(const G4double en)