69 fG4Calc(
G4Pow::GetInstance()), fTheGamma(
G4Gamma::Gamma()),
71 fParticleChange(nullptr)
124 static const G4double kMC2 = CLHEP::electron_mass_c2;
126 if (Z < 0.9 || gammaEnergy <= 2.0*kMC2) {
return xSection; }
128 static const G4double gammaEnergyLimit = 1.5*CLHEP::MeV;
130 static const G4double a0 = 8.7842e+2*CLHEP::microbarn;
131 static const G4double a1 = -1.9625e+3*CLHEP::microbarn;
132 static const G4double a2 = 1.2949e+3*CLHEP::microbarn;
133 static const G4double a3 = -2.0028e+2*CLHEP::microbarn;
134 static const G4double a4 = 1.2575e+1*CLHEP::microbarn;
135 static const G4double a5 = -2.8333e-1*CLHEP::microbarn;
137 static const G4double b0 = -1.0342e+1*CLHEP::microbarn;
138 static const G4double b1 = 1.7692e+1*CLHEP::microbarn;
139 static const G4double b2 = -8.2381 *CLHEP::microbarn;
140 static const G4double b3 = 1.3063 *CLHEP::microbarn;
141 static const G4double b4 = -9.0815e-2*CLHEP::microbarn;
142 static const G4double b5 = 2.3586e-3*CLHEP::microbarn;
144 static const G4double c0 = -4.5263e+2*CLHEP::microbarn;
145 static const G4double c1 = 1.1161e+3*CLHEP::microbarn;
146 static const G4double c2 = -8.6749e+2*CLHEP::microbarn;
147 static const G4double c3 = 2.1773e+2*CLHEP::microbarn;
148 static const G4double c4 = -2.0467e+1*CLHEP::microbarn;
149 static const G4double c5 = 6.5372e-1*CLHEP::microbarn;
151 G4double gammaEnergyOrg = gammaEnergy;
152 if (gammaEnergy < gammaEnergyLimit) { gammaEnergy = gammaEnergyLimit; }
160 const G4double F1 =
a0 + a1*x + a2*x2 + a3*x3 + a4*x4 + a5*x5;
161 const G4double F2 = b0 + b1*x + b2*x2 + b3*x3 + b4*x4 + b5*x5;
162 const G4double F3 = c0 + c1*x + c2*x2 + c3*x3 + c4*x4 + c5*x5;
164 xSection = (Z + 1.)*(F1*Z + F2*Z*Z + F3);
166 if (gammaEnergyOrg < gammaEnergyLimit) {
167 const G4double dum = (gammaEnergyOrg-2.*kMC2)/(gammaEnergyLimit-2.*kMC2);
171 xSection = std::max(xSection, 0.);
194 const G4double eps0 = CLHEP::electron_mass_c2/gammaEnergy;
197 if (eps0 > 0.5) {
return; }
214 static const G4double Egsmall = 2.*CLHEP::MeV;
215 if (gammaEnergy < Egsmall) {
216 eps = eps0 + (0.5-eps0)*rndmEngine->
flat();
234 static const G4double midEnergy = 50.*CLHEP::MeV;
239 if (gammaEnergy > midEnergy) {
243 const G4double deltaMin = 4.*deltaFactor;
246 const G4double epsp = 0.5 - 0.5*std::sqrt(1. - deltaMin/deltaMax) ;
247 const G4double epsMin = std::max(eps0,epsp);
248 const G4double epsRange = 0.5 - epsMin;
255 const G4double NormF1 = std::max(
F10 * epsRange * epsRange, 0.);
257 const G4double NormCond = NormF1/(NormF1 + NormF2);
263 if (NormCond > rndmv[0]) {
264 eps = 0.5 - epsRange *
fG4Calc->
A13(rndmv[1]);
265 const G4double delta = deltaFactor/(eps*(1.-eps));
268 eps = epsMin + epsRange*rndmv[1];
269 const G4double delta = deltaFactor/(eps*(1.-eps));
273 }
while (greject < rndmv[2]);
278 if (rndmEngine->
flat() > 0.5) {
279 eTotEnergy = (1.-eps)*gammaEnergy;
280 pTotEnergy = eps*gammaEnergy;
282 pTotEnergy = (1.-eps)*gammaEnergy;
283 eTotEnergy = eps*gammaEnergy;
287 const G4double eKinEnergy = std::max(0.,eTotEnergy - CLHEP::electron_mass_c2);
288 const G4double pKinEnergy = std::max(0.,pTotEnergy - CLHEP::electron_mass_c2);
293 eKinEnergy, pKinEnergy,
294 eDirection, pDirection);
300 fvect->push_back(aParticle1);
301 fvect->push_back(aParticle2);
312 for (
auto const &
elem : *elemTable) {
318 elD->fDeltaMaxLow =
G4Exp((42.038 - FZLow )/8.29) - 0.958;
319 elD->fDeltaMaxHigh =
G4Exp((42.038 - FZHigh)/8.29) - 0.958;
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
#define G4MUTEX_INITIALIZER
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)