80 twoln10(2.0*
G4Log(10.0)),
92 SetParticle(theElectron);
120 isInitialised =
true;
152 void G4BetheBlochModel::SetupParameters()
158 corrFactor = chargeSquare;
162 magMoment2 = magmom*magmom - 1.0;
166 if(spin == 0.0 && mass <
GeV) {x = 0.736*
GeV;}
167 else if(mass >
GeV) {
172 tlimit = 2.0/formfact;
195 if(cutEnergy < maxEnergy) {
197 G4double totEnergy = kineticEnergy + mass;
198 G4double energy2 = totEnergy*totEnergy;
199 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/energy2;
201 cross = 1.0/cutEnergy - 1.0/maxEnergy
202 - beta2*
G4Log(maxEnergy/cutEnergy)/tmax;
205 if( 0.5 == spin ) { cross += 0.5*(maxEnergy - cutEnergy)/energy2; }
232 (p,kineticEnergy,cutEnergy,maxEnergy);
247 (p,kineticEnergy,cutEnergy,maxEnergy);
272 - (1.0 + cutEnergy/tmax)*beta2;
275 G4double del = 0.5*cutEnergy/(kineticEnergy + mass);
296 if (dedx < 0.0) { dedx = 0.0; }
316 G4double e = preKinEnergy - eloss*0.5;
317 if(e < preKinEnergy*0.75) { e = preKinEnergy*0.75; }
323 G4double elossnew = eloss*qfactor + highOrder;
324 if(elossnew > preKinEnergy) { elossnew = preKinEnergy; }
325 else if(elossnew < eloss*0.5) { elossnew = eloss*0.5; }
346 if(minKinEnergy >= maxKinEnergy) {
return; }
348 G4double totEnergy = kineticEnergy + mass;
349 G4double etot2 = totEnergy*totEnergy;
350 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/etot2;
355 if( 0.5 == spin ) { fmax += 0.5*maxKinEnergy*maxKinEnergy/etot2; }
360 deltaKinEnergy = minKinEnergy*maxKinEnergy
361 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
363 f = 1.0 - beta2*deltaKinEnergy/tmax;
365 f1 = 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
374 G4double x = formfact*deltaKinEnergy;
381 grej *= (1.0 + magMoment2*(x2 - f1/
f)/(1.0 + x2));
384 G4cout <<
"### G4BetheBlochModel WARNING: grej= " << grej
386 <<
" Ekin(MeV)= " << kineticEnergy
387 <<
" delEkin(MeV)= " << deltaKinEnergy
409 if(cost > 1.0) { cost = 1.0; }
410 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
414 deltaDirection.
set(sint*cos(phi),sint*sin(phi), cost) ;
435 vdp->push_back(delta);
438 kineticEnergy -= deltaKinEnergy;
440 finalP = finalP.
unit();
455 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
void set(double x, double y, double z)
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
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 G4String & GetParticleName() const
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy)
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
Hep3Vector & rotateUz(const Hep3Vector &)
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 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
G4double GetPDGSpin() const
G4double GetMeanExcitationEnergy() const
virtual ~G4BetheBlochModel()
static G4Electron * Electron()
G4double GetPDGMagneticMoment() const
G4double GetChargeSquareRatio() const
void SetLowEnergyLimit(G4double)
void SetDeexcitationFlag(G4bool val)
G4double GetPDGCharge() const
virtual void SetParticleAndCharge(const G4ParticleDefinition *, G4double q2)
G4int GetLeptonNumber() const
G4ThreeVector GetMomentum() const
const G4Material * GetMaterial() const
G4int SelectRandomAtomNumber(const G4Material *)