Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: geomdefs.hh,v 1.1 1999/01/08 16:31:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// Constants, typedefs, enums for Geometry Section
|
||||
//
|
||||
// History:
|
||||
// 30.06.95 P.Kent
|
||||
|
||||
#ifndef GEOMDEFS_HH
|
||||
#define GEOMDEFS_HH
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
// `Infinity' - Distance returned for no intersection etc.
|
||||
const G4double kInfinity = 9E99;
|
||||
|
||||
// Thickness of shapes for Inside function / tracking.
|
||||
// Should be greater than largest math error from the shape
|
||||
// distance calculation routines.
|
||||
// Tolerance is centred on surface: Inside routine uses a
|
||||
// tolerance dx +/- kTol/2
|
||||
// Note: values not `tuned', and because of approximations kRadtolerance and
|
||||
// kAngTolerance may not always be used as an exact radius
|
||||
const G4double kCarTolerance = 1E-9;
|
||||
const G4double kRadTolerance = 1E-9;
|
||||
const G4double kAngTolerance = 1E-9;
|
||||
|
||||
// Define axes for function params etc.
|
||||
// X/Y/ZAxis = Normal Catesian axes
|
||||
// Radial2D = Radial axis in cylindrical polar
|
||||
// Radial3D = Radial axis in spherical polar
|
||||
enum EAxis {kXAxis,kYAxis,kZAxis,kRadial2D,kRadial3D};
|
||||
|
||||
// VShape::Inside routine return codes
|
||||
// kSurface => within tolerance of exact surface
|
||||
enum EInside {kOutside,kSurface,kInside};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user