43 return 0.76 + 2.2 /
G4cbrt(A);
50 snn = -1174.8 / (e * e) + 3088.5 / e + 5.3107;
52 snn = 93074.0 / (e * e) - 11.148 / e + 22.429;
62 spn = -5057.4 / (e * e) + 9069.2 / e + 6.9466;
64 spn = 239380.0 / (e * e) + 1802.0 / e + 27.147;
76 return C *
G4cbrt(arg*arg);
80 return x==0 ? 0. : (x<0?-1.:1.)*std::exp(std::log(std::fabs(x))/3.);
90 r1 = r1 > eps ? r1 : eps;
92 r2 = r2 > eps ? r2 : eps;
93 r2 = r2 < 1.0 - eps ? r2 : 1.0 - eps;
95 return sigma * std::sin(twopi * r1) * std::sqrt(-2.0 * std::log(r2));
105 return std::pair<G4double, G4double>(CT, std::sqrt(1.0 - CT*CT));
112 G4double pt = p * std::sqrt(std::fabs(1.0 - ct * ct));
117 pvec.
set(pt*std::cos(phi), pt*std::sin(phi), p*ct);
132 pvec.
set(pt*std::cos(phi), pt*std::sin(phi), p*COS_SIN.first);
void set(double x, double y, double z)
void setVectM(const Hep3Vector &spatial, double mass)
G4LorentzVector generateWithFixedTheta(G4double ct, G4double p, G4double mass=0.)
G4LorentzVector generateWithRandomAngles(G4double p, G4double mass=0.)
G4double csNN(G4double e)
std::pair< G4double, G4double > randomCOS_SIN()
G4double randomGauss(G4double sigma)
G4double FermiEnergy(G4int A, G4int Z, G4int ntype)
G4double csPN(G4double e)
G4double G4cbrt(G4double x)