44#ifndef G4DiffuseElasticV2_h
45#define G4DiffuseElasticV2_h 1
144 unsigned long fAngleBin;
148 std::vector<std::vector<std::vector<double>*>*> fEnergyAngleVectorBank;
149 std::vector<std::vector<std::vector<double>*>*> fEnergySumVectorBank;
151 std::vector<std::vector<double>*>* fEnergyAngleVector;
152 std::vector<std::vector<double>*>* fEnergySumVector;
155 std::vector<G4double> fElementNumberVector;
156 std::vector<G4String> fElementNameVector;
186 lowEnergyRecoilLimit = value;
191 plabLowLimit = value;
196 lowEnergyLimitHE = value;
201 lowEnergyLimitQ = value;
206 lowestEnergyLimit = value;
217 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
219 modvalue = std::fabs(value);
221 if ( value < 8.0 && value > -8.0 )
223 value2 = value*value;
225 fact1 = 57568490574.0 + value2*(-13362590354.0
226 + value2*( 651619640.7
227 + value2*(-11214424.18
228 + value2*( 77392.33017
229 + value2*(-184.9052456 ) ) ) ) );
231 fact2 = 57568490411.0 + value2*( 1029532985.0
232 + value2*( 9494680.718
233 + value2*(59272.64853
234 + value2*(267.8532712
235 + value2*1.0 ) ) ) );
237 bessel = fact1/fact2;
245 shift = modvalue-0.785398164;
247 fact1 = 1.0 + value2*(-0.1098628627e-2
248 + value2*(0.2734510407e-4
249 + value2*(-0.2073370639e-5
250 + value2*0.2093887211e-6 ) ) );
252 fact2 = -0.1562499995e-1 + value2*(0.1430488765e-3
253 + value2*(-0.6911147651e-5
254 + value2*(0.7621095161e-6
255 - value2*0.934945152e-7 ) ) );
257 bessel = std::sqrt(0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2 );
269 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
271 modvalue = std::fabs(value);
273 if ( modvalue < 8.0 )
275 value2 = value*value;
277 fact1 = value*(72362614232.0 + value2*(-7895059235.0
278 + value2*( 242396853.1
279 + value2*(-2972611.439
280 + value2*( 15704.48260
281 + value2*(-30.16036606 ) ) ) ) ) );
283 fact2 = 144725228442.0 + value2*(2300535178.0
284 + value2*(18583304.74
285 + value2*(99447.43394
286 + value2*(376.9991397
287 + value2*1.0 ) ) ) );
288 bessel = fact1/fact2;
296 shift = modvalue - 2.356194491;
298 fact1 = 1.0 + value2*( 0.183105e-2
299 + value2*(-0.3516396496e-4
300 + value2*(0.2457520174e-5
301 + value2*(-0.240337019e-6 ) ) ) );
303 fact2 = 0.04687499995 + value2*(-0.2002690873e-3
304 + value2*( 0.8449199096e-5
305 + value2*(-0.88228987e-6
306 + value2*0.105787412e-6 ) ) );
308 bessel = std::sqrt( 0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2);
310 if (value < 0.0) bessel = -bessel;
322 G4double f2 = 2., f3 = 6., f4 = 24.;
326 if( std::fabs(x) < 0.01 )
328 df = 1./(1. + x/f2 + x*x/f3 + x*x*x/f4);
346 if( std::fabs(x) < 0.01 )
350 result = 2. - x2 + x2*x2/6.;
366 fZommerfeld = CLHEP::fine_structure_const*Z1*Z2/beta;
392 G4double R, r0, a11, a12, a13, a2, a3;
404 if (std::abs(
A-1.) < 0.5)
return 0.89*CLHEP::fermi;
405 else if(std::abs(
A-2.) < 0.5)
return 2.13*CLHEP::fermi;
407 std::abs(
A-3.) < 0.5)
return 1.80*CLHEP::fermi;
411 std::abs(
A-4.) < 0.5)
return 1.68*CLHEP::fermi;
414 std::abs(
A-7.) < 0.5 )
return 2.40*CLHEP::fermi;
416 std::abs(
A-9.) < 0.5)
return 2.51*CLHEP::fermi;
421 else r0 = a2*CLHEP::fermi;
427 r0 = a3*CLHEP::fermi;
double A(double temperature)
G4double BesselJzero(G4double z)
G4double SampleTableT(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
G4double CalculateNuclearRad(G4double A)
void SetPlabLowLimit(G4double value)
G4double SampleTableThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double Z, G4double A)
G4double BesselJone(G4double z)
G4double CalculateZommerfeld(G4double beta, G4double Z1, G4double Z2)
virtual G4bool IsApplicable(const G4HadProjectile &, G4Nucleus &)
void SetLowestEnergyLimit(G4double value)
G4double GetNuclearRadius()
void SetHEModelLowLimit(G4double value)
G4double GetScatteringAngle(G4int iMomentum, unsigned long iAngle, G4double position)
G4double DampFactor(G4double z)
G4double CalculateAm(G4double momentum, G4double n, G4double Z)
virtual ~G4DiffuseElasticV2()
G4double GetIntegrandFunction(G4double theta)
G4double ThetaLabToThetaCMS(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaLab)
G4double BesselOneByArg(G4double z)
virtual G4double SampleInvariantT(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
void InitialiseOnFly(G4double Z, G4double A)
G4double SampleThetaCMS(const G4ParticleDefinition *aParticle, G4double p, G4double A)
G4double NeutronTuniform(G4int Z)
G4double ThetaCMStoThetaLab(const G4DynamicParticle *aParticle, G4double tmass, G4double thetaCMS)
G4double SampleThetaLab(const G4HadProjectile *aParticle, G4double tmass, G4double A)
G4double GetDiffElasticSumProbA(G4double alpha)
void SetRecoilKinEnergyLimit(G4double value)
void SetQModelLowLimit(G4double value)
const G4ParticleDefinition * GetDefinition() const
static G4KaonMinus * KaonMinus()
static G4KaonPlus * KaonPlus()
static G4Neutron * Neutron()
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
static G4Pow * GetInstance()
G4double A13(G4double A) const
G4double powA(G4double A, G4double y) const
G4double A23(G4double A) const
static G4Proton * Proton()