45 #ifndef G4DiffuseElasticV2_h
46 #define G4DiffuseElasticV2_h 1
218 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
220 modvalue = std::fabs(value);
224 value2 = value*
value;
226 fact1 = 57568490574.0 + value2*(-13362590354.0
227 + value2*( 651619640.7
228 + value2*(-11214424.18
229 + value2*( 77392.33017
230 + value2*(-184.9052456 ) ) ) ) );
232 fact2 = 57568490411.0 + value2*( 1029532985.0
233 + value2*( 9494680.718
234 + value2*(59272.64853
235 + value2*(267.8532712
236 + value2*1.0 ) ) ) );
238 bessel = fact1/fact2;
246 shift = modvalue-0.785398164;
248 fact1 = 1.0 + value2*(-0.1098628627e-2
249 + value2*(0.2734510407e-4
250 + value2*(-0.2073370639e-5
251 + value2*0.2093887211e-6 ) ) );
253 fact2 = -0.1562499995e-1 + value2*(0.1430488765e-3
254 + value2*(-0.6911147651e-5
255 + value2*(0.7621095161e-6
256 - value2*0.934945152e-7 ) ) );
258 bessel = std::sqrt(0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2 );
270 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
272 modvalue = std::fabs(value);
274 if ( modvalue < 8.0 )
276 value2 = value*
value;
278 fact1 = value*(72362614232.0 + value2*(-7895059235.0
279 + value2*( 242396853.1
280 + value2*(-2972611.439
281 + value2*( 15704.48260
282 + value2*(-30.16036606 ) ) ) ) ) );
284 fact2 = 144725228442.0 + value2*(2300535178.0
285 + value2*(18583304.74
286 + value2*(99447.43394
287 + value2*(376.9991397
288 + value2*1.0 ) ) ) );
289 bessel = fact1/fact2;
297 shift = modvalue - 2.356194491;
299 fact1 = 1.0 + value2*( 0.183105e-2
300 + value2*(-0.3516396496e-4
301 + value2*(0.2457520174e-5
302 + value2*(-0.240337019e-6 ) ) ) );
304 fact2 = 0.04687499995 + value2*(-0.2002690873e-3
305 + value2*( 0.8449199096e-5
306 + value2*(-0.88228987e-6
307 + value2*0.105787412e-6 ) ) );
309 bessel = std::sqrt( 0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2);
311 if (value < 0.0) bessel = -bessel;
327 if( std::fabs(x) < 0.01 )
329 df = 1./(1. + x/f2 + x*x/
f3 + x*x*x/
f4);
347 if( std::fabs(x) < 0.01 )
351 result = 2. - x2 + x2*x2/6.;
static G4PionMinus * PionMinus()
std::vector< std::vector< double > * > * fEnergySumVector
std::vector< std::vector< std::vector< double > * > * > fEnergyAngleVectorBank
G4double BesselJzero(G4double z)
G4double A13(G4double A) const
std::vector< std::vector< double > * > * fEnergyAngleVector
G4double lowEnergyLimitHE
G4double BesselJone(G4double z)
void SetLowestEnergyLimit(G4double value)
static constexpr double hbarc
G4double A23(G4double A) const
static G4PionPlus * PionPlus()
G4double SampleThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double A)
G4double GetDiffElasticSumProbA(G4double alpha)
G4double CalculateZommerfeld(G4double beta, G4double Z1, G4double Z2)
void SetPlabLowLimit(G4double value)
void InitialiseOnFly(G4double Z, G4double A)
G4double SampleTableThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
static G4Proton * Proton()
static G4KaonMinus * KaonMinus()
G4ParticleDefinition * theNeutron
static G4KaonPlus * KaonPlus()
G4double CalculateAm(G4double momentum, G4double n, G4double Z)
G4double GetNuclearRadius()
static constexpr double fermi
G4double BesselOneByArg(G4double z)
virtual G4bool IsApplicable(const G4HadProjectile &, G4Nucleus &)
static G4Pow * GetInstance()
void SetRecoilKinEnergyLimit(G4double value)
const XML_Char int const XML_Char * value
G4double powA(G4double A, G4double y) const
std::vector< std::vector< std::vector< double > * > * > fEnergySumVectorBank
G4double GetScatteringAngle(G4int iMomentum, unsigned long iAngle, G4double position)
virtual ~G4DiffuseElasticV2()
G4double ThetaCMStoThetaLab(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaCMS)
const G4ParticleDefinition * fParticle
static const G4double alpha
double A(double temperature)
void SetHEModelLowLimit(G4double value)
void SetQModelLowLimit(G4double value)
G4double SampleThetaLab(const G4HadProjectile *aParticle, G4double tmass, G4double A)
G4double G4ParticleHPJENDLHEData::G4double result
G4double lowestEnergyLimit
G4double SampleTableT(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
const G4ParticleDefinition * GetDefinition() const
G4ParticleDefinition * theProton
static G4Neutron * Neutron()
G4double ThetaLabToThetaCMS(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaLab)
G4double DampFactor(G4double z)
G4double NeutronTuniform(G4int Z)
G4double CalculateNuclearRad(G4double A)
static constexpr double fine_structure_const
Float_t x2[n_points_geant4]
virtual G4double SampleInvariantT(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
static constexpr double Bohr_radius
G4double GetIntegrandFunction(G4double theta)
std::vector< G4String > fElementNameVector
G4PhysicsLogVector * fEnergyVector
std::vector< G4double > fElementNumberVector
G4double lowEnergyRecoilLimit