60 FragmentAthrd = ResidualAthrd;
61 FragmentA = theA + ResidualA;
71 rj =
static_cast<G4double>(nCharged)/static_cast<G4double>(nParticles);
90 FragmentA = theA + ResidualA;
91 FragmentAthrd =
g4pow->
Z13(FragmentA);
98 std::ostringstream errOs;
99 errOs <<
"BAD PROTON CROSS SECTION OPTION !!" <<
G4endl;
107 G4int aZ = ResidualZ;
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;
151 Ec = 1.44*theZ*ResidualZ/(1.5*ResidualAthrd+delta);
152 p = p0 + p1/Ec + p2/(Ec*Ec);
153 landa = landa0*ResidualA + landa1;
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);
183 G4int rnneu=ResidualA-ResidualZ;
187 b0=2.247-0.915*(1.-1./ResidualAthrd);
188 fac1=b0*(1.-1./ResidualAthrd);
190 if(rnneu > 1.5) { fac2 =
g4pow->
logZ(rnneu); }
191 xine_th= 1.e+31*fac*fac2*(1.+ResidualAthrd-fac1);
192 xine_th=(1.-0.15*
G4Exp(-ekin))*xine_th/(1.00-0.0007*ResidualA);
193 ff1=0.70-0.0020*ResidualA;
195 ff3=0.8+18/
G4double(ResidualA)-0.002*ResidualA;
197 fac=1.-(1./(1.+
G4Exp(-8.*ff1*(log10E + 1.37*ff2))));
198 xine_th=xine_th*(1.+ff3*fac);
199 ff1=1.-1/
G4double(ResidualA)-0.001*ResidualA;
200 ff2=1.17-2.7/
G4double(ResidualA)-0.0014*ResidualA;
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;
207 errOs <<
"RESIDUAL: A=" << ResidualA <<
" Z=" << ResidualZ <<
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;
248 if (ResidualA <= 60) { signor = 0.92; }
249 else if (ResidualA < 100) { signor = 0.8 + ResidualA*0.002; }
251 ec = 1.44 * theZ * ResidualZ / (1.5*ResidualAthrd+ra);
253 p = p0 + p1/ec + p2/ecsq;
254 landa = landa0*ResidualA + landa1;
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; }
278 elab = K * FragmentA /
G4double(ResidualA);
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);
297 geom = 1.23*ResidualAthrd + ra + 4.573/geom;
298 geom = 31.416 * geom * geom;
G4double GetOpt3(G4double K)
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)