]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4Globals.h
Example macro corrected
[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 <globals.hh>
12 #include <g4std/vector>
13 #include <g4std/set>
14 #include <g4rw/tvordvec.h>
15 #include <g4rw/tpordvec.h>
16 #include <G4RotationMatrix.hh>
17
18 class G4Material;
19 class G4Element;
20
21 typedef G4std::vector<G4bool>  TG4boolVector;
22 typedef G4std::vector<G4int>   TG4intVector;
23 typedef G4std::vector<const G4RotationMatrix*> TG4RotationMatrixVector;
24 typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet; 
25 typedef G4RWTValOrderedVector<G4double> TG4doubleVector;
26 typedef G4RWTValOrderedVector<G4String> TG4StringVector;
27 typedef G4RWTPtrOrderedVector<G4Material>   TG4MaterialVector;
28 typedef G4RWTPtrOrderedVector<G4Element>    TG4ElementVector;  
29
30 class TG4Globals
31 {
32   public:
33     // --> protected 
34     // TG4Globals();
35     virtual ~TG4Globals();
36
37     // static methods
38     static void Exception(const char* string=0);
39       // Global error function prints string to cerr, and aborts
40       // program - according to G4Exception.cc
41     static void Warning(const char* string=0);
42       // Global warning function prints string to cerr
43     static void AppendNumberToString(G4String& string, G4int number);
44
45   protected:
46     TG4Globals();  
47       // only typedefs's and static methods
48 };  
49
50 #endif //ALGLOBALS_H