30 #if ((defined(G4MULTITHREADED) && !defined(G4USE_STD11)) || \
31 !__has_feature(cxx_thread_local))
32 #define CLANG_NOSTDTLS
36 #if (defined(G4MULTITHREADED) && \
37 (!defined(G4USE_STD11) || (defined(CLANG_NOSTDTLS))))
59 return fire( mean, stdDev );
79 v1 = 2.0 * anEngine->flat() - 1.0;
80 v2 = 2.0 * anEngine->flat() - 1.0;
84 fac = std::sqrt(-2.0*std::log(r)/r);
94 for (
G4int i=0; i<size; ++i)
95 vect[i] =
shoot(mean,stdDev);
112 v1 = 2.0 * anEngine->flat() - 1.0;
113 v2 = 2.0 * anEngine->flat() - 1.0;
117 fac = std::sqrt( -2.0*std::log(r)/r);
128 for (
G4int i=0; i<size; ++i)
129 vect[i] =
shoot(anEngine,mean,stdDev);
151 fac = std::sqrt(-2.0*std::log(r)/r);
160 for (
G4int i=0; i<size; ++i)
167 for (
G4int i=0; i<size; ++i)
168 vect[i] =
fire( mean, stdDev );
static CLHEP::HepRandomEngine * getTheEngine()
virtual G4double operator()()
static void shootArray(const G4int size, G4double *vect, G4double mean=0.0, G4double stdDev=1.0)
static G4ThreadLocal G4double nextGauss_st
void fireArray(const G4int size, G4double *vect)
static const G4double fac
static void setFlag(G4bool val)
CLHEP::HepRandomEngine * localEngine
static void setVal(G4double nextVal)
static G4ThreadLocal G4bool set_st