51 const_cast<G4ParticleDefinition *>(originalIncident->
GetDefinition() ) );
63 currentParticle.SetKineticEnergy( ek );
65 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
66 G4double pp = currentParticle.GetMomentum().mag();
70 currentParticle.SetMomentum( momentum * (p/pp) );
77 currentParticle.SetKineticEnergy( ek );
79 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
80 pp = currentParticle.GetMomentum().mag();
84 currentParticle.SetMomentum( momentum * (p/pp) );
90 targetParticle.SetSide( -1 );
91 G4bool incidentHasChanged =
false;
92 G4bool targetHasChanged =
false;
93 G4bool quasiElastic =
false;
99 if( currentParticle.GetKineticEnergy() > cutOff )
100 InitialCollision(vec, vecLen, currentParticle, targetParticle,
101 incidentHasChanged, targetHasChanged);
104 originalIncident, originalTarget, modifiedOriginal,
105 targetNucleus, currentParticle, targetParticle,
106 incidentHasChanged, targetHasChanged, quasiElastic );
109 currentParticle, targetParticle,
110 incidentHasChanged );
112 delete originalTarget;
128 G4bool& incidentHasChanged,
135 std::vector<G4int> fsTypes;
146 partType = fsTypes[0];
147 if (partType !=
pro) {
148 targetHasChanged =
true;
159 partType = fsTypes[0];
160 if (partType !=
neu) {
161 targetHasChanged =
true;
172 fsTypes.erase(fsTypes.begin());
177 for(
G4int i=0; i < mult-1; ++i ) {
178 partType = fsTypes[i];
179 if (partType ==
pip) {
185 incidentHasChanged =
true;
187 partType = fsTypes[choose];
190 fsTypes.erase(fsTypes.begin()+choose);
197 for(
G4int i=0; i < mult-2; ++i ) {
198 partType = fsTypes[i];
202 if (partType >
pim && partType <
pro) rp->SetMayBeKilled(
false);
211 CheckQnums(vec, vecLen, currentParticle, targetParticle,
212 testCharge, testBaryon, testStrange);
void SetElement(G4int anIndex, Type *anElement)
G4double EvaporationEffects(G4double kineticEnergy)
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
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)
G4ParticleDefinition * GetDefinition() const
void Initialize(G4int items)
G4DynamicParticle * ReturnTargetParticle() const
G4ParticleDefinition * GetDefinition() const
void SetStatusChange(G4HadFinalStateStatus aS)
const G4ParticleDefinition * GetDefinition() const
G4ParticleDefinition * particleDef[18]
std::vector< G4int > GetFSPartTypesForPipP(G4int mult, G4double KE) const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetKineticEnergy() const
void SetEnergyChange(G4double anEnergy)
std::vector< G4int > GetFSPartTypesForPipN(G4int mult, G4double KE) const
G4double GetPDGMass() const
G4double Cinema(G4double kineticEnergy)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
void SetDefinition(G4ParticleDefinition *aParticleDefinition)
G4int GetMultiplicityT12(G4double KE) const
G4HadFinalState theParticleChange
void CheckQnums(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4double Q, G4double B, G4double S)
void SetMomentumChange(const G4ThreeVector &aV)
G4int GetMultiplicityT32(G4double KE) const