]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: global | |
3 | // | |
e5967ab3 | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class TG4Globals | |
7 | // ---------------- | |
8 | // Class provides the basic types and functions of general use. | |
2817d3e2 | 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 | ||
e5967ab3 | 15 | #include "TG4G3Control.h" |
16 | ||
2817d3e2 | 17 | #include <globals.hh> |
63c8351a | 18 | #include <g4std/vector> |
205e684d | 19 | #include <g4std/set> |
2817d3e2 | 20 | #include <g4rw/tvordvec.h> |
21 | #include <g4rw/tpordvec.h> | |
90f51010 | 22 | #include <G4RotationMatrix.hh> |
2817d3e2 | 23 | |
2817d3e2 | 24 | class G4Material; |
25 | class G4Element; | |
26 | ||
e5967ab3 | 27 | // basic types containers |
3c28d589 | 28 | typedef G4std::vector<G4bool> TG4boolVector; |
29 | typedef G4std::vector<G4int> TG4intVector; | |
e5967ab3 | 30 | typedef G4std::vector<G4double> TG4doubleVector; |
31 | typedef G4std::vector<G4String> TG4StringVector; | |
205e684d | 32 | typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet; |
2817d3e2 | 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 | |
90f51010 | 47 | static void AppendNumberToString(G4String& string, G4int number); |
e5967ab3 | 48 | static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue); |
49 | static void PrintStars(G4bool emptyLineFirst); | |
2817d3e2 | 50 | |
51 | protected: | |
52 | TG4Globals(); | |
53 | // only typedefs's and static methods | |
54 | }; | |
55 | ||
56 | #endif //ALGLOBALS_H |