63 fG4Calc(
G4Pow::GetInstance()), fTheGamma(
G4Gamma::Gamma()),
65 fParticleChange(nullptr)
74 for (std::size_t iz = 0; iz <
gElementData.size(); ++iz) {
112 static const G4double kMC2 = CLHEP::electron_mass_c2;
114 if (
Z < 0.9 || gammaEnergy <= 2.0*kMC2) {
return xSection; }
116 static const G4double gammaEnergyLimit = 1.5*CLHEP::MeV;
118 static const G4double a0 = 8.7842e+2*CLHEP::microbarn;
119 static const G4double a1 = -1.9625e+3*CLHEP::microbarn;
120 static const G4double a2 = 1.2949e+3*CLHEP::microbarn;
121 static const G4double a3 = -2.0028e+2*CLHEP::microbarn;
122 static const G4double a4 = 1.2575e+1*CLHEP::microbarn;
123 static const G4double a5 = -2.8333e-1*CLHEP::microbarn;
125 static const G4double b0 = -1.0342e+1*CLHEP::microbarn;
126 static const G4double b1 = 1.7692e+1*CLHEP::microbarn;
127 static const G4double b2 = -8.2381 *CLHEP::microbarn;
128 static const G4double b3 = 1.3063 *CLHEP::microbarn;
129 static const G4double b4 = -9.0815e-2*CLHEP::microbarn;
130 static const G4double b5 = 2.3586e-3*CLHEP::microbarn;
132 static const G4double c0 = -4.5263e+2*CLHEP::microbarn;
133 static const G4double c1 = 1.1161e+3*CLHEP::microbarn;
134 static const G4double c2 = -8.6749e+2*CLHEP::microbarn;
135 static const G4double c3 = 2.1773e+2*CLHEP::microbarn;
136 static const G4double c4 = -2.0467e+1*CLHEP::microbarn;
137 static const G4double c5 = 6.5372e-1*CLHEP::microbarn;
139 G4double gammaEnergyOrg = gammaEnergy;
140 if (gammaEnergy < gammaEnergyLimit) { gammaEnergy = gammaEnergyLimit; }
148 const G4double F1 =
a0 + a1*x + a2*x2 + a3*x3 + a4*x4 + a5*x5;
149 const G4double F2 = b0 + b1*x + b2*x2 + b3*x3 + b4*x4 + b5*x5;
150 const G4double F3 = c0 + c1*x + c2*x2 + c3*x3 + c4*x4 + c5*x5;
152 xSection = (
Z + 1.)*(F1*
Z + F2*
Z*
Z + F3);
154 if (gammaEnergyOrg < gammaEnergyLimit) {
155 const G4double dum = (gammaEnergyOrg-2.*kMC2)/(gammaEnergyLimit-2.*kMC2);
159 xSection = std::max(xSection, 0.);
182 const G4double eps0 = CLHEP::electron_mass_c2/gammaEnergy;
185 if (eps0 > 0.5) {
return; }
202 static const G4double Egsmall = 2.*CLHEP::MeV;
203 if (gammaEnergy < Egsmall) {
204 eps = eps0 + (0.5-eps0)*rndmEngine->
flat();
222 static const G4double midEnergy = 50.*CLHEP::MeV;
227 if (gammaEnergy > midEnergy) {
231 const G4double deltaMin = 4.*deltaFactor;
234 const G4double epsp = 0.5 - 0.5*std::sqrt(1. - deltaMin/deltaMax) ;
235 const G4double epsMin = std::max(eps0,epsp);
236 const G4double epsRange = 0.5 - epsMin;
243 const G4double NormF1 = std::max(
F10 * epsRange * epsRange, 0.);
245 const G4double NormCond = NormF1/(NormF1 + NormF2);
251 if (NormCond > rndmv[0]) {
252 eps = 0.5 - epsRange *
fG4Calc->
A13(rndmv[1]);
253 const G4double delta = deltaFactor/(eps*(1.-eps));
256 eps = epsMin + epsRange*rndmv[1];
257 const G4double delta = deltaFactor/(eps*(1.-eps));
261 }
while (greject < rndmv[2]);
266 if (rndmEngine->
flat() > 0.5) {
267 eTotEnergy = (1.-eps)*gammaEnergy;
268 pTotEnergy = eps*gammaEnergy;
270 pTotEnergy = (1.-eps)*gammaEnergy;
271 eTotEnergy = eps*gammaEnergy;
275 const G4double eKinEnergy = std::max(0.,eTotEnergy - CLHEP::electron_mass_c2);
276 const G4double pKinEnergy = std::max(0.,pTotEnergy - CLHEP::electron_mass_c2);
281 eKinEnergy, pKinEnergy,
282 eDirection, pDirection);
288 fvect->push_back(aParticle1);
289 fvect->push_back(aParticle2);
304 std::size_t numElems = (*elemTable).size();
305 for (std::size_t ie = 0; ie < numElems; ++ie) {
312 elD->fDeltaMaxLow =
G4Exp((42.038 - FZLow )/8.29) - 0.958;
313 elD->fDeltaMaxHigh =
G4Exp((42.038 - FZHigh)/8.29) - 0.958;
std::vector< G4Element * > G4ElementTable
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
virtual void flatArray(const int size, double *vect)=0
void InitialiseElementData()
G4ParticleChangeForGamma * fParticleChange
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4BetheHeitlerModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="BetheHeitler")
const G4ParticleDefinition * fTheElectron
void ScreenFunction12(const G4double delta, G4double &f1, G4double &f2)
G4double ScreenFunction1(const G4double delta)
static const G4int gMaxZet
static std::vector< ElementData * > gElementData
const G4ParticleDefinition * fTheGamma
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cut=0., G4double emax=DBL_MAX) override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
const G4ParticleDefinition * fThePositron
G4double ScreenFunction2(const G4double delta)
~G4BetheHeitlerModel() override
void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override
G4double GetLogKineticEnergy() const
G4double GetKineticEnergy() const
static G4ElementTable * GetElementTable()
G4double GetfCoulomb() const
G4IonisParamElm * GetIonisation() const
G4double GetlogZ3() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
G4double A13(G4double A) const
virtual void SamplePairDirections(const G4DynamicParticle *dp, G4double elecKinEnergy, G4double posiKinEnergy, G4ThreeVector &dirElectron, G4ThreeVector &dirPositron, G4int Z=0, const G4Material *mat=nullptr)
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
G4VEmAngularDistribution * GetAngularDistribution()
G4ParticleChangeForGamma * GetParticleChangeForGamma()
std::vector< G4EmElementSelector * > * GetElementSelectors()
void SetAngularDistribution(G4VEmAngularDistribution *)
const G4Element * SelectTargetAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
void ProposeTrackStatus(G4TrackStatus status)