69 0.7628, 0.8983, 0.9801 };
72 0.1569, 0.1112, 0.0506 };
82 logLimitKinEnergy(
G4Log(limitKinEnergy)),
83 twoln10(2.0*
G4Log(10.0)),
132 if(cutEnergy < maxEnergy) {
135 G4double energy2 = totEnergy*totEnergy;
136 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/energy2;
138 cross = 1.0/cutEnergy - 1.0/maxEnergy - beta2*
G4Log(maxEnergy/cutEnergy)/tmax
139 + 0.5*(maxEnergy - cutEnergy)/energy2;
146 G4double logstep = logtmax - logtmin;
149 for (
G4int ll=0; ll<8; ++ll)
154 dcross +=
wgi[ll]*(1.0/ep - beta2/tmax + 0.5*ep/energy2)*a1*(a3 - a1);
178 (p,kineticEnergy,cutEnergy,maxEnergy);
193 (p,kineticEnergy,cutEnergy,maxEnergy);
217 -(1.0 + cutEnergy/tmax)*beta2;
220 G4double del = 0.5*cutEnergy/totEnergy;
225 dedx -=
material->GetIonisation()->DensityCorrection(x);
237 G4double ftot2= 0.5/(totEnergy*totEnergy);
239 for (
G4int ll=0; ll<8; ll++)
244 dloss +=
wgi[ll]*(1.0 - beta2*ep/tmax + ep*ep*ftot2)*a1*(a3 - a1);
267 if(minKinEnergy >= maxKinEnergy) {
return; }
271 G4double etot2 = totEnergy*totEnergy;
272 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/etot2;
285 deltaKinEnergy = minKinEnergy*maxKinEnergy
286 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
288 f = 1.0 - beta2*deltaKinEnergy/tmax
289 + 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
298 G4cout <<
"G4MuBetheBlochModel::SampleSecondary Warning! "
299 <<
"Majorant " << grej <<
" < "
300 << f <<
" for edelta= " << deltaKinEnergy
301 <<
" tmin= " << minKinEnergy <<
" max= " << maxKinEnergy
309 G4double totalMomentum = totEnergy*sqrt(beta2);
311 (deltaMomentum * totalMomentum);
313 G4double sint = std::sqrt(1.0 - cost*cost);
317 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost) ;
322 kineticEnergy -= deltaKinEnergy;
323 G4ThreeVector dir = totalMomentum*direction - deltaMomentum*deltaDirection;
324 direction = dir.
unit();
330 deltaDirection,deltaKinEnergy);
331 vdp->push_back(delta);
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
static constexpr double twopi
static constexpr double keV
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4double HighOrderCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4double cutEnergy)
G4double ShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetMeanExcitationEnergy() const
static G4LossTableManager * Instance()
G4EmCorrections * EmCorrections()
const G4Material * GetMaterial() const
G4IonisParamMat * GetIonisation() const
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy) override
G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) override
G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *) override
G4double logLimitKinEnergy
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
G4ParticleDefinition * theElectron
void SetParticle(const G4ParticleDefinition *p)
G4MuBetheBlochModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="MuBetheBloch")
G4ParticleChangeForLoss * fParticleChange
G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
G4double MaxSecondaryKinEnergy(const G4DynamicParticle *dynParticle)
G4ParticleChangeForLoss * GetParticleChangeForLoss()
static constexpr double twopi
static constexpr double twopi_mc2_rcl2
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