73 beta2lim(betalim*betalim),
74 bg2lim(beta2lim*(1.0 + beta2lim))
76 nmpl =
G4int(abs(magCharge) * 2 * fine_structure_const + 0.5);
77 if(nmpl > 6) { nmpl = 6; }
78 else if(nmpl < 1) { nmpl = 1; }
79 pi_hbarc2_over_mc2 = pi * hbarc * hbarc / electron_mass_c2;
80 chargeSquare = magCharge * magCharge;
81 dedxlim = 45.*nmpl*nmpl*GeV*cm2/g;
99 std::min(
LowEnergyLimit(),0.1*mass*(1/sqrt(1 - betalow*betalow) - 1));
123 G4double tau = kineticEnergy / mass;
136 if(beta >= betalim) {
137 dedx = ComputeDEDXAhlen(material, bg2);
142 G4double dedx2 = ComputeDEDXAhlen(material, bg2lim);
147 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
167 G4double dedx = log(2.0 * electron_mass_c2 * bg2 / eexc) - 0.5;
171 if(nmpl > 1) k = 0.346;
174 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
176 dedx += 0.5 * k - B[nmpl];
182 deltam = twoln10 * x - cden;
183 if ( x < x1den ) deltam += aden * pow((x1den-x), mden);
184 dedx -= 0.5 * deltam;
188 dedx *= pi_hbarc2_over_mc2 * eDensity * nmpl * nmpl;
190 if (dedx < 0.0) dedx = 0;
215 G4double twomeanLoss = meanLoss + meanLoss;
217 if(twomeanLoss < siga) {
221 x = (loss - meanLoss)/siga;
225 loss = G4RandGauss::shoot(meanLoss,siga);
226 }
while (0.0 > loss || loss > twomeanLoss);
243 G4double invbeta2 = (gam*gam)/(tau * (tau+2.0));
244 siga = (invbeta2 - 0.5) * twopi_mc2_rcl2 * tmax * length
245 * electronDensity * chargeSquare;
G4double GetKineticEnergy() const
G4double GetMdensity() const
G4double GetX1density() const
G4double GetX0density() const
G4double GetCdensity() const
G4double GetMeanExcitationEnergy() const
G4double GetAdensity() const
G4double GetDensity() const
G4IonisParamMat * GetIonisation() const
G4double GetElectronDensity() const
G4double GetPDGMass() const
void SetHighEnergyLimit(G4double)
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
void SetLowEnergyLimit(G4double)
G4ParticleChangeForLoss * GetParticleChangeForLoss()
virtual ~G4mplIonisationModel()
G4mplIonisationModel(G4double mCharge, const G4String &nam="mplIonisation")
virtual G4double SampleFluctuations(const G4Material *, const G4DynamicParticle *, G4double &tmax, G4double &length, G4double &meanLoss)
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double &tmax, G4double &length)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
void SetParticle(const G4ParticleDefinition *p)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)