79 0.5917, 0.7628, 0.8983, 0.9801 };
82 0.1813, 0.1569, 0.1112, 0.0506 };
95 scatOffElectron(false),
99 use_completescreening(false)
129 preS1 = 1./(184.15*184.15);
245 if(cut == 0.0) {
return 0.0; }
283 for(
G4int l=0; l<
n; l++) {
285 for(
G4int i=0; i<8; i++) {
318 if(cut >= tmax) {
return 0.0; }
350 for(
G4int l=0; l<
n; l++) {
352 for(
G4int i=0; i<8; i++) {
387 else if (sprime>sqrt(2.)*s1) {
389 xiLPM = 1+h-0.08*(1-h)*(1-
sqr(1-h))/logTS1;
402 if (s0<=s1)
xiLPM = 2.;
403 else if ( (s1<s0) && (s0<=1) ) {
xiLPM = 1. +
G4Log(s0)/logS1; }
414 phiLPM = 6.*s0 - 18.84955592153876*s2 + 39.47841760435743*s3
415 - 57.69873135166053*s4;
416 gLPM = 37.69911184307752*s2 - 236.8705056261446*s3 + 807.7822389*s4;
418 else if (s0<1.9516) {
422 +s3/(0.623+0.795*s0+0.658*s2));
423 if (s0<0.415827397755) {
425 G4double psiLPM = 1-
G4Exp(-4*s0-8*s2/(1+3.936*s0+4.97*s2-0.05*s3+7.50*s4));
430 G4double pre = -0.16072300849123999 + s0*3.7550300067531581 + s2*-1.7981383069010097
431 + s3*0.67282686077812381 + s4*-0.1207722909879257;
437 phiLPM = 1. - 0.0119048/s4;
438 gLPM = 1. - 0.0230655/s4;
454 if(gammaEnergy < 0.0) {
return 0.0; }
467 G4double secondTerm = (1.-
y)/12.*(1. + xz);
487 if(gammaEnergy < 0.0) {
return 0.0; }
494 G4double gFact = (0.75*y*y - y + 1.);
498 secondTerm = (1.-
y)/12.*(1.+1./currZ);
513 secondTerm = (1.-
y)/8.*(phi1m2+psi1m2/currZ);
525 std::vector<G4DynamicParticle*>* vdp,
535 if(cut >= emax) {
return; }
559 gammaEnergy = sqrt(x);
564 G4cout <<
"### G4eBremsstrahlungRelModel Warning: Majoranta exceeded! "
565 << f <<
" > " <<
fMax
566 <<
" Egamma(MeV)= " << gammaEnergy
567 <<
" Ee(MeV)= " << kineticEnergy
573 }
while (f < fMax*rndmEngine->
flat());
578 cutEnergy, maxEnergy);
595 vdp->push_back(gamma);
599 - gammaEnergy*gammaDirection).unit();
602 G4double finalE = kineticEnergy - gammaEnergy;
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4bool use_completescreening
virtual G4ThreeVector & SampleDirection(const G4DynamicParticle *dp, G4double finalTotalEnergy, G4int Z, const G4Material *)=0
G4eBremsstrahlungRelModel(const G4ParticleDefinition *p=0, const G4String &nam="eBremLPM")
const G4ParticleDefinition * particle
static constexpr double MeV
G4double ComputeXSectionPerAtom(G4double cutEnergy)
virtual G4double ComputeDXSectionPerAtom(G4double gammaEnergy)
const G4ThreeVector & GetMomentumDirection() const
G4double Psi1(G4double, G4double)
G4double GetRadlen() const
static constexpr double hbarc
static const G4double xgi[8]
const G4ElementVector * GetElementVector() const
G4double Phi1(G4double, G4double)
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
static const G4double emax
static const G4double Finel_light[5]
G4double GetLOGZ(G4int Z) const
void SetProposedMomentumDirection(const G4ThreeVector &dir)
std::vector< G4EmElementSelector * > * GetElementSelectors()
G4double ComputeBremLoss(G4double cutEnergy)
G4double GetPDGMass() const
static constexpr double classic_electr_radius
void SetCurrentElement(const G4Element *)
G4double G4Log(G4double x)
G4double LowEnergyLimit() const
Float_t y2[n_points_geant4]
G4double energyThresholdLPM
static constexpr double electron_Compton_length
void SetCurrentElement(G4int)
G4double Psi1M2(G4double, G4double)
void SetLPMFlag(G4bool val)
G4ParticleChangeForLoss * GetParticleChangeForLoss()
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
G4VEmModel * GetTripletModel()
static constexpr double electron_mass_c2
void InitialiseConstants()
void SetAngularDistribution(G4VEmAngularDistribution *)
static const G4double wgi[8]
static G4Electron * Electron()
int main(int argc, char **argv)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)=0
void CalcLPMFunctions(G4double gammaEnergy)
G4ParticleDefinition * theGamma
std::vector< G4Element * > G4ElementVector
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
const G4String & GetName() const
void SetLowEnergyLimit(G4double)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetParticle(const G4ParticleDefinition *p)
G4double SecondaryThreshold() const
virtual void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override
static const G4double Fel_light[5]
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double cutEnergy, G4double maxEnergy) override
G4double GetZ13(G4double Z) const
G4VEmAngularDistribution * GetAngularDistribution()
const G4Element * GetCurrentElement() const
const G4Material * GetMaterial() const
G4ParticleChangeForLoss * fParticleChange
static constexpr double pi
const G4double * GetAtomicNumDensityVector() const
G4double Phi1M2(G4double, G4double)
static const G4double eps
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double cut) override
G4bool isElectron(G4int ityp)
G4double GetfCoulomb() const
static constexpr double fine_structure_const
G4double HighEnergyLimit() const
virtual void SetupForMaterial(const G4ParticleDefinition *, const G4Material *, G4double) override
void ProposeTrackStatus(G4TrackStatus status)
G4double GetElectronDensity() const
G4double ComputeRelDXSectionPerAtom(G4double gammaEnergy)
size_t GetNumberOfElements() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double tkin, G4double Z, G4double, G4double cutEnergy, G4double maxEnergy=DBL_MAX) override
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static G4NistManager * Instance()