76 beta2lim(betalim*betalim),
77 bg2lim(beta2lim*(1.0 + beta2lim))
79 nmpl =
G4int(abs(magCharge) * 2 * fine_structure_const + 0.5);
80 if(nmpl > 6) { nmpl = 6; }
81 else if(nmpl < 1) { nmpl = 1; }
82 pi_hbarc2_over_mc2 = pi * hbarc * hbarc / electron_mass_c2;
83 chargeSquare = magCharge * magCharge;
84 dedxlim = 45.*nmpl*nmpl*GeV*cm2/g;
87 G4cout <<
"### Monopole ionisation model with d-electron production, Gmag= "
88 << magCharge/eplus <<
G4endl;
105 std::min(
LowEnergyLimit(),0.1*mass*(1/sqrt(1 - betalow*betalow) - 1));
132 G4double cutEnergy = std::min(tmax, maxEnergy);
133 G4double tau = kineticEnergy / mass;
146 if(beta >= betalim) {
147 dedx = ComputeDEDXAhlen(material, bg2, cutEnergy);
152 G4double dedx2 = ComputeDEDXAhlen(material, bg2lim, cutEnergy);
157 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
166G4mplIonisationWithDeltaModel::ComputeDEDXAhlen(
const G4Material* material,
175 0.5*(log(2.0 * electron_mass_c2 * bg2*cutEnergy / (eexc*eexc)) - 1.0);
179 if(nmpl > 1) { k = 0.346; }
182 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
184 dedx += 0.5 * k - B[nmpl];
191 dedx *= pi_hbarc2_over_mc2 * eDensity * nmpl * nmpl;
193 if (dedx < 0.0) { dedx = 0; }
209 G4double maxEnergy = min(tmax,maxKinEnergy);
210 if(cutEnergy < maxEnergy) {
211 cross = (1.0/cutEnergy - 1.0/maxEnergy)*twopi_mc2_rcl2*chargeSquare;
243 G4double maxKinEnergy = std::min(maxEnergy,tmax);
244 if(minKinEnergy >= maxKinEnergy) {
return; }
250 G4double totEnergy = kineticEnergy + mass;
251 G4double etot2 = totEnergy*totEnergy;
252 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/etot2;
256 G4double deltaKinEnergy = minKinEnergy*maxKinEnergy
257 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
260 G4double totMomentum = totEnergy*sqrt(beta2);
262 sqrt(deltaKinEnergy * (deltaKinEnergy + 2.0*electron_mass_c2));
263 G4double cost = deltaKinEnergy * (totEnergy + electron_mass_c2) /
264 (deltaMomentum * totMomentum);
265 if(cost > 1.0) { cost = 1.0; }
267 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
271 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost);
279 vdp->push_back(delta);
282 kineticEnergy -= deltaKinEnergy;
283 G4ThreeVector finalP = direction*totMomentum - deltaDirection*deltaMomentum;
284 finalP = finalP.
unit();
302 G4double twomeanLoss = meanLoss + meanLoss;
304 if(twomeanLoss < siga) {
308 x = (loss - meanLoss)/siga;
312 loss = G4RandGauss::shoot(meanLoss,siga);
313 }
while (0.0 > loss || loss > twomeanLoss);
331 G4double invbeta2 = (gam*gam)/(tau * (tau+2.0));
332 siga = (invbeta2 - 0.5) * twopi_mc2_rcl2 * tmax * length
333 * electronDensity * chargeSquare;
345 return 2.0*electron_mass_c2*tau*(tau + 2.);
G4DLLIMPORT std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4double GetMeanExcitationEnergy() const
G4double DensityCorrection(G4double x)
G4double GetDensity() const
G4IonisParamMat * GetIonisation() const
G4double GetElectronDensity() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
G4double GetPDGMass() const
void SetHighEnergyLimit(G4double)
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
void SetLowEnergyLimit(G4double)
G4ParticleChangeForLoss * GetParticleChangeForLoss()
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double &tmax, G4double &length)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy)
G4mplIonisationWithDeltaModel(G4double mCharge, const G4String &nam="mplIonisationWithDelta")
void SetParticle(const G4ParticleDefinition *p)
virtual ~G4mplIonisationWithDeltaModel()
virtual G4double SampleFluctuations(const G4Material *, const G4DynamicParticle *, G4double &tmax, G4double &length, G4double &meanLoss)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)