78 twoln10(2.0*log(10.0)),
90 SetParticle(theElectron);
118 isInitialised =
true;
147void G4BetheBlochModel::SetupParameters()
153 corrFactor = chargeSquare;
154 ratio = electron_mass_c2/mass;
157 magMoment2 = magmom*magmom - 1.0;
161 if(spin == 0.0 && mass < GeV) {x = 0.736*GeV;}
162 else if(mass > GeV) {
163 x /= nist->
GetZ13(mass/proton_mass_c2);
166 formfact = 2.0*electron_mass_c2/(x*x);
167 tlimit = 2.0/formfact;
181 G4double maxEnergy = min(tmax,maxKinEnergy);
182 if(cutEnergy < maxEnergy) {
184 G4double totEnergy = kineticEnergy + mass;
185 G4double energy2 = totEnergy*totEnergy;
186 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/energy2;
188 cross = 1.0/cutEnergy - 1.0/maxEnergy
189 - beta2*log(maxEnergy/cutEnergy)/tmax;
192 if( 0.5 == spin ) { cross += 0.5*(maxEnergy - cutEnergy)/energy2; }
200 cross *= twopi_mc2_rcl2*chargeSquare/beta2;
219 (p,kineticEnergy,cutEnergy,maxEnergy);
234 (p,kineticEnergy,cutEnergy,maxEnergy);
246 G4double cutEnergy = std::min(cut,tmax);
258 G4double dedx = log(2.0*electron_mass_c2*bg2*cutEnergy/eexc2)
259 - (1.0 + cutEnergy/tmax)*beta2;
262 G4double del = 0.5*cutEnergy/(kineticEnergy + mass);
274 dedx *= twopi_mc2_rcl2*chargeSquare*eDensity/beta2;
283 if (dedx < 0.0) { dedx = 0.0; }
303 G4double e = preKinEnergy - eloss*0.5;
304 if(e < preKinEnergy*0.75) { e = preKinEnergy*0.75; }
310 G4double elossnew = eloss*qfactor + highOrder;
311 if(elossnew > preKinEnergy) { elossnew = preKinEnergy; }
312 else if(elossnew < eloss*0.5) { elossnew = eloss*0.5; }
331 G4double maxKinEnergy = std::min(maxEnergy,tmax);
332 if(minKinEnergy >= maxKinEnergy) {
return; }
334 G4double totEnergy = kineticEnergy + mass;
335 G4double etot2 = totEnergy*totEnergy;
336 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/etot2;
341 if( 0.5 == spin ) { fmax += 0.5*maxKinEnergy*maxKinEnergy/etot2; }
346 deltaKinEnergy = minKinEnergy*maxKinEnergy
347 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
349 f = 1.0 - beta2*deltaKinEnergy/tmax;
351 f1 = 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
360 G4double x = formfact*deltaKinEnergy;
366 G4double x2 = 0.5*electron_mass_c2*deltaKinEnergy/(mass*mass);
367 grej *= (1.0 + magMoment2*(x2 - f1/f)/(1.0 + x2));
370 G4cout <<
"### G4BetheBlochModel WARNING: grej= " << grej
372 <<
" Ekin(MeV)= " << kineticEnergy
373 <<
" delEkin(MeV)= " << deltaKinEnergy
380 G4double totMomentum = totEnergy*sqrt(beta2);
382 sqrt(deltaKinEnergy * (deltaKinEnergy + 2.0*electron_mass_c2));
383 G4double cost = deltaKinEnergy * (totEnergy + electron_mass_c2) /
384 (deltaMomentum * totMomentum);
401 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
406 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost);
412 deltaDirection,deltaKinEnergy);
414 vdp->push_back(delta);
417 kineticEnergy -= deltaKinEnergy;
418 G4ThreeVector finalP = direction*totMomentum - deltaDirection*deltaMomentum;
419 finalP = finalP.
unit();
433 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
434 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
435 return std::min(tmax,tlimit);
G4DLLIMPORT std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
virtual G4double GetParticleCharge(const G4ParticleDefinition *p, const G4Material *mat, G4double kineticEnergy)
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual ~G4BetheBlochModel()
G4double GetChargeSquareRatio() const
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual void CorrectionsAlongStep(const G4MaterialCutsCouple *couple, const G4DynamicParticle *dp, G4double &eloss, G4double &, G4double length)
G4BetheBlochModel(const G4ParticleDefinition *p=0, const G4String &nam="BetheBloch")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4double EffectiveChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double IonHighOrderCorrections(const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double kineticEnergy)
G4double IonBarkasCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double HighOrderCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4double cutEnergy)
G4double ShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetParticleCharge(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double EffectiveChargeCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetMeanExcitationEnergy() const
G4double DensityCorrection(G4double x)
static G4LossTableManager * Instance()
G4EmCorrections * EmCorrections()
const G4Material * GetMaterial() const
G4IonisParamMat * GetIonisation() const
G4double GetElectronDensity() const
G4double GetZ13(G4double Z)
static G4NistManager * Instance()
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
G4double GetPDGMagneticMoment() const
G4double GetPDGMass() const
G4int GetLeptonNumber() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
G4double GetPDGSpin() const
virtual void SetParticleAndCharge(const G4ParticleDefinition *, G4double q2)
G4VEmFluctuationModel * GetModelOfFluctuations()
void SetLowEnergyLimit(G4double)
void SetDeexcitationFlag(G4bool val)
G4ParticleChangeForLoss * GetParticleChangeForLoss()