00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // ---------------------------------------------------------------------- 00031 // Constants, typedefs, enums for Geometry Section 00032 // 00033 // History: 00034 // 30.06.95 P.Kent 00035 00036 #ifndef GeomDefs_hh 00037 #define GeomDefs_hh 00038 00039 #include "globals.hh" 00040 00041 // `Infinity' - Distance returned for no intersection etc. 00042 static const G4double kInfinity = 9.0E99; 00043 00044 // Minimum cosine of angle between surface normal & track direction 00045 // for exiting normal optimisation 00046 static const double kMinExitingNormalCosine = 1E-3; 00047 00048 // Define axes for function params etc. 00049 // X/Y/ZAxis = Normal Catesian axes 00050 // Rho = Radial axis in cylindrical polar 00051 // Radial3D = Radial axis in spherical polar 00052 // Phi = Phi axis in cylindrical polar 00053 // kUndefined = Not defined axis 00054 enum EAxis {kXAxis,kYAxis,kZAxis,kRho,kRadial3D,kPhi,kUndefined}; 00055 00056 // G4VSolid::Inside return codes 00057 // kSurface => within tolerance of exact surface 00058 enum EInside {kOutside,kSurface,kInside}; 00059 00060 // kNormal = (G4PVPlacement) Conventional positioning 00061 // kReplica = (G4PVReplica) Consumed parameterised case 00062 // => Distances & location computed with 00063 // simple formulae & MOTHER volume(s) 00064 // must also be checked 00065 // kParameterised = (G4PVParameterised) General parameterised volume 00066 // => Distance & location computed to volumes 00067 // after setup/modification via user object 00068 enum EVolume {kNormal,kReplica,kParameterised}; 00069 00070 // Default max size of Navigation history 00071 // 00072 static const G4int kHistoryMax = 15; 00073 00074 // History increase stride of Navigation history 00075 // 00076 static const G4int kHistoryStride = 16; 00077 00078 // Voxel stack depth maximum [no resizing] 00079 // 00080 static const G4int kNavigatorVoxelStackMax = 3; 00081 00082 #endif /* GeomDefs_hh */