71 rj =
static_cast<G4double>(nCharged)/static_cast<G4double>(nParticles);
98 std::ostringstream errOs;
99 errOs <<
"BAD PROTON CROSS SECTION OPTION !!" <<
G4endl;
115 C = ((((0.15417e-06*aZ) - 0.29875e-04)*aZ + 0.21071e-02)*aZ
116 - 0.66612e-01)*aZ + 0.98375;
134 if (K > 50*
MeV) { Kc = 50*
MeV; }
136 G4double landa, landa0, landa1, mu, mm0, mu1,nu, nu0, nu1, nu2,xs;
137 G4double p, p0, p1, p2,Ec,delta,q,r,ji;
152 p = p0 + p1/Ec + p2/(Ec*Ec);
157 nu = resmu1*(nu0 + nu1*Ec + nu2*(Ec*Ec));
158 q = landa - nu/(Ec*Ec) - 2*p*Ec;
159 r = mu + 2*nu/Ec + p*(Ec*Ec);
162 if(Kc < Ec) { xs = p*Kc*Kc + q*Kc + r;}
163 else {xs = p*(Kc - ji)*(Kc - ji) + landa*Kc + mu + nu*(2 - Kc/ji)/ji ;}
164 if (xs <0.0) {xs=0.0;}
174 G4double eekin,ekin,ff1,ff2,ff3,r0,
fac,fac1,fac2,
b0,xine_th(0);
190 if(rnneu > 1.5) { fac2 =
g4pow->
logZ(rnneu); }
197 fac=1.-(1./(1.+
G4Exp(-8.*ff1*(log10E + 1.37*ff2))));
198 xine_th=xine_th*(1.+ff3*
fac);
201 fac=-8.*ff1*(log10E + 2.0*ff2);
202 fac=1./(1.+
G4Exp(fac));
205 std::ostringstream errOs;
206 G4cout<<
"WARNING: negative Wellisch cross section "<<
G4endl;
208 errOs <<
" xsec("<<ekin<<
" MeV) ="<<xine_th <<
G4endl;
220 G4double landa, landa0, landa1, mu, mm0, mu1,nu, nu0, nu1, nu2;
242 G4double ec,ecsq,xnulam,etest(0.),ra(0.),
a,w,c,signor(1.),signor2,sig;
243 G4double b,ecut,cut,ecut2,geom,elab;
253 p = p0 + p1/ec + p2/ecsq;
257 nu = a* (nu0+nu1*ec+nu2*ecsq);
263 if (xnulam > spill) { xnulam=0.; }
264 if (xnulam >= flow) { etest =std::sqrt(xnulam) + 7.; }
266 a = -2.*p*ec + landa - nu/ecsq;
267 b = p*ecsq + mu + 2.*nu/ec;
270 if (cut > 0.) { ecut = std::sqrt(cut); }
271 ecut = (ecut-
a) / (p+p);
277 if (cut < 0.) { ecut2 = ecut; }
281 if (elab > ecut2) { sig = (p*elab*elab+a*elab+b) * signor; }
283 signor2 = (ec-elab-c) / w;
284 signor2 = 1. +
G4Exp(signor2);
288 sig = (landa*elab+mu+nu/elab) * signor;
291 if (xnulam < flow || elab < etest)
293 if (sig <0.0) {sig=0.0;}
296 geom = std::sqrt(
theA*K);
298 geom = 31.416 * geom * geom;
G4double GetOpt3(G4double K)
static const G4double fac
G4double ResidualA13() const
virtual G4double GetRj(G4int NumberParticles, G4int NumberCharged)
G4double GetOpt0(G4double ekin)
virtual G4double CrossSection(G4double ekin)
G4double logZ(G4int Z) const
G4GLOB_DLL std::ostream G4cout
G4double Z13(G4int Z) const
virtual G4double GetBeta()
virtual G4double GetAlpha()
G4double GetCoulombBarrier() const
virtual ~G4PreCompoundProton()
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double theCoulombBarrier
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double GetOpt1(G4double K)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double powZ(G4int Z, G4double y) const
G4double GetOpt2(G4double K)