35#define INCLXX_IN_GEANT4_MODE 1
56 static G4bool generated =
false;
64 return sigma*std::sqrt(-2*std::log(u))*std::cos(v);
69 return sigma*std::sqrt(-2*std::log(u))*std::sin(v);
76 const G4double stheta = std::sqrt(1.-ctheta*ctheta);
79 norm * stheta * std::cos(phi),
80 norm * stheta * std::sin(phi),
static ThreeVector normVector(G4double norm=1.)
static G4double gauss(G4double sigma=1.)