68{
75 }
76
77
78
81
84 G4cout <<
"G4LEPionPlusInelastic::ApplyYourself called" <<
G4endl;
86 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
89 }
94
95
96
99
101 ek += tkin;
102 currentParticle.SetKineticEnergy(ek);
104 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
105 G4double pp = currentParticle.GetMomentum().mag();
106 if (pp > 0.0) {
108 currentParticle.SetMomentum( momentum * (p/pp) );
109 }
110
111
113 ek -= tkin;
114 currentParticle.SetKineticEnergy(ek);
115 et = ek + amas;
116 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
117 pp = currentParticle.GetMomentum().mag();
118 if (pp > 0.0) {
120 currentParticle.SetMomentum( momentum * (p/pp) );
121 }
122
124
126 targetParticle.SetSide(-1);
127 G4bool incidentHasChanged =
false;
128 G4bool targetHasChanged =
false;
129 G4bool quasiElastic =
false;
133
135 if (currentParticle.GetKineticEnergy() > cutOff)
136 Cascade(vec, vecLen, originalIncident, currentParticle, targetParticle,
137 incidentHasChanged, targetHasChanged, quasiElastic);
138
140 originalIncident, originalTarget, modifiedOriginal,
141 targetNucleus, currentParticle, targetParticle,
142 incidentHasChanged, targetHasChanged, quasiElastic);
143
144 SetUpChange(vec, vecLen, currentParticle, targetParticle, incidentHasChanged);
145
147
148 delete originalTarget;
150}
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)