42 #ifndef G4NuclNuclDiffuseElastic_h
43 #define G4NuclNuclDiffuseElastic_h 1
46 #include <CLHEP/Units/PhysicalConstants.h>
401 if( std::fabs(x) < 0.01 )
403 df = 1./(1. + x/f2 + x*x/
f3 + x*x*x/
f4);
421 if( std::fabs(x) < 0.01 )
425 result = 2. - x2 + x2*x2/6.;
444 fBeta = a/std::sqrt(1+a*a);
456 fZommerfeld = CLHEP::fine_structure_const*Z1*Z2/beta;
517 G4double sinHalfTheta = std::sin(0.5*theta);
518 G4double sinHalfTheta2 = sinHalfTheta*sinHalfTheta;
526 G4double xsc = ch2/((sinHalfTheta2+am)*(sinHalfTheta2+am));
537 G4double sinHalfTheta = std::sin(0.5*theta);
538 G4double sinHalfTheta2 = sinHalfTheta*sinHalfTheta;
563 G4cout<<
"k*Bohr_radius = "<<k*CLHEP::Bohr_radius<<
G4endl;
621 result += 1./z1 - 1./z3 +1./z5 -1./z7;
636 tmp = t*std::exp(-z*z-1.26551223+t*(1.00002368+t*(0.37409196+t*(0.09678418+
637 t*(-0.18628806+t*(0.27886807+t*(-1.13520398+t*(1.48851587+
638 t*(-0.82215223+t*0.17087277)))))))));
640 if( x >= 0.) result = 1. - tmp;
641 else result = 1. + tmp;
723 for( n = 1; n <= nMax; n++)
733 sum *= 2.*std::exp(-z*z)/std::sqrt(
CLHEP::pi);
745 result *= std::cos(2.*x*fReZ);
756 result *= std::sin(2.*x*fReZ);
799 G4double sinHalfTheta = std::sin(0.5*theta);
800 G4double sinHalfTheta2 = sinHalfTheta*sinHalfTheta;
801 sinHalfTheta2 +=
fAm;
819 G4double out = ca.real()*ca.real() + ca.imag()*ca.imag();
847 return gammalog.imag();
872 G4double result = 0., argument = 0.;
877 argument = fProfileDelta*dTheta;
909 G4double result = 0., argument = 0.;
911 if(std::abs(dTheta) < 0.001) result = 1.;
916 result /= std::sinh(result);
992 G4double mod2 = out.real()*out.real() + out.imag()*out.imag();
1005 G4double sindTheta = std::sin(dTheta);
1012 G4double out = 0.5*( cosFresnel*cosFresnel + sinFresnel*sinFresnel );
1047 G4double mod2 = out.real()*out.real() + out.imag()*out.imag();
1059 G4double mod2 = out.real()*out.real() + out.imag()*out.imag();
1070 G4double mod2 = out.real()*out.real() + out.imag()*out.imag();
1082 G4double Elab = std::sqrt ( mp * mp + Plab * Plab );
1083 G4double sMand = mp*mp + mt*mt + 2*Elab*mt ;
G4double GetCoulombIntegralXsc(const G4ParticleDefinition *particle, G4double momentum, G4double Z, G4double theta1, G4double theta2)
static G4Pow * GetInstance()
G4double lowestEnergyLimit
static c2_factory< G4double > c2
G4double CalculateNuclearRad(G4double A)
G4double Legendre96(T &typeT, F f, G4double a, G4double b)
static const double halfpi
G4complex GetErfcComp(G4complex z, G4int nMax)
void SetProfileLambda(G4double pl)
G4NuclNuclDiffuseElastic()
void SetNuclearRadiusCof(G4double r)
G4double AmplitudeSimMod2(G4double theta)
G4double GetExpSin(G4double x)
G4double CalculateAm(G4double momentum, G4double n, G4double Z)
G4double fNuclearRadiusSquare
G4double GetCofAlphaMax()
void SetCofAlphaCoulomb(G4double pa)
G4double SampleTableThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
G4double GetScatteringAngle(G4int iMomentum, G4int iAngle, G4double position)
G4double DampFactor(G4double z)
void SetProfileDelta(G4double pd)
const G4double w[NPOINTSGL]
G4double GetExpCos(G4double x)
G4double GetDiffElasticProb(G4double theta)
G4complex AmplitudeNear(G4double theta)
G4double GetInvCoulombElasticXsc(const G4ParticleDefinition *particle, G4double tMand, G4double momentum, G4double A, G4double Z)
G4complex PhaseNear(G4double theta)
G4double fHalfRutThetaTg2
G4complex CoulombAmplitude(G4double theta)
G4double GetErf(G4double x)
G4complex AmplitudeGla(G4double theta)
G4double GetRatioSim(G4double theta)
G4double GetDiffuseElasticSumXsc(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double A, G4double Z)
G4double GetCoulombElasticXsc(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double Z)
void CalculateCoulombPhaseZero()
G4double GetDiffuseElasticXsc(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double A)
G4double CalculateParticleBeta(const G4ParticleDefinition *particle, G4double momentum)
std::vector< G4String > fElementNameVector
G4PhysicsLogVector * fEnergyVector
G4double SampleThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double A)
G4double GetCoulombTotalXsc(const G4ParticleDefinition *particle, G4double momentum, G4double Z)
G4double Profile(G4double theta)
G4complex AmplitudeGG(G4double theta)
G4double GetSinHaPit2(G4double t)
G4ParticleDefinition * theNeutron
G4ParticleDefinition * theDeuteron
G4complex GammaLogB2n(G4complex xx)
void SetEtaRatio(G4double pa)
void SetPlabLowLimit(G4double value)
const G4ParticleDefinition * thePionPlus
G4double CalculateCoulombPhase(G4int n)
std::complex< G4double > G4complex
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
G4double fRutherfordTheta
G4double GetHadronNucleonXscNS(G4ParticleDefinition *pParticle, G4double pTkin, G4ParticleDefinition *tParticle)
void SetCofDelta(G4double pa)
void CalculateRutherfordAnglePar()
void TestAngleTable(const G4ParticleDefinition *theParticle, G4double partMom, G4double Z, G4double A)
void SetRecoilKinEnergyLimit(G4double value)
void InitParametersGla(const G4DynamicParticle *aParticle, G4double partMom, G4double Z, G4double A)
G4double fRutherfordRatio
void SetLowestEnergyLimit(G4double value)
G4ParticleDefinition * theProton
G4double CoulombAmplitudeMod2(G4double theta)
G4double GetIntegrandFunction(G4double theta)
static const double twopi
void SetCofAlphaMax(G4double pa)
G4ParticleDefinition * theAlpha
G4double BesselJone(G4double z)
G4double GetRutherfordXsc(G4double theta)
std::vector< G4PhysicsTable * > fAngleBank
G4double GetInvElasticXsc(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double A, G4double Z)
G4double SampleT(const G4ParticleDefinition *aParticle, G4double p, G4double A)
G4double GetDiffElasticSumProb(G4double theta)
G4double fNuclearRadiusCof
G4complex TestErfcInt(G4complex z)
virtual G4double SampleInvariantT(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
void SetHEModelLowLimit(G4double value)
G4complex GammaMore(G4double theta)
G4double GetCofAlphaCoulomb()
G4double GetFresnelDiffuseXsc(G4double theta)
G4double ThetaCMStoThetaLab(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaCMS)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
void InitialiseOnFly(G4double Z, G4double A)
void SetProfileAlpha(G4double pa)
G4double BesselJzero(G4double z)
G4double GetProfileLambda()
G4double CalculateZommerfeld(G4double beta, G4double Z1, G4double Z2)
G4double GetPDGMass() const
void InitDynParameters(const G4ParticleDefinition *theParticle, G4double partMom)
G4double A13(G4double A) const
G4double GetRatioGen(G4double theta)
G4complex GammaLess(G4double theta)
void SetQModelLowLimit(G4double value)
G4double ProfileNear(G4double theta)
G4double GetFresnelIntegrandXsc(G4double alpha)
void SetCofPhase(G4double pa)
G4double SampleTableT(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
const G4double x[NPOINTSGL]
const G4ParticleDefinition * fParticle
G4complex GetErfcSer(G4complex z, G4int nMax)
G4double AmplitudeMod2(G4double theta)
std::vector< G4double > fElementNumberVector
G4complex GetErfcInt(G4complex z)
G4complex Amplitude(G4double theta)
G4complex GetErfInt(G4complex z)
void SetCofLambda(G4double pa)
G4complex AmplitudeFar(G4double theta)
G4double CalcMandelstamS(const G4double mp, const G4double mt, const G4double Plab)
G4double fCofAlphaCoulomb
G4double AmplitudeGGMod2(G4double theta)
G4complex TestErfcComp(G4complex z, G4int nMax)
virtual ~G4NuclNuclDiffuseElastic()
G4double GetLegendrePol(G4int n, G4double x)
G4double GetCosHaPit2(G4double t)
G4double lowEnergyRecoilLimit
G4double GetPDGCharge() const
static const G4double alpha
G4double GetSint(G4double x)
const G4ParticleDefinition * thePionMinus
G4complex AmplitudeSim(G4double theta)
G4double GetInvElasticSumXsc(const G4ParticleDefinition *particle, G4double tMand, G4double momentum, G4double A, G4double Z)
G4double AmplitudeGlaMod2(G4double theta)
G4complex GetErfComp(G4complex z, G4int nMax)
G4double ThetaLabToThetaCMS(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaLab)
void SetCofFar(G4double pa)
G4double GetDiffElasticSumProbA(G4double alpha)
G4double IntegralElasticProb(const G4ParticleDefinition *particle, G4double theta, G4double momentum, G4double A)
G4complex PhaseFar(G4double theta)
G4double lowEnergyLimitHE
G4double GetNuclearRadius()
G4double ProfileFar(G4double theta)
static const double fermi
G4double SampleThetaLab(const G4HadProjectile *aParticle, G4double tmass, G4double A)
G4complex GetErfSer(G4complex z, G4int nMax)
G4complex TestErfcSer(G4complex z, G4int nMax)
G4double GetCint(G4double x)
void SetCofAlpha(G4double pa)
G4PhysicsTable * fAngleTable
G4complex GammaLogarithm(G4complex xx)
G4double BesselOneByArg(G4double z)
void InitParameters(const G4ParticleDefinition *theParticle, G4double partMom, G4double Z, G4double A)