Import Geant4 9.6.0 source tree
This commit is contained in:
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4RandomTools.hh,v 1.2 2008-11-07 17:54:21 gum Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -44,6 +43,8 @@
|
||||
#ifndef G4RANDOMTOOLS_HH
|
||||
#define G4RANDOMTOOLS_HH
|
||||
|
||||
#include <CLHEP/Units/PhysicalConstants.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4RandomDirection.hh"
|
||||
@@ -80,7 +81,7 @@ inline G4ThreeVector G4PlaneVectorRand(const G4ThreeVector& normal)
|
||||
G4ThreeVector vec1 = normal.orthogonal();
|
||||
G4ThreeVector vec2 = vec1.cross(normal);
|
||||
|
||||
G4double phi = twopi*G4UniformRand();
|
||||
G4double phi = CLHEP::twopi*G4UniformRand();
|
||||
G4double cosphi = std::cos(phi);
|
||||
G4double sinphi = std::sin(phi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user