69std::vector<G4double>* G4mplIonisationModel::dedx0 =
nullptr;
77 beta2lim(betalim*betalim),
78 bg2lim(beta2lim*(1.0 + beta2lim))
80 nmpl =
G4int(abs(magCharge) * 2 * fine_structure_const + 0.5);
81 if(nmpl > 6) { nmpl = 6; }
82 else if(nmpl < 1) { nmpl = 1; }
83 pi_hbarc2_over_mc2 = pi * hbarc * hbarc / electron_mass_c2;
84 chargeSquare = magCharge * magCharge;
85 dedxlim = 45.*nmpl*nmpl*GeV*cm2/g;
86 fParticleChange =
nullptr;
105 std::min(
LowEnergyLimit(),0.1*mass*(1./sqrt(1. - betalow*betalow) - 1.));
120 if(!dedx0) { dedx0 =
new std::vector<G4double>; }
124 G4int n = dedx0->size();
125 if(n < numOfCouples) { dedx0->resize(numOfCouples); }
130 for(
G4int i=0; i<numOfCouples; ++i) {
135 G4double vF2 = 2*electron_Compton_length*g4calc->
A13(3.*pi*pi*eDensity);
136 (*dedx0)[i] = pi_hbarc2_over_mc2*eDensity*nmpl*nmpl*
137 (
G4Log(vF2/fine_structure_const) - 0.5)/vF2;
150 G4double tau = kineticEnergy / mass;
164 if(beta >= betalim) {
165 dedx = ComputeDEDXAhlen(material, bg2);
171 G4double dedx2 = ComputeDEDXAhlen(material, bg2lim);
176 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
196 G4double dedx = log(2.0 * electron_mass_c2 * bg2 / eexc) - 0.5;
200 if(nmpl > 1) k = 0.346;
203 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
205 dedx += 0.5 * k -
B[nmpl];
211 deltam = twoln10 * x - cden;
212 if ( x < x1den ) deltam += aden * pow((x1den-x), mden);
213 dedx -= 0.5 * deltam;
217 dedx *= pi_hbarc2_over_mc2 * eDensity * nmpl * nmpl;
219 if (dedx < 0.0) dedx = 0.;
244 G4double twomeanLoss = meanLoss + meanLoss;
246 if(twomeanLoss < siga) {
250 x = (loss - meanLoss)/siga;
255 loss = G4RandGauss::shoot(meanLoss,siga);
257 }
while (0.0 > loss || loss > twomeanLoss);
274 G4double invbeta2 = (gam*gam)/(tau * (tau+2.0));
275 siga = (invbeta2 - 0.5) * twopi_mc2_rcl2 * tmax * length
276 * electronDensity * chargeSquare;
double B(double temperature)
G4double G4Log(G4double x)
G4double GetKineticEnergy() const
G4double GetMdensity() const
G4double GetX1density() const
G4double GetX0density() const
G4double GetCdensity() const
G4double GetMeanExcitationEnergy() const
G4double GetAdensity() const
const G4Material * GetMaterial() const
G4IonisParamMat * GetIonisation() const
G4double GetElectronDensity() const
G4double GetPDGMass() const
static G4Pow * GetInstance()
G4double A13(G4double A) const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
std::size_t GetTableSize() const
static G4ProductionCutsTable * GetProductionCutsTable()
void SetHighEnergyLimit(G4double)
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
void SetLowEnergyLimit(G4double)
const G4MaterialCutsCouple * CurrentCouple() const
G4ParticleChangeForLoss * GetParticleChangeForLoss()
virtual ~G4mplIonisationModel()
virtual G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmax, G4double length, G4double meanLoss) override
G4mplIonisationModel(G4double mCharge, const G4String &nam="mplIonisation")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
void SetParticle(const G4ParticleDefinition *p)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double tmax, G4double length) override