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;
159 }
else if(theParticle ==
theKPlus) {
161 else theSecondary =
theK0L;
165 else theSecondary =
theK0L;
167 }
else if(theParticle ==
theK0S || theParticle ==
theK0L) {
181 }
else if(theParticle ==
theL) {
185 theSecondary =
theS0;
186 }
else if (x < 0.4) {
189 }
else if (x < 0.6) {
194 }
else if (x < 0.8) {
207 theSecondary =
theS0;
208 }
else if (x < 0.4) {
211 }
else if (x < 0.6) {
216 }
else if (x < 0.8) {
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);
303 if(erec < 0.0) erec = 0.0;
330 const G4int maxNumberOfLoops = 10000;
331 G4int loopCounter = 0;
334 }
while ( (t > tmax) &&
335 ++loopCounter < maxNumberOfLoops );
336 if ( loopCounter >= maxNumberOfLoops ) {
G4double lowEnergyRecoilLimit
static G4PionMinus * PionMinus()
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
static G4Lambda * Lambda()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
G4ParticleDefinition * theNeutron
void SetKineticEnergy(G4double aEnergy)
static G4AntiNeutron * AntiNeutron()
void SetMomentumChange(const G4ThreeVector &aV)
static constexpr double keV
G4ParticleDefinition * theSPlus
Float_t x1[n_points_granero]
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4XiZero * XiZero()
static G4AntiProton * AntiProton()
static G4OmegaMinus * OmegaMinus()
const G4String & GetParticleName() const
static G4PionPlus * PionPlus()
G4IonTable * GetIonTable() const
G4double GetTotalMomentum() const
G4ParticleDefinition * theASMinus
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
static G4SigmaZero * SigmaZero()
G4ParticleDefinition * theK0L
static G4Proton * Proton()
static G4XiMinus * XiMinus()
G4ParticleDefinition * theHe3
static G4KaonMinus * KaonMinus()
static G4AntiSigmaMinus * AntiSigmaMinus()
G4double GetPDGMass() const
static G4KaonPlus * KaonPlus()
G4ParticleDefinition * theL
G4ParticleDefinition * theANeutron
static G4SigmaMinus * SigmaMinus()
G4double G4Log(G4double x)
static G4Deuteron * Deuteron()
G4ParticleDefinition * thePiMinus
G4ParticleDefinition * theProton
static G4SigmaPlus * SigmaPlus()
void SetEnergyChange(G4double anEnergy)
static constexpr double TeV
static G4KaonZeroLong * KaonZeroLong()
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
static G4Pow * GetInstance()
G4ParticleDefinition * theOmega
G4double lowestEnergyLimit
G4double powA(G4double A, G4double y) const
G4ParticleDefinition * thePiZero
G4ParticleDefinition * theAOmega
G4ParticleDefinition * theAS0
static constexpr double twopi
G4double SampleT(G4double p, G4double A)
double A(double temperature)
G4ParticleDefinition * theXiMinus
G4ParticleDefinition * theA
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4ParticleDefinition * theAXi0
static G4AntiSigmaZero * AntiSigmaZero()
const G4LorentzVector & Get4Momentum() const
static G4AntiXiZero * AntiXiZero()
G4double GetKineticEnergy() const
G4ParticleDefinition * theKMinus
static G4KaonZeroShort * KaonZeroShort()
const G4ParticleDefinition * GetDefinition() const
G4ParticleDefinition * theXi0
static G4Triton * Triton()
static G4Neutron * Neutron()
static G4AntiSigmaPlus * AntiSigmaPlus()
G4ParticleDefinition * theK0S
G4ParticleDefinition * theKPlus
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4int GetPDGEncoding() const
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * theAntiL
static G4PionZero * PionZero()
virtual ~G4ChargeExchange()
Hep3Vector boostVector() const
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleDefinition * theD
void SetLocalEnergyDeposit(G4double aE)
G4ParticleDefinition * thePiPlus
Float_t x2[n_points_geant4]
G4ParticleDefinition * theT
G4ParticleDefinition * theSMinus
G4ParticleDefinition * theAProton
G4ParticleDefinition * theAXiMinus
static constexpr double GeV
G4ParticleDefinition * theS0
G4ParticleDefinition * theASPlus
G4HadFinalState theParticleChange
HepLorentzVector & boost(double, double, double)
void SetStatusChange(G4HadFinalStateStatus aS)
static G4AntiXiMinus * AntiXiMinus()
static G4AntiLambda * AntiLambda()