60 lowestEnergyLimit = 1.*MeV;
106 if(ekin <= lowestEnergyLimit ||
A < 3) {
115 G4cout <<
"G4ChargeExchange::DoIt: Incident particle plab="
116 << plab/GeV <<
" GeV/c "
117 <<
" ekin(MeV) = " << ekin/MeV <<
" "
127 <<
" PDGcode= " << projPDG <<
" on nucleus Z= " << Z
128 <<
" A= " <<
A <<
" N= " << N
143 G4bool theHyperon =
false;
147 if(theParticle == theProton) {
148 theSecondary = theNeutron;
150 }
else if(theParticle == theNeutron) {
151 theSecondary = theProton;
153 }
else if(theParticle == thePiPlus) {
154 theSecondary = thePiZero;
156 }
else if(theParticle == thePiMinus) {
157 theSecondary = thePiZero;
159 }
else if(theParticle == theKPlus) {
161 else theSecondary = theK0L;
163 }
else if(theParticle == theKMinus) {
165 else theSecondary = theK0L;
167 }
else if(theParticle == theK0S || theParticle == theK0L) {
169 theSecondary = theKPlus;
172 theSecondary = theKMinus;
175 }
else if(theParticle == theANeutron) {
176 theSecondary = theAProton;
178 }
else if(theParticle == theAProton) {
179 theSecondary = theANeutron;
181 }
else if(theParticle == theL) {
185 theSecondary = theS0;
186 }
else if (x < 0.4) {
187 theSecondary = theSPlus;
189 }
else if (x < 0.6) {
190 theSecondary = theProton;
194 }
else if (x < 0.8) {
195 theSecondary = theProton;
200 theSecondary = theNeutron;
201 theRecoil = theSPlus;
207 theSecondary = theS0;
208 }
else if (x < 0.4) {
209 theSecondary = theSMinus;
211 }
else if (x < 0.6) {
212 theSecondary = theNeutron;
216 }
else if (x < 0.8) {
217 theSecondary = theNeutron;
222 theSecondary = theProton;
223 theRecoil = theSMinus;
230 if (Z == 1 &&
A == 2) theDef = theD;
231 else if (Z == 1 &&
A == 3) theDef = theT;
232 else if (Z == 2 &&
A == 3) theDef = theHe3;
233 else if (Z == 2 &&
A == 4) theDef = theA;
242 if(theRecoil) { m21 += theRecoil->
GetPDGMass(); }
243 else { theRecoil = theDef; }
248 if(etot < m11 + m21) {
255 G4double e1 = 0.5*etot*(1.0 - (m21*m21 - m11*m11)/(etot*etot));
257 G4double ptot = std::sqrt(e1*e1 - m11*m11);
265 G4cout <<
"## G4ChargeExchange t= " << t <<
" tmax= " << tmax
266 <<
" ptot= " << ptot <<
G4endl;
271 if(std::abs(cost) > 1.0) cost = 1.0;
272 G4double sint = std::sqrt((1.0-cost)*(1.0+cost));
277 G4ThreeVector v1(sint*std::cos(phi),sint*std::sin(phi),cost);
290 G4double erec = std::max(nlv0.
e() - m21, 0.0);
313 aa = g4pow->
powZ(
A, 1.63);
314 bb = 14.5*g4pow->
powZ(
A, 0.66);
315 cc = 1.4*g4pow->
powZ(
A, 0.33);
318 aa = g4pow->
powZ(
A, 1.33);
319 bb = 60.*g4pow->
powZ(
A, 0.33);
320 cc = 0.4*g4pow->
powZ(
A, 0.40);
330 const G4int maxNumberOfLoops = 10000;
331 G4int loopCounter = 0;
334 }
while ( (t > tmax) &&
335 ++loopCounter < maxNumberOfLoops );
336 if ( loopCounter >= maxNumberOfLoops ) {
double A(double temperature)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
G4GLOB_DLL std::ostream G4cout
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
static G4AntiLambda * AntiLambda()
static G4AntiNeutron * AntiNeutron()
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4AntiProton * AntiProton()
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4AntiSigmaPlus * AntiSigmaPlus()
static G4AntiSigmaZero * AntiSigmaZero()
static G4AntiXiMinus * AntiXiMinus()
static G4AntiXiZero * AntiXiZero()
G4double SampleT(G4double p, G4int A)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus) override
~G4ChargeExchange() override
static G4Deuteron * Deuteron()
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(G4double aEnergy)
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
void SetLocalEnergyDeposit(G4double aE)
G4double GetTotalMomentum() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4HadFinalState theParticleChange
void SetMinEnergy(G4double anEnergy)
G4double GetRecoilEnergyThreshold() const
void SetMaxEnergy(const G4double anEnergy)
G4double GetMaxEnergy() const
static G4HadronicParameters * Instance()
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static G4KaonMinus * KaonMinus()
static G4KaonPlus * KaonPlus()
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
static G4Lambda * Lambda()
static G4Neutron * Neutron()
static G4double GetNuclearMass(const G4double A, const G4double Z)
static G4OmegaMinus * OmegaMinus()
G4double GetPDGMass() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
static G4PionZero * PionZero()
static G4Pow * GetInstance()
G4double powZ(G4int Z, G4double y) const
static G4Proton * Proton()
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
static G4SigmaZero * SigmaZero()
static G4Triton * Triton()
static G4XiMinus * XiMinus()
static G4XiZero * XiZero()