64 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
77 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
88 G4bool incidentHasChanged =
false;
89 G4bool targetHasChanged =
false;
90 G4bool quasiElastic =
false;
97 InitialCollision(vec, vecLen, currentParticle, targetParticle,
98 incidentHasChanged, targetHasChanged);
101 originalIncident, originalTarget, modifiedOriginal,
102 targetNucleus, currentParticle, targetParticle,
103 incidentHasChanged, targetHasChanged, quasiElastic);
106 currentParticle, targetParticle,
109 delete originalTarget;
125 G4bool& incidentHasChanged,
132 std::vector<G4int> fsTypes;
143 partType = fsTypes[0];
144 if (partType !=
pro) {
145 targetHasChanged =
true;
156 partType = fsTypes[0];
157 if (partType !=
neu) {
158 targetHasChanged =
true;
169 fsTypes.erase(fsTypes.begin());
174 for(
G4int i=0; i < mult-1; ++i ) {
175 partType = fsTypes[i];
176 if (partType ==
pim) {
182 incidentHasChanged =
true;
184 partType = fsTypes[choose];
188 fsTypes.erase(fsTypes.begin()+choose);
193 for(
G4int i=0; i < mult-2; ++i ) {
194 partType = fsTypes[i];
198 if (partType >
pim && partType <
pro) rp->SetMayBeKilled(
false);
207 CheckQnums(vec, vecLen, currentParticle, targetParticle,
208 testCharge, testBaryon, testStrange);
G4ParticleDefinition * GetDefinition() const
void SetElement(G4int anIndex, Type *anElement)
void Initialize(G4int items)
void SetStatusChange(G4HadFinalStateStatus aS)
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 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]
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4int GetMultiplicityT32(G4double KE) const
G4int GetMultiplicityT12(G4double KE) const
std::vector< G4int > GetFSPartTypesForPimP(G4int mult, G4double KE) const
std::vector< G4int > GetFSPartTypesForPimN(G4int mult, G4double KE) const
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)