1 #ifndef __JGEOMETRY3DTESTKIT__ 
    2 #define __JGEOMETRY3DTESTKIT__ 
   37                         getRandom<double>(-1.0, +1.0),
 
   38                         getRandom<double>(-1.0, +1.0));
 
   51     gRandom->Sphere(
x, 
y, z, 1.0);
 
   66     gRandom->Sphere(
x, 
y, z, 1.0);
 
   68     const double alpha = getRandom<double>(-2.0*
PI, +2.0*
PI);
 
   82                           getRandom<double>(0.0, 
PI),
 
   83                           getRandom<double>(0.0, 
PI));
 
  109     const double R3  = gRandom->Uniform(0.0, R3max);
 
  110     const double ct  = gRandom->Uniform(-1.0, +1.0);
 
  111     const double phi = gRandom->Uniform(-
PI, +
PI);
 
  113     const double R   = cbrt(R3);
 
  114     const double st  = sqrt((1.0 + ct) * (1.0 - ct));
 
  133     const double R2  = gRandom->Uniform(0.0, R2max);
 
  134     const double phi = gRandom->Uniform(-
PI, +
PI);
 
  135     const double z   = gRandom->Uniform(cylinder.
getZmin(), cylinder.
getZmax());
 
  137     const double R   = sqrt(R2);
 
  140                      cylinder.
getY()  +  R * sin(phi),
 
Definition of random value generator.
 
double getRadius() const
Get radius.
 
double getY() const
Get y position.
 
double getX() const
Get x position.
 
double getZmin() const
Get minimal z position.
 
double getZmax() const
Get maximal z position.
 
Data structure for direction in three dimensions.
 
Data structure for Euler angles in three dimensions.
 
Data structure for position in three dimensions.
 
const JPosition3D & getPosition() const
Get position.
 
Data structure for unit quaternion in three dimensions.
 
double getRadius() const
Get radius.
 
Data structure for vector in three dimensions.
 
Data structure for normalised vector in three dimensions.
 
Auxiliary classes and methods for 3D geometrical objects and operations.
 
JVector3D getRandomPosition(const JCylinder3D &cylinder)
Get random position.
 
void randomize(JEulerMatrix3D *p)
Randomize Euler matrix.
 
T getRandom()
Get random value.
 
static const double PI
Mathematical constants.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).