68{
75 }
76
77
80
83 G4cout <<
"G4LEKaonMinusInelastic::ApplyYourself called" <<
G4endl;
85 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
88 }
89
93
94
95
98
100 ek += tkin;
101 currentParticle.SetKineticEnergy( ek );
103 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
104 G4double pp = currentParticle.GetMomentum().mag();
105 if (pp > 0.0) {
107 currentParticle.SetMomentum( momentum * (p/pp) );
108 }
109
110
112 ek -= tkin;
113 currentParticle.SetKineticEnergy( ek );
114 et = ek + amas;
115 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
116 pp = currentParticle.GetMomentum().mag();
117 if (pp > 0.0) {
119 currentParticle.SetMomentum( momentum * (p/pp) );
120 }
121
123
125 targetParticle.SetSide(-1);
126 G4bool incidentHasChanged =
false;
127 G4bool targetHasChanged =
false;
128 G4bool quasiElastic =
false;
132
134 if (currentParticle.GetKineticEnergy() > cutOff)
135 Cascade(vec, vecLen, originalIncident, currentParticle, targetParticle,
136 incidentHasChanged, targetHasChanged, quasiElastic);
137
139 modifiedOriginal, targetNucleus, currentParticle,
140 targetParticle, incidentHasChanged, targetHasChanged,
141 quasiElastic);
142
143 SetUpChange(vec, vecLen, currentParticle, targetParticle, incidentHasChanged);
144
146
147 delete originalTarget;
149}
G4ParticleDefinition * GetDefinition() const
void Initialize(G4int items)
void SetStatusChange(G4HadFinalStateStatus aS)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4HadFinalState theParticleChange
void CalculateMomenta(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
void DoIsotopeCounting(const G4HadProjectile *theProjectile, const G4Nucleus &aNucleus)
void SetUpChange(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
const G4String & GetName() const
G4double EvaporationEffects(G4double kineticEnergy)
G4double Cinema(G4double kineticEnergy)
G4DynamicParticle * ReturnTargetParticle() const
G4double GetPDGMass() const
const G4String & GetParticleName() const
void SetSide(const G4int sid)