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 // Global Constants and typedefs 00031 // 00032 // History: 00033 // 30.06.95 P.Kent - Created 00034 // 16.02.96 G.Cosmo - Added inclusion of "templates.hh" 00035 // 03.03.96 M.Maire - Added inclusion of "G4PhysicalConstants.hh" 00036 // 08.11.96 G.Cosmo - Added cbrt() definition and G4ApplicationState enum type 00037 // 29.11.96 G.Cosmo - Added typedef of HepBoolean to G4bool 00038 // 22.10.97 M.Maire - Moved PhysicalConstants at the end of the file 00039 // 04.12.97 G.Cosmo,E.Tcherniaev - Migrated to CLHEP 00040 // 26.08.98 J.Allison,E.Tcherniaev - Introduced min/max/sqr/abs functions 00041 // 22.09.98 G.Cosmo - Removed min/max/sqr/abs functions and replaced with 00042 // inclusion of CLHEP/config/TemplateFunctions.h for CLHEP-1.3 00043 // 15.12.99 G.Garcia - Included min, max definitions for NT with ISO standard 00044 // 15.06.01 G.Cosmo - Removed cbrt() definition 00045 00046 #ifndef GLOBALS_HH 00047 #define GLOBALS_HH 00048 00049 #include "G4ios.hh" 00050 00051 #ifndef FALSE 00052 #define FALSE 0 00053 #endif 00054 #ifndef TRUE 00055 #define TRUE 1 00056 #endif 00057 00058 #include <algorithm> // Retrieve definitions of min/max 00059 00060 // Include base types 00061 #include "G4Types.hh" 00062 00063 // Get definition of G4String 00064 #include "G4String.hh" 00065 00066 // Includes some additional definitions: sqr, G4SwapPtr, G4SwapObj. 00067 #include "templates.hh" 00068 00069 // Includes Physical Constants and System of Units 00070 #include "G4PhysicalConstants.hh" 00071 #include "G4SystemOfUnits.hh" 00072 00073 // Global error function 00074 #include "G4ExceptionSeverity.hh" 00075 00076 typedef std::ostringstream G4ExceptionDescription; 00077 00078 void G4Exception(const char* originOfException, 00079 const char* exceptionCode, 00080 G4ExceptionSeverity severity, 00081 const char* comments); 00082 void G4Exception(const char* originOfException, 00083 const char* exceptionCode, 00084 G4ExceptionSeverity severity, 00085 G4ExceptionDescription & description); 00086 void G4Exception(const char* originOfException, 00087 const char* exceptionCode, 00088 G4ExceptionSeverity severity, 00089 G4ExceptionDescription & description, 00090 const char* comments); 00091 00092 #endif /* GLOBALS_HH */ 00093