]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4Globals.h
0731ccc1ac496367e79a669fd8f86e14c5bc9e36
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.h
1 // $Id$
2 // Category: global
3 //
4 // Class for generally used basic types and functions.
5 // It is protected from instantiating (only static data members
6 // and static methods are defined).
7
8 #ifndef TG4_GLOBALS_H
9 #define TG4_GLOBALS_H
10
11 #include "TG3Flag.h"
12
13 #include <globals.hh>
14 #include <g4std/vector>
15 #include <g4rw/tvordvec.h>
16 #include <g4rw/tpordvec.h>
17
18 class G4Material;
19 class G4Element;
20
21 typedef vector<G4bool>   TG4boolVector;
22 typedef G4RWTValOrderedVector<G4double> TG4doubleVector;
23 typedef G4RWTValOrderedVector<G4String> TG4StringVector;
24 typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector;
25 typedef G4RWTPtrOrderedVector<G4Material>   TG4MaterialVector;
26 typedef G4RWTPtrOrderedVector<G4Element>    TG4ElementVector;  
27
28 class TG4Globals
29 {
30   public:
31     // --> protected 
32     // TG4Globals();
33     virtual ~TG4Globals();
34
35     // static methods
36     static void Exception(const char* string=0);
37       // Global error function prints string to cerr, and aborts
38       // program - according to G4Exception.cc
39     static void Warning(const char* string=0);
40       // Global warning function prints string to cerr
41
42   protected:
43     TG4Globals();  
44       // only typedefs's and static methods
45 };  
46
47 #endif //ALGLOBALS_H