]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: global | |
3 | // | |
7005154f | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class AliGlobals | |
7 | // ---------------- | |
8 | // Class provides the functions of general use. | |
676fb573 | 9 | // It is protected from instantiating (only static data members |
10 | // and static methods are defined). | |
11 | ||
12 | ||
13 | #ifndef ALI_GLOBALS_H | |
14 | #define ALI_GLOBALS_H | |
15 | ||
16 | #include <globals.hh> | |
17 | ||
18 | #ifdef G4USE_STL | |
19 | #include <string> | |
20 | #endif | |
21 | ||
22 | class AliGlobals | |
23 | { | |
24 | public: | |
25 | // --> protected | |
26 | // AliGlobals(); | |
27 | virtual ~AliGlobals(); | |
28 | ||
29 | // static methods | |
30 | static void Exception(const char* s=0); | |
31 | // Global error function prints string to cerr, and aborts | |
32 | // program - according to G4Exception.cc | |
33 | static void Warning(const char* s=0); | |
34 | // Global warning function prints string to cerr | |
35 | #ifdef G4USE_STL | |
36 | static void Exception(G4std::string s); | |
37 | static void Exception(G4String s); | |
38 | static void Warning(G4std::string s); | |
39 | static void Warning(G4String s); | |
40 | #endif | |
41 | ||
42 | static void AppendNumberToString(G4String& string, G4int number); | |
43 | static G4int StringToInt(G4String string); | |
44 | ||
45 | // static get methods | |
46 | static G4double DefaultCut(); | |
47 | ||
48 | protected: | |
49 | AliGlobals(); | |
50 | // only static data members and methods | |
51 | ||
52 | private: | |
53 | // static data members | |
c63f260d | 54 | static const G4double fgkDefaultCut; //default cut value |
676fb573 | 55 | }; |
56 | ||
57 | // inline methods | |
58 | ||
59 | inline G4double AliGlobals::DefaultCut() | |
c63f260d | 60 | { return fgkDefaultCut; } |
676fb573 | 61 | |
62 | #endif //ALI_GLOBALS_H |