70 std::vector<G4double>* G4mplIonisationModel::dedx0 = 0;
78 beta2lim(betalim*betalim),
79 bg2lim(beta2lim*(1.0 + beta2lim))
82 if(nmpl > 6) { nmpl = 6; }
83 else if(nmpl < 1) { nmpl = 1; }
85 chargeSquare = magCharge * magCharge;
86 dedxlim = 45.*nmpl*nmpl*
GeV*
cm2/
g;
121 if(!dedx0) { dedx0 =
new std::vector<G4double>; }
126 if(n < numOfCouples) { dedx0->resize(numOfCouples); }
129 for(
G4int i=0; i<numOfCouples; ++i) {
135 (*dedx0)[i] = pi_hbarc2_over_mc2*eDensity*nmpl*nmpl*
149 G4double tau = kineticEnergy / mass;
163 if(beta >= betalim) {
164 dedx = ComputeDEDXAhlen(material, bg2);
170 G4double dedx2 = ComputeDEDXAhlen(material, bg2lim);
175 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
199 if(nmpl > 1) k = 0.346;
202 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
204 dedx += 0.5 * k - B[nmpl];
210 deltam = twoln10 * x - cden;
211 if ( x < x1den ) deltam += aden * pow((x1den-x), mden);
212 dedx -= 0.5 * deltam;
216 dedx *= pi_hbarc2_over_mc2 * eDensity * nmpl * nmpl;
218 if (dedx < 0.0) dedx = 0;
243 G4double twomeanLoss = meanLoss + meanLoss;
245 if(twomeanLoss < siga) {
249 x = (loss - meanLoss)/siga;
254 }
while (0.0 > loss || loss > twomeanLoss);
273 * electronDensity * chargeSquare;
ThreeVector shoot(const G4int Ap, const G4int Af)
G4IonisParamMat * GetIonisation() const
G4double LowEnergyLimit() const
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double tmax, G4double length)
G4double GetAdensity() const
G4ParticleChangeForLoss * GetParticleChangeForLoss()
G4double GetKineticEnergy() const
G4double HighEnergyLimit() const
G4double GetX1density() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4mplIonisationModel(G4double mCharge, const G4String &nam="mplIonisation")
void SetHighEnergyLimit(G4double)
const G4MaterialCutsCouple * CurrentCouple() const
size_t GetTableSize() const
G4double GetElectronDensity() const
void SetParticle(const G4ParticleDefinition *p)
virtual ~G4mplIonisationModel()
G4double G4Log(G4double x)
static G4ProductionCutsTable * GetProductionCutsTable()
G4double GetX0density() const
G4double GetPDGMass() const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
G4double GetCdensity() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double GetMeanExcitationEnergy() const
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
void SetLowEnergyLimit(G4double)
G4double GetMdensity() const
virtual G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmax, G4double length, G4double meanLoss)
const G4Material * GetMaterial() const