112 if(Z == 1 && A == 1) theDef = theProton;
113 else if (Z == 1 && A == 2) theDef = theDeuteron;
115 else if (Z == 2 && A == 3) theDef =
G4He3::He3();
116 else if (Z == 2 && A == 4) theDef = theAlpha;
135 fTmax = 4.0*ptot*ptot;
149 G4double XsCoulomb =
sqr(n/fWaveVector)*
pi*(1+ctet1)/(1.+Am)/(1.+2.*Am-ctet1);
150 XsCoulomb=XsCoulomb*0.38938e+6;
160 G4double CoulombProb = XsCoulomb/(XsCoulomb+XsElastHad);
172 G4double par1 = 2.*(1.+Am)/(1.+ctet1);
176 G4double cosThetaCMS = (par1*ctet1- Ksi*(1.+2.*Am))/(par1-Ksi);
180 G4double PtProjCMS = ptot*std::sqrt(1.0 - cosThetaCMS*cosThetaCMS);
181 G4double PtX= PtProjCMS * std::cos(phi);
182 G4double PtY= PtProjCMS * std::sin(phi);
185 Fproj.
setE(std::sqrt(PtX*PtX+PtY*PtY+PtZ*PtZ+Mproj*Mproj));
186 T = -(Pproj-Fproj).mag2();
204 if((A>=12.) && (A<27) ) fRa=fRa*0.85;
205 if((A>=27.) && (A<48) ) fRa=fRa*0.90;
206 if((A>=48.) && (A<65) ) fRa=fRa*0.95;
211 if ((theParticle == theAProton) || (theParticle == theANeutron))
213 if(theDef == theProton)
220 { rho = 1.3347-10.342*Plab/1000.+22.277*Plab/1000.*Plab/1000.-
221 13.634*Plab/1000.*Plab/1000.*Plab/1000. ;}
222 if((Plab < 5500.)&&(Plab >= 610.) )
224 if((Plab >= 5500.)&&(Plab < 12300.) )
227 { rho = 0.135-2.26/(std::sqrt(S)) ;}
229 Ref2 = 0.35 + 0.9/std::sqrt(std::sqrt(S-4.*0.88))+0.04*std::log(S) ;
230 ceff2 = 0.375 - 2./S + 0.44/(
sqr(S-4.)+1.5) ;
247 { Ref2 = fRa*fRa +2.48*0.01*sig_pbarp*fRa - 2.23e-6*sig_pbarp*sig_pbarp*fRa*fRa;
248 ceff2 = 0.16+3.3e-4*sig_pbarp+0.35*std::exp(-0.03*sig_pbarp);
251 { Ref2 = fRa*fRa -0.46 +0.03*sig_pbarp - 2.98e-6*sig_pbarp*sig_pbarp;
252 ceff2= 0.078 + 6.657e-4*sig_pbarp + 0.3359*std::exp(-0.03*sig_pbarp);
255 { Ref2 = fRa*fRa - 1.36 + 0.025 * sig_pbarp - 3.69e-7 * sig_pbarp*sig_pbarp;
256 ceff2 = 0.149 + 7.091e-04*sig_pbarp + 0.3743*std::exp(-0.03*sig_pbarp);
259 { Ref2 = fRa*fRa - 1.36 + 0.025 * sig_pbarp - 3.69e-7 * sig_pbarp*sig_pbarp;
260 ceff2 = 0.149 + 7.091e-04*sig_pbarp + 0.3743*std::exp(-0.03*sig_pbarp);
264 Ref2 = fRa*fRa - 0.28 + 0.019 * sig_pbarp + 2.06e-6 * sig_pbarp*sig_pbarp;
265 ceff2 = 0.297 + 7.853e-04*sig_pbarp + 0.2899*std::exp(-0.03*sig_pbarp);
269 if (theParticle == theADeuteron)
272 Ref2 = XstotalHad/10./2./
pi ;
275 ceff2 = 0.38 + 2.0e-4 *sig_pbarp + 0.5 * std::exp(-0.03*sig_pbarp);
277 if(theDef == theProton)
279 ceff2 = 0.297 + 7.853e-04*sig_pbarp + 0.2899*std::exp(-0.03*sig_pbarp);
281 if(theDef == theDeuteron)
283 ceff2 = 0.65 + 3.0e-4*sig_pbarp + 0.55 * std::exp(-0.03*sig_pbarp);
287 ceff2 = 0.57 + 2.5e-4*sig_pbarp + 0.65 * std::exp(-0.02*sig_pbarp);
289 if(theDef == theAlpha)
291 ceff2 = 0.40 + 3.5e-4 *sig_pbarp + 0.45 * std::exp(-0.02*sig_pbarp);
295 if( (theParticle ==theAHe3) || (theParticle ==theATriton) )
298 Ref2 = XstotalHad/10./2./
pi ;
301 ceff2 = 0.26 + 2.2e-4*sig_pbarp + 0.33*std::exp(-0.03*sig_pbarp);
303 if(theDef == theProton)
305 ceff2 = 0.149 + 7.091e-04*sig_pbarp + 0.3743*std::exp(-0.03*sig_pbarp);
307 if(theDef == theDeuteron)
309 ceff2 = 0.57 + 2.5e-4*sig_pbarp + 0.65 * std::exp(-0.02*sig_pbarp);
313 ceff2 = 0.39 + 2.7e-4*sig_pbarp + 0.7 * std::exp(-0.02*sig_pbarp);
315 if(theDef == theAlpha)
317 ceff2 = 0.24 + 3.5e-4*sig_pbarp + 0.75 * std::exp(-0.03*sig_pbarp);
322 if (theParticle == theAAlpha)
325 Ref2 = XstotalHad/10./2./
pi ;
328 ceff2 = 0.22 + 2.0e-4*sig_pbarp + 0.2 * std::exp(-0.03*sig_pbarp);
330 if(theDef == theProton)
332 ceff2= 0.078 + 6.657e-4*sig_pbarp + 0.3359*std::exp(-0.03*sig_pbarp);
334 if(theDef == theDeuteron)
336 ceff2 = 0.40 + 3.5e-4 *sig_pbarp + 0.45 * std::exp(-0.02*sig_pbarp);
340 ceff2 = 0.24 + 3.5e-4*sig_pbarp + 0.75 * std::exp(-0.03*sig_pbarp);
342 if(theDef == theAlpha)
344 ceff2 = 0.17 + 3.5e-4*sig_pbarp + 0.45 * std::exp(-0.03*sig_pbarp);
348 fRef=std::sqrt(Ref2);
349 fceff = std::sqrt(ceff2);
357 Q = -std::log(1.-(1.- std::exp(-SlopeMag * Qmax))*
G4UniformRand() )/SlopeMag;
362 BracFunct = BracFunct * Q *
sqr(
sqr(fRef));
370 G4double cosTet=1.0-T/(2.*ptot*ptot);
371 if(cosTet > 1.0 ) cosTet= 1.;
372 if(cosTet < -1.0 ) cosTet=-1.;
373 fTetaCMS=std::acos(cosTet);
387 if(!(T < 0.0 || T >= 0.0))
391 G4cout <<
"G4DiffuseElastic:WARNING: A = " << A
392 <<
" mom(GeV)= " << plab/
GeV
393 <<
" S-wave will be sampled"
402 G4double cosTet=1.0-T/(2.*fptot*fptot);
403 if(cosTet > 1.0 ) cosTet= 1.;
404 if(cosTet < -1.0 ) cosTet=-1.;
405 fTetaCMS=std::acos(cosTet);
423 if(!(T < 0.0 || T >= 0.0))
427 G4cout <<
"G4DiffuseElastic:WARNING: A = " << A
428 <<
" mom(GeV)= " << plab/
GeV
429 <<
" S-wave will be sampled"
438 if(fTmax > 0.) {cost = 1. - 2.0*T/fTmax;}
446 else if( cost <= -1.0)
453 sint = std::sqrt((1.0-cost)*(1.0+cost));
477 if( std::fabs(x) < 0.01 )
497 fBeta = a/std::sqrt(1+a*a);
533 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
535 modvalue = std::fabs(value);
539 value2 = value*
value;
541 fact1 = 57568490574.0 + value2*(-13362590354.0
542 + value2*( 651619640.7
543 + value2*(-11214424.18
544 + value2*( 77392.33017
545 + value2*(-184.9052456 ) ) ) ) );
547 fact2 = 57568490411.0 + value2*( 1029532985.0
548 + value2*( 9494680.718
549 + value2*(59272.64853
550 + value2*(267.8532712
551 + value2*1.0 ) ) ) );
553 bessel = fact1/fact2;
561 shift = modvalue-0.785398164;
563 fact1 = 1.0 + value2*(-0.1098628627e-2
564 + value2*(0.2734510407e-4
565 + value2*(-0.2073370639e-5
566 + value2*0.2093887211e-6 ) ) );
567 fact2 = -0.1562499995e-1 + value2*(0.1430488765e-3
568 + value2*(-0.6911147651e-5
569 + value2*(0.7621095161e-6
570 - value2*0.934945152e-7 ) ) );
572 bessel = std::sqrt(0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2);
584 G4double modvalue, value2, fact1, fact2, arg, shift, bessel;
586 modvalue = std::fabs(value);
588 if ( modvalue < 8.0 )
590 value2 = value*
value;
591 fact1 = value*(72362614232.0 + value2*(-7895059235.0
592 + value2*( 242396853.1
593 + value2*(-2972611.439
594 + value2*( 15704.48260
595 + value2*(-30.16036606 ) ) ) ) ) );
597 fact2 = 144725228442.0 + value2*(2300535178.0
598 + value2*(18583304.74
599 + value2*(99447.43394
600 + value2*(376.9991397
601 + value2*1.0 ) ) ) );
602 bessel = fact1/fact2;
609 shift = modvalue - 2.356194491;
611 fact1 = 1.0 + value2*( 0.183105e-2
612 + value2*(-0.3516396496e-4
613 + value2*(0.2457520174e-5
614 + value2*(-0.240337019e-6 ) ) ) );
616 fact2 = 0.04687499995 + value2*(-0.2002690873e-3
617 + value2*( 0.8449199096e-5
618 + value2*(-0.88228987e-6
619 + value2*0.105787412e-6 ) ) );
621 bessel = std::sqrt( 0.636619772/modvalue)*(std::cos(shift)*fact1 - arg*std::sin(shift)*fact2);
622 if (value < 0.0) bessel = -bessel;
633 if( std::fabs(x) < 0.01 )
637 result = (2.- x2 + x2*x2/6.)/4.;
656 if(cteta1 < -1.) cteta1 = -1.0;
static G4Pow * GetInstance()
static G4AntiHe3 * AntiHe3()
Hep3Vector boostVector() const
virtual ~G4AntiNuclElastic()
static G4double GetNuclearMass(const G4double A, const G4double Z)
virtual G4double SampleInvariantT(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
virtual G4double GetElasticElementCrossSection(const G4ParticleDefinition *aParticle, G4double kinEnergy, G4int Z, G4double A)
static G4AntiDeuteron * AntiDeuteron()
G4double G4NeutronHPJENDLHEData::G4double result
G4double BesselOneByArg(G4double z)
static G4AntiAlpha * AntiAlpha()
G4double CalculateParticleBeta(const G4ParticleDefinition *particle, G4double momentum)
G4double GetAntiHadronNucleonTotCrSc(const G4ParticleDefinition *aParticle, G4double kinEnergy)
G4GLOB_DLL std::ostream G4cout
G4double Z13(G4int Z) const
static G4AntiProton * AntiProton()
HepLorentzVector & boost(double, double, double)
static G4Triton * Triton()
static G4Proton * Proton()
static G4Neutron * Neutron()
static G4Deuteron * Deuteron()
G4double SampleThetaLab(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
virtual G4double GetTotalElementCrossSection(const G4ParticleDefinition *aParticle, G4double kinEnergy, G4int Z, G4double A)
G4double BesselJzero(G4double z)
G4double CalculateAm(G4double momentum, G4double n, G4double Z)
G4double GetPDGMass() const
G4double SampleThetaCMS(const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
G4double A13(G4double A) const
G4double DampFactor(G4double z)
G4double BesselJone(G4double z)
G4double Z23(G4int Z) const
const XML_Char int const XML_Char * value
G4double CalculateZommerfeld(G4double beta, G4double Z1, G4double Z2)
static G4AntiTriton * AntiTriton()
G4double GetPDGCharge() const
G4double GetcosTeta1(G4double plab, G4int A)
static G4AntiNeutron * AntiNeutron()
G4int GetBaryonNumber() const