52 const_cast<G4ParticleDefinition *>(originalIncident->
GetDefinition() ) );
64 currentParticle.SetKineticEnergy( ek );
66 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
67 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();
83 currentParticle.SetMomentum( momentum * (p/pp) );
89 targetParticle.SetSide( -1 );
90 G4bool incidentHasChanged =
false;
91 G4bool targetHasChanged =
false;
92 G4bool quasiElastic =
false;
98 if( currentParticle.GetKineticEnergy() > cutOff )
99 InitialCollision(vec, vecLen, currentParticle, targetParticle,
100 incidentHasChanged, targetHasChanged);
103 originalIncident, originalTarget, modifiedOriginal,
104 targetNucleus, currentParticle, targetParticle,
105 incidentHasChanged, targetHasChanged, quasiElastic);
108 currentParticle, targetParticle,
111 delete originalTarget;
127 G4bool& incidentHasChanged,
134 std::vector<G4int> fsTypes;
145 partType = fsTypes[0];
146 if (partType !=
pro) {
147 targetHasChanged =
true;
158 partType = fsTypes[0];
159 if (partType !=
neu) {
160 targetHasChanged =
true;
171 fsTypes.erase(fsTypes.begin());
176 for(
G4int i=0; i < mult-1; ++i ) {
177 partType = fsTypes[i];
178 if (partType ==
pim) {
184 incidentHasChanged =
true;
186 partType = fsTypes[choose];
190 fsTypes.erase(fsTypes.begin()+choose);
195 for(
G4int i=0; i < mult-2; ++i ) {
196 partType = fsTypes[i];
200 if (partType >
pim && partType <
pro) rp->SetMayBeKilled(
false);
209 CheckQnums(vec, vecLen, currentParticle, targetParticle,
210 testCharge, testBaryon, testStrange);