173 formfact = 2.0*electron_mass_c2/(x*x);
197 if(cutEnergy < maxEnergy) {
200 G4double energy2 = totEnergy*totEnergy;
201 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/energy2;
203 cross = (maxEnergy - cutEnergy)/(cutEnergy*maxEnergy)
204 - beta2*
G4Log(maxEnergy/cutEnergy)/tmax;
207 if( 0.5 ==
spin ) { cross += 0.5*(maxEnergy - cutEnergy)/energy2; }
234 (p,kineticEnergy,cutEnergy,maxEnergy);
249 (p,kineticEnergy,cutEnergy,maxEnergy);
273 G4double dedx =
G4Log(2.0*electron_mass_c2*bg2*cutEnergy/eexc2)
274 - (1.0 + cutEnergy/tmax)*beta2;
298 if (dedx < 0.0) { dedx = 0.0; }
318 G4double e = preKinEnergy - eloss*0.5;
319 if(e < preKinEnergy*0.75) { e = preKinEnergy*0.75; }
325 G4double elossnew = eloss*qfactor + highOrder;
326 if(elossnew > preKinEnergy) { elossnew = preKinEnergy; }
327 else if(elossnew < eloss*0.5) { elossnew = eloss*0.5; }
348 if(minKinEnergy >= maxKinEnergy) {
return; }
354 G4double etot2 = totEnergy*totEnergy;
355 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/etot2;
360 if( 0.5 ==
spin ) { fmax += 0.5*maxKinEnergy*maxKinEnergy/etot2; }
365 deltaKinEnergy = minKinEnergy*maxKinEnergy
366 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
368 f = 1.0 - beta2*deltaKinEnergy/tmax;
370 f1 = 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
385 G4double x2 = 0.5*electron_mass_c2*deltaKinEnergy/(mass*
mass);
386 grej *= (1.0 +
magMoment2*(x2 - f1/f)/(1.0 + x2));
389 G4cout <<
"### G4BetheBlochModel WARNING: grej= " << grej
391 <<
" Ekin(MeV)= " << kineticEnergy
392 <<
" delEkin(MeV)= " << deltaKinEnergy
411 sqrt(deltaKinEnergy * (deltaKinEnergy + 2.0*electron_mass_c2));
412 G4double cost = deltaKinEnergy * (totEnergy + electron_mass_c2) /
414 if(cost > 1.0) { cost = 1.0; }
415 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
419 deltaDirection.set(sint*cos(phi),sint*sin(phi), cost) ;
437 vdp->push_back(delta);
440 kineticEnergy -= deltaKinEnergy;
442 finalP = finalP.unit();
456 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
G4IonisParamMat * GetIonisation() const
G4double HighOrderCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4double cutEnergy)
static G4LossTableManager * Instance()
G4ParticleChangeForLoss * GetParticleChangeForLoss()
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
G4double EffectiveChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetZ13(G4double Z)
G4VEmAngularDistribution * GetAngularDistribution()
G4double GetParticleCharge(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double EffectiveChargeCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4ParticleDefinition * GetDefinition() const
G4VEmFluctuationModel * GetModelOfFluctuations()
static G4NistManager * Instance()
const G4ParticleDefinition * particle
const G4String & GetParticleName() const
static const G4double bg2lim
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy)
void SetGenericIon(const G4ParticleDefinition *p)
virtual G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *couple)
G4double GetTotalMomentum() const
G4BetheBlochModel(const G4ParticleDefinition *p=0, const G4String &nam="BetheBloch")
G4GLOB_DLL std::ostream G4cout
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy)
virtual G4double GetParticleCharge(const G4ParticleDefinition *p, const G4Material *mat, G4double kineticEnergy)
virtual G4ThreeVector & SampleDirection(const G4DynamicParticle *dp, G4double finalTotalEnergy, G4int Z, const G4Material *)=0
G4double GetElectronDensity() const
G4bool UseAngularGeneratorFlag() const
G4double IonBarkasCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4EmCorrections * EmCorrections()
const G4ThreeVector & GetMomentumDirection() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
G4double IonHighOrderCorrections(const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double kineticEnergy)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
G4double G4Log(G4double x)
virtual void CorrectionsAlongStep(const G4MaterialCutsCouple *couple, const G4DynamicParticle *dp, G4double &eloss, G4double &, G4double length)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4double ShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double DensityCorrection(G4double x)
G4double GetPDGMass() const
void SetParticle(const G4ParticleDefinition *p)
void SetAngularDistribution(G4VEmAngularDistribution *)
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4ParticleChangeForLoss * fParticleChange
G4double GetPDGSpin() const
G4double GetMeanExcitationEnergy() const
virtual ~G4BetheBlochModel()
static G4Electron * Electron()
static const G4double twoln10
G4double GetPDGMagneticMoment() const
G4ParticleDefinition * theElectron
G4double GetChargeSquareRatio() const
void SetLowEnergyLimit(G4double)
void SetDeexcitationFlag(G4bool val)
static const double eplus
G4double GetPDGCharge() const
virtual void SetParticleAndCharge(const G4ParticleDefinition *, G4double q2)
G4int GetLeptonNumber() const
G4ThreeVector GetMomentum() const
const G4Material * GetMaterial() const
G4int SelectRandomAtomNumber(const G4Material *)