77 twoln10(
std::log(100.0)),
80 beta2lim(betalim*betalim),
81 bg2lim(beta2lim*(1.0 + beta2lim))
91 G4cout <<
"### Monopole ionisation model with d-electron production, Gmag= "
127 if(!
dedx0) {
dedx0 =
new std::vector<G4double>; }
132 if(
n < numOfCouples) {
dedx0->resize(numOfCouples); }
136 for(
G4int i=0; i<numOfCouples; ++i) {
192 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
214 if(
nmpl > 1) { k = 0.346; }
217 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
219 dedx += 0.5 * k -
B[
nmpl];
223 dedx -=
material->GetIonisation()->DensityCorrection(x);
245 G4double cross = (cutEnergy < maxEnergy)
278 if(minKinEnergy >= maxKinEnergy) {
return; }
285 G4double etot2 = totEnergy*totEnergy;
286 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/etot2;
290 G4double deltaKinEnergy = minKinEnergy*maxKinEnergy
291 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
294 G4double totMomentum = totEnergy*sqrt(beta2);
298 (deltaMomentum * totMomentum);
301 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
305 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost);
313 vdp->push_back(delta);
316 kineticEnergy -= deltaKinEnergy;
317 G4ThreeVector finalP = direction*totMomentum - deltaDirection*deltaMomentum;
318 finalP = finalP.
unit();
336 siga = std::sqrt(siga);
337 G4double twomeanLoss = meanLoss + meanLoss;
339 if(twomeanLoss < siga) {
343 x = (loss - meanLoss)/siga;
350 }
while (0.0 > loss || loss > twomeanLoss);
static const G4double emax
G4double B(G4double temperature)
G4double G4Log(G4double x)
static constexpr double twopi
static constexpr double cm2
static constexpr double eplus
static constexpr double g
static constexpr double GeV
static constexpr double pi
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4double GetMeanExcitationEnergy() const
const G4Material * GetMaterial() const
G4IonisParamMat * GetIonisation() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
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 G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
G4ParticleDefinition * theElectron
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
virtual G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *couple) override
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4mplIonisationWithDeltaModel(G4double mCharge, const G4String &nam="mplIonisationWithDelta")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
static std::vector< G4double > * dedx0
virtual G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double tcut, const G4double tmax, const G4double length, const G4double meanLoss) override
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) override
void SetParticle(const G4ParticleDefinition *p)
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, const G4double tcut, const G4double tmax, const G4double length) override
virtual ~G4mplIonisationWithDeltaModel()
G4double ComputeDEDXAhlen(const G4Material *material, G4double bg2, G4double cut)
G4double pi_hbarc2_over_mc2
const G4ParticleDefinition * monopole
G4ParticleChangeForLoss * fParticleChange
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy) override
ThreeVector shoot(const G4int Ap, const G4int Af)
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
float electron_Compton_length