47 #ifndef G4RANDOMDIR_HH
48 #define G4RANDOMDIR_HH
50 #include <CLHEP/Units/PhysicalConstants.h>
59 G4double rho = std::sqrt((1.+z)*(1.-z));
61 return G4ThreeVector(rho*std::cos(phi), rho*std::sin(phi), z);
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector G4RandomDirection()
static constexpr double twopi