]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4Globals.h
Minor improvements on the code
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.h
1 // $Id$
2 // Category: global
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class TG4Globals
7 // ----------------
8 // Class provides the basic types and functions of general use. 
9 // It is protected from instantiating (only static data members
10 // and static methods are defined).
11
12 #ifndef TG4_GLOBALS_H
13 #define TG4_GLOBALS_H
14
15 #include "TG4G3Control.h"
16
17 #include <globals.hh>
18 #include <g4std/vector>
19 #include <g4std/set>
20 #include <g4rw/tvordvec.h>
21 #include <g4rw/tpordvec.h>
22 #include <G4RotationMatrix.hh>
23
24 class G4Material;
25 class G4Element;
26
27 // basic types containers
28 typedef G4std::vector<G4bool>   TG4boolVector;
29 typedef G4std::vector<G4int>    TG4intVector;
30 typedef G4std::vector<G4double> TG4doubleVector;
31 typedef G4std::vector<G4String> TG4StringVector;
32 typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet; 
33
34 class TG4Globals
35 {
36   public:
37     // --> protected 
38     // TG4Globals();
39     virtual ~TG4Globals();
40
41     // static methods
42     static void Exception(const char* string=0);
43       // Global error function prints string to cerr, and aborts
44       // program - according to G4Exception.cc
45     static void Warning(const char* string=0);
46       // Global warning function prints string to cerr
47     static void AppendNumberToString(G4String& string, G4int number);
48     static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue);
49     static void PrintStars(G4bool emptyLineFirst);
50
51   protected:
52     TG4Globals();  
53       // only typedefs's and static methods
54 };  
55
56 #endif //ALGLOBALS_H