4 // See the class description in the header file.
6 #include "AliGlobals.h"
7 #include "TG4Globals.h"
11 // static data members
12 const G4double AliGlobals::fgkDefaultCut = 2.0*mm;
14 //_____________________________________________________________________________
15 AliGlobals::AliGlobals() {
19 //_____________________________________________________________________________
20 AliGlobals::~AliGlobals() {
26 //_____________________________________________________________________________
27 void AliGlobals::Exception(const char* s)
29 // Prints error message end exits the program.
33 { G4cerr << G4endl << " " << s << G4endl; }
34 G4cerr << "*** AliceException: Aborting execution ***" << G4endl;
38 //_____________________________________________________________________________
39 void AliGlobals::Warning(const char* s)
41 // Prints warning message.
44 G4cerr << "+++ Alice Warning: +++" << G4endl;
46 { G4cerr << " " << s << G4endl; }
47 G4cerr << "++++++++++++++++++++++" << G4endl;
51 //_____________________________________________________________________________
52 void AliGlobals::Exception(G4std::string s) {
54 AliGlobals::Exception(s.c_str());
57 //_____________________________________________________________________________
58 void AliGlobals::Exception(G4String s) {
60 AliGlobals::Exception(s.c_str());
63 //_____________________________________________________________________________
64 void AliGlobals::Warning(G4std::string s) {
66 AliGlobals::Warning(s.c_str());
69 //_____________________________________________________________________________
70 void AliGlobals::Warning(G4String s) {
72 AliGlobals::Warning(s.c_str());
76 //_____________________________________________________________________________
77 void AliGlobals::AppendNumberToString(G4String& s, G4int a)
79 // Appends number to string.
81 TG4Globals::AppendNumberToString(s, a);
84 //_____________________________________________________________________________
85 G4int AliGlobals::StringToInt(G4String s)
87 // Converts one char string to integer number.
100 if (s=="9") return 9;