69 G4double G4MuBetheBlochModel::xgi[]={ 0.0199, 0.1017, 0.2372, 0.4083, 0.5917,
 
   70                                       0.7628, 0.8983, 0.9801 };
 
   72 G4double G4MuBetheBlochModel::wgi[]={ 0.0506, 0.1112, 0.1569, 0.1813, 0.1813,
 
   73                                       0.1569, 0.1112, 0.0506 };
 
   83   limitKinEnergy(100.*
keV),
 
   84   logLimitKinEnergy(
G4Log(limitKinEnergy)),
 
   85   twoln10(2.0*
G4Log(10.0)),
 
   92   fParticleChange = 
nullptr;
 
   96   mass = massSquare = ratio = 1.0;
 
   98   if(p) { SetParticle(p); }
 
  121                   (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
 
  130   if(p) { SetParticle(p); }
 
  145   if(cutEnergy < maxEnergy) {
 
  147     G4double totEnergy = kineticEnergy + mass;
 
  148     G4double energy2   = totEnergy*totEnergy;
 
  149     G4double beta2     = kineticEnergy*(kineticEnergy + 2.0*mass)/energy2;
 
  151     cross = 1.0/cutEnergy - 1.0/maxEnergy - beta2*
G4Log(maxEnergy/cutEnergy)/tmax
 
  152           + 0.5*(maxEnergy - cutEnergy)/energy2;
 
  155     if (maxEnergy > limitKinEnergy) {
 
  159       G4double logstep = logtmax - logtmin;
 
  162       for (
G4int ll=0; ll<8; ll++)
 
  166         G4double a3 = 
G4Log(4.0*totEnergy*(totEnergy - ep)/massSquare);
 
  167         dcross += wgi[ll]*(1.0/ep - beta2/tmax + 0.5*ep/energy2)*a1*(a3 - a1);
 
  170       cross += dcross*logstep*alphaprime;
 
  193                                          (p,kineticEnergy,cutEnergy,maxEnergy);
 
  208                                          (p,kineticEnergy,cutEnergy,maxEnergy);
 
  232                  -(1.0 + cutEnergy/tmax)*beta2;
 
  234   G4double totEnergy = kineticEnergy + mass;
 
  235   G4double del = 0.5*cutEnergy/totEnergy;
 
  247   if (dedx < 0.0) dedx = 0.0 ;
 
  250   if (cutEnergy > limitKinEnergy) {
 
  253     G4double logstep = logtmax - logLimitKinEnergy;
 
  255     G4double ftot2= 0.5/(totEnergy*totEnergy);
 
  257     for (
G4int ll=0; ll<8; ll++)
 
  261       G4double a3 = 
G4Log(4.0*totEnergy*(totEnergy - ep)/massSquare);
 
  262       dloss += wgi[ll]*(1.0 - beta2*ep/tmax + ep*ep*ftot2)*a1*(a3 - a1);
 
  264     dedx += dloss*logstep*alphaprime;
 
  285   if(minKinEnergy >= maxKinEnergy) { 
return; }
 
  288   G4double totEnergy     = kineticEnergy + mass;
 
  289   G4double etot2         = totEnergy*totEnergy;
 
  290   G4double beta2         = kineticEnergy*(kineticEnergy + 2.0*mass)/etot2;
 
  293   if(tmax > limitKinEnergy) {
 
  295     grej  += alphaprime*a0*
a0;
 
  303     deltaKinEnergy = minKinEnergy*maxKinEnergy
 
  304                     /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
 
  307     f = 1.0 - beta2*deltaKinEnergy/tmax 
 
  308             + 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
 
  310     if(deltaKinEnergy > limitKinEnergy) {
 
  312       G4double a3 = 
G4Log(4.0*totEnergy*(totEnergy - deltaKinEnergy)/massSquare);
 
  313       f *= (1. + alphaprime*a1*(a3 - a1));
 
  317         G4cout << 
"G4MuBetheBlochModel::SampleSecondary Warning! " 
  318                << 
"Majorant " << grej << 
" < " 
  319                << f << 
" for edelta= " << deltaKinEnergy
 
  320                << 
" tmin= " << minKinEnergy << 
" max= " << maxKinEnergy
 
  328   G4double totalMomentum = totEnergy*sqrt(beta2);
 
  330                                    (deltaMomentum * totalMomentum);
 
  332   G4double sint = sqrt(1.0 - cost*cost);
 
  336   G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost) ;
 
  341   kineticEnergy -= deltaKinEnergy;
 
  342   G4ThreeVector dir = totalMomentum*direction - deltaMomentum*deltaDirection;
 
  343   direction = dir.
unit();
 
  349                                                  deltaDirection,deltaKinEnergy);
 
  350   vdp->push_back(delta);
 
G4double MaxSecondaryKinEnergy(const G4DynamicParticle *dynParticle)
 
G4IonisParamMat * GetIonisation() const 
 
G4double HighOrderCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4double cutEnergy)
 
static G4LossTableManager * Instance()
 
G4ParticleChangeForLoss * GetParticleChangeForLoss()
 
virtual G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *) override
 
G4MuBetheBlochModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="MuBetheBloch")
 
G4double GetKineticEnergy() const 
 
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
 
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
 
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) override
 
static constexpr double twopi
 
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
 
G4GLOB_DLL std::ostream G4cout
 
G4double GetElectronDensity() const 
 
G4EmCorrections * EmCorrections()
 
const G4ThreeVector & GetMomentumDirection() const 
 
Hep3Vector & rotateUz(const Hep3Vector &)
 
void SetProposedKineticEnergy(G4double proposedKinEnergy)
 
void SetProposedMomentumDirection(const G4ThreeVector &dir)
 
G4double G4Log(G4double x)
 
G4double G4Exp(G4double initial_x)
Exponential Function double precision. 
 
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy) override
 
G4double ShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
G4double DensityCorrection(G4double x)
 
T max(const T t1, const T t2)
brief Return the largest of the two arguments 
 
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
 
T min(const T t1, const T t2)
brief Return the smallest of the two arguments 
 
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
 
G4double GetMeanExcitationEnergy() const 
 
static G4Electron * Electron()
 
static constexpr double keV
 
virtual ~G4MuBetheBlochModel()
 
const G4Material * GetMaterial() const