67 rj =
static_cast<G4double>(nParticles - nCharged)/
68 static_cast<G4double>(nParticles);
93 std::ostringstream errOs;
94 errOs <<
"BAD NEUTRON CROSS SECTION OPTION !!" <<
G4endl;
121 if (K > 50*
MeV) { Kc = 50*
MeV; }
123 G4double landa, landa0, landa1, mu, mm0, mu1,nu, nu0, nu1, nu2,xs;
134 nu = nu0*ResidualAthrd*
ResidualA + nu1*ResidualAthrd*ResidualAthrd + nu2 ;
135 xs=landa*Kc + mu + nu/Kc;
137 std::ostringstream errOs;
138 G4cout<<
"WARNING: NEGATIVE OPT=1 neutron cross section "<<
G4endl;
140 errOs <<
" xsec("<<Kc<<
" MeV) ="<<xs <<
G4endl;
149 G4double landa, landa0, landa1, mu, mm0, mu1,nu, nu0, nu1, nu2;
151 G4double flow,ec,ecsq,xnulam,etest(0.),ra(0.),
a,signor(1.),sig;
152 G4double b,ecut,cut,ecut2,geom,elab;
170 nu = nu0*ResidualAthrd*
ResidualA + nu1*ResidualAthrd*ResidualAthrd + nu2;
173 if (nu < 0.) { nu=-nu; }
184 a = -2.*p*ec + landa - nu/ecsq;
185 b = p*ecsq + mu + 2.*nu/ec;
188 if (cut > 0.) { ecut = std::sqrt(cut); }
189 ecut = (ecut-
a) / (p+p);
191 if (cut < 0.) { ecut2 = ecut - 2.; }
195 if (elab > ecut2) { sig = (p*elab*elab+a*elab+b) * signor; }
198 sig = (landa*elab+mu+nu/elab) * signor;
200 if (xnulam < flow || elab < etest) {
return sig; }
201 geom = std::sqrt(
theA*K);
202 geom = 1.23*ResidualAthrd + ra + 4.573/geom;
203 geom = 31.416 * geom * geom;
G4double GetOpt12(G4double K)
G4double ResidualA13() const
G4double GetOpt34(G4double K)
G4double GetOpt0(G4double ekin)
virtual G4double CrossSection(G4double ekin)
G4GLOB_DLL std::ostream G4cout
G4double Z13(G4int Z) const
virtual ~G4PreCompoundNeutron()
virtual G4double GetAlpha()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual G4double GetBeta()
virtual G4double GetRj(G4int NumberParticles, G4int NumberCharged)