1 #ifndef LowEnergyFastSimParam_h
2 #define LowEnergyFastSimParam_h
5 #include "Randomize.hh"
10 const G4double e2 = energy *
energy;
11 const G4double e3 = e2 *
energy;
12 return -6.42310317e-07 * e3 + 1.96988997e-04 * e2 - 2.14064635e-02 * energy + 1.02186764e+00;
16 constexpr
const G4double
r1 = 156.52094133;
17 constexpr
const G4double
r2 = -1.02220543;
18 const G4double r0 = r1 + r2 *
energy;
19 const G4double erand = G4UniformRand();
21 return sqrt(r0 / erand - r0);
25 constexpr
const G4double
alpha = 0.02211515;
26 constexpr
const G4double
t = 0.66968625;
27 const G4double erand = G4UniformRand();
29 return -
log(erand) / alpha +
t;
static std::vector< std::string > checklist log
G4double GetRadius(G4double energy) const
G4double GetInPointEnergyFraction(G4double energy) const