43 #ifndef G4DiffuseElastic_h
44 #define G4DiffuseElastic_h 1
46 #include <CLHEP/Units/PhysicalConstants.h>
79 void BuildAngleTable();
90 void SetPlabLowLimit(
G4double value);
92 void SetHEModelLowLimit(
G4double value);
94 void SetQModelLowLimit(
G4double value);
96 void SetLowestEnergyLimit(
G4double value);
98 void SetRecoilKinEnergyLimit(
G4double value);
191 G4double GetNuclearRadius(){
return fNuclearRadius;};
248 lowEnergyRecoilLimit = value;
253 plabLowLimit = value;
258 lowEnergyLimitHE = value;
263 lowEnergyLimitQ = value;
268 lowestEnergyLimit = value;
279 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
281 modvalue = fabs(value);
283 if ( value < 8.0 && value > -8.0 )
285 value2 = value*value;
287 fact1 = 57568490574.0 + value2*(-13362590354.0
288 + value2*( 651619640.7
289 + value2*(-11214424.18
290 + value2*( 77392.33017
291 + value2*(-184.9052456 ) ) ) ) );
293 fact2 = 57568490411.0 + value2*( 1029532985.0
294 + value2*( 9494680.718
295 + value2*(59272.64853
296 + value2*(267.8532712
297 + value2*1.0 ) ) ) );
299 bessel = fact1/fact2;
307 shift = modvalue-0.785398164;
309 fact1 = 1.0 + value2*(-0.1098628627e-2
310 + value2*(0.2734510407e-4
311 + value2*(-0.2073370639e-5
312 + value2*0.2093887211e-6 ) ) );
314 fact2 = -0.1562499995e-1 + value2*(0.1430488765e-3
315 + value2*(-0.6911147651e-5
316 + value2*(0.7621095161e-6
317 - value2*0.934945152e-7 ) ) );
319 bessel = sqrt(0.636619772/modvalue)*(cos(shift)*fact1 - arg*sin(shift)*fact2 );
331 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
333 modvalue = fabs(value);
335 if ( modvalue < 8.0 )
337 value2 = value*value;
339 fact1 = value*(72362614232.0 + value2*(-7895059235.0
340 + value2*( 242396853.1
341 + value2*(-2972611.439
342 + value2*( 15704.48260
343 + value2*(-30.16036606 ) ) ) ) ) );
345 fact2 = 144725228442.0 + value2*(2300535178.0
346 + value2*(18583304.74
347 + value2*(99447.43394
348 + value2*(376.9991397
349 + value2*1.0 ) ) ) );
350 bessel = fact1/fact2;
358 shift = modvalue - 2.356194491;
360 fact1 = 1.0 + value2*( 0.183105e-2
361 + value2*(-0.3516396496e-4
362 + value2*(0.2457520174e-5
363 + value2*(-0.240337019e-6 ) ) ) );
365 fact2 = 0.04687499995 + value2*(-0.2002690873e-3
366 + value2*( 0.8449199096e-5
367 + value2*(-0.88228987e-6
368 + value2*0.105787412e-6 ) ) );
370 bessel = sqrt( 0.636619772/modvalue)*(cos(shift)*fact1 - arg*sin(shift)*fact2);
372 if (value < 0.0) bessel = -bessel;
388 if( std::fabs(x) < 0.01 )
390 df = 1./(1. + x/f2 + x*x/
f3 + x*x*x/
f4);
408 if( std::fabs(x) < 0.01 )
412 result = 2. - x2 + x2*x2/6.;
416 result = BesselJone(x)/x;
430 fBeta = a/std::sqrt(1+a*a);
441 fZommerfeld = CLHEP::fine_structure_const*Z1*Z2/beta;
454 G4double zn = 1.77*k*std::pow(Z,-1./3.)*CLHEP::Bohr_radius;
493 else if( 10. < A && A <= 16. ) r0 = a11*( 1 - std::pow(A, -2./3.) )*
CLHEP::fermi;
494 else if( 15. < A && A <= 20. ) r0 = a12*( 1 - std::pow(A, -2./3.) )*
CLHEP::fermi;
495 else if( 20. < A && A <= 30. ) r0 = a13*( 1 - std::pow(A, -2./3.) )*
CLHEP::fermi;
498 R = r0*std::pow( A, 1./3. );
504 R = r0*std::pow(A, 0.27);
534 G4double sinHalfTheta = std::sin(0.5*theta);
535 G4double sinHalfTheta2 = sinHalfTheta*sinHalfTheta;
536 G4double beta = CalculateParticleBeta( particle, momentum);
538 G4double n = CalculateZommerfeld( beta, z, Z );
539 G4double am = CalculateAm( momentum, n, Z);
543 G4double xsc = ch2/(sinHalfTheta2+am)/(sinHalfTheta2+am);
556 G4double beta = CalculateParticleBeta( particle, momentum);
559 G4double n = CalculateZommerfeld( beta, z, Z );
561 G4double am = CalculateAm( momentum, n, Z);
565 G4cout<<
"k*Bohr_radius = "<<k*CLHEP::Bohr_radius<<
G4endl;
586 G4double beta = CalculateParticleBeta( particle, momentum);
589 G4double n = CalculateZommerfeld( beta, z, Z );
591 G4double am = CalculateAm( momentum, n, Z);
600 xsc /= (1 - c1 + am)*(1 - c2 + am);
static c2_factory< G4double > c2
G4double CalculateNuclearRad(G4double A)
G4double CalculateZommerfeld(G4double beta, G4double Z1, G4double Z2)
G4double GetCoulombTotalXsc(const G4ParticleDefinition *particle, G4double momentum, G4double Z)
G4double lowEnergyLimitHE
G4double BesselJzero(G4double z)
std::vector< G4String > fElementNameVector
G4double BesselJone(G4double z)
G4double GetCoulombElasticXsc(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double Z)
static G4KaonMinus * KaonMinus()
void SetLowestEnergyLimit(G4double value)
const G4ParticleDefinition * thePionPlus
G4double CalculateAm(G4double momentum, G4double n, G4double Z)
void SetRecoilKinEnergyLimit(G4double value)
const G4ParticleDefinition * thePionMinus
G4GLOB_DLL std::ostream G4cout
const G4ParticleDefinition * GetDefinition() const
std::vector< G4PhysicsTable * > fAngleBank
void SetQModelLowLimit(G4double value)
static G4Proton * Proton()
static G4PionPlus * PionPlus()
G4double lowestEnergyLimit
static G4Neutron * Neutron()
static const G4double A[nN]
G4ParticleDefinition * theAlpha
G4double DampFactor(G4double z)
G4PhysicsLogVector * fEnergyVector
G4double GetPDGMass() const
G4double lowEnergyRecoilLimit
static G4PionMinus * PionMinus()
G4double GetCoulombIntegralXsc(const G4ParticleDefinition *particle, G4double momentum, G4double Z, G4double theta1, G4double theta2)
G4double CalculateParticleBeta(const G4ParticleDefinition *particle, G4double momentum)
G4ParticleDefinition * theDeuteron
G4double BesselOneByArg(G4double z)
const G4ParticleDefinition * fParticle
void SetHEModelLowLimit(G4double value)
static G4KaonPlus * KaonPlus()
G4double GetPDGCharge() const
static const G4double alpha
std::vector< G4double > fElementNumberVector
void SetPlabLowLimit(G4double value)
G4PhysicsTable * fAngleTable
virtual G4bool IsApplicable(const G4HadProjectile &, G4Nucleus &)
static const double fermi
G4ParticleDefinition * theNeutron