43 #ifndef G4DiffuseElastic_h
44 #define G4DiffuseElastic_h 1
46 #include <CLHEP/Units/PhysicalConstants.h>
79 void BuildAngleTable();
88 void SetPlabLowLimit(
G4double value);
90 void SetHEModelLowLimit(
G4double value);
92 void SetQModelLowLimit(
G4double value);
94 void SetLowestEnergyLimit(
G4double value);
96 void SetRecoilKinEnergyLimit(
G4double value);
189 G4double GetNuclearRadius(){
return fNuclearRadius;};
246 lowEnergyRecoilLimit = value;
251 plabLowLimit = value;
256 lowEnergyLimitHE = value;
261 lowEnergyLimitQ = value;
266 lowestEnergyLimit = value;
277 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
279 modvalue = fabs(value);
281 if ( value < 8.0 && value > -8.0 )
283 value2 = value*value;
285 fact1 = 57568490574.0 + value2*(-13362590354.0
286 + value2*( 651619640.7
287 + value2*(-11214424.18
288 + value2*( 77392.33017
289 + value2*(-184.9052456 ) ) ) ) );
291 fact2 = 57568490411.0 + value2*( 1029532985.0
292 + value2*( 9494680.718
293 + value2*(59272.64853
294 + value2*(267.8532712
295 + value2*1.0 ) ) ) );
297 bessel = fact1/fact2;
305 shift = modvalue-0.785398164;
307 fact1 = 1.0 + value2*(-0.1098628627e-2
308 + value2*(0.2734510407e-4
309 + value2*(-0.2073370639e-5
310 + value2*0.2093887211e-6 ) ) );
312 fact2 = -0.1562499995e-1 + value2*(0.1430488765e-3
313 + value2*(-0.6911147651e-5
314 + value2*(0.7621095161e-6
315 - value2*0.934945152e-7 ) ) );
317 bessel = sqrt(0.636619772/modvalue)*(cos(shift)*fact1 - arg*sin(shift)*fact2 );
329 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
331 modvalue = fabs(value);
333 if ( modvalue < 8.0 )
335 value2 = value*value;
337 fact1 = value*(72362614232.0 + value2*(-7895059235.0
338 + value2*( 242396853.1
339 + value2*(-2972611.439
340 + value2*( 15704.48260
341 + value2*(-30.16036606 ) ) ) ) ) );
343 fact2 = 144725228442.0 + value2*(2300535178.0
344 + value2*(18583304.74
345 + value2*(99447.43394
346 + value2*(376.9991397
347 + value2*1.0 ) ) ) );
348 bessel = fact1/fact2;
356 shift = modvalue - 2.356194491;
358 fact1 = 1.0 + value2*( 0.183105e-2
359 + value2*(-0.3516396496e-4
360 + value2*(0.2457520174e-5
361 + value2*(-0.240337019e-6 ) ) ) );
363 fact2 = 0.04687499995 + value2*(-0.2002690873e-3
364 + value2*( 0.8449199096e-5
365 + value2*(-0.88228987e-6
366 + value2*0.105787412e-6 ) ) );
368 bessel = sqrt( 0.636619772/modvalue)*(cos(shift)*fact1 - arg*sin(shift)*fact2);
370 if (value < 0.0) bessel = -bessel;
386 if( std::fabs(x) < 0.01 )
388 df = 1./(1. + x/f2 + x*x/
f3 + x*x*x/
f4);
406 if( std::fabs(x) < 0.01 )
410 result = 2. - x2 + x2*x2/6.;
414 result = BesselJone(x)/x;
428 fBeta = a/std::sqrt(1+a*a);
439 fZommerfeld = CLHEP::fine_structure_const*Z1*Z2/beta;
452 G4double zn = 1.77*k*std::pow(Z,-1./3.)*CLHEP::Bohr_radius;
469 if( A > 10. ) r0 = 1.16*( 1 - std::pow(A, -2./3.) )*
CLHEP::fermi;
472 fNuclearRadius = r0*std::pow(A, 1./3.);
478 fNuclearRadius = r0*std::pow(A, 0.27);
480 return fNuclearRadius;
492 G4double sinHalfTheta = std::sin(0.5*theta);
493 G4double sinHalfTheta2 = sinHalfTheta*sinHalfTheta;
494 G4double beta = CalculateParticleBeta( particle, momentum);
496 G4double n = CalculateZommerfeld( beta, z, Z );
497 G4double am = CalculateAm( momentum, n, Z);
501 G4double xsc = ch2/(sinHalfTheta2+am)/(sinHalfTheta2+am);
514 G4double beta = CalculateParticleBeta( particle, momentum);
517 G4double n = CalculateZommerfeld( beta, z, Z );
519 G4double am = CalculateAm( momentum, n, Z);
523 G4cout<<
"k*Bohr_radius = "<<k*CLHEP::Bohr_radius<<
G4endl;
544 G4double beta = CalculateParticleBeta( particle, momentum);
547 G4double n = CalculateZommerfeld( beta, z, Z );
549 G4double am = CalculateAm( momentum, n, Z);
558 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