64{
71 }
72
73
76
79 G4cout <<
"G4PionMinusInelastic::ApplyYourself called" <<
G4endl;
81 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
84 }
89
90
91
94
96 ek += tkin;
97 currentParticle.SetKineticEnergy(ek);
99 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
100 G4double pp = currentParticle.GetMomentum().mag();
101 if (pp > 0.0) {
103 currentParticle.SetMomentum(momentum * (p/pp) );
104 }
105
106
108 ek -= tkin;
109 currentParticle.SetKineticEnergy(ek);
110 et = ek + amas;
111 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
112 pp = currentParticle.GetMomentum().mag();
113 if (pp > 0.0) {
115 currentParticle.SetMomentum( momentum * (p/pp) );
116 }
117
119
121 targetParticle.SetSide( -1 );
122 G4bool incidentHasChanged =
false;
123 G4bool targetHasChanged =
false;
124 G4bool quasiElastic =
false;
128
130 if (currentParticle.GetKineticEnergy() > cutOff)
131 Cascade(vec, vecLen, originalIncident, currentParticle, targetParticle,
132 incidentHasChanged, targetHasChanged, quasiElastic);
133
135 modifiedOriginal, targetNucleus, currentParticle,
136 targetParticle, incidentHasChanged, targetHasChanged,
137 quasiElastic);
138
139 SetUpChange(vec, vecLen, currentParticle, targetParticle, incidentHasChanged);
140
142
143 delete originalTarget;
145}
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)