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 AliGlobals::AliGlobals() {
18 AliGlobals::~AliGlobals() {
24 void AliGlobals::Exception(const char* s)
26 // Prints error message end exits the program.
30 { G4cerr << G4endl << " " << s << G4endl; }
31 G4cerr << "*** AliceException: Aborting execution ***" << G4endl;
35 void AliGlobals::Warning(const char* s)
37 // Prints warning message.
40 G4cerr << "+++ Alice Warning: +++" << G4endl;
42 { G4cerr << " " << s << G4endl; }
43 G4cerr << "++++++++++++++++++++++" << G4endl;
47 void AliGlobals::Exception(G4std::string s) {
49 AliGlobals::Exception(s.c_str());
52 void AliGlobals::Exception(G4String s) {
54 AliGlobals::Exception(s.c_str());
57 void AliGlobals::Warning(G4std::string s) {
59 AliGlobals::Warning(s.c_str());
62 void AliGlobals::Warning(G4String s) {
64 AliGlobals::Warning(s.c_str());
68 void AliGlobals::AppendNumberToString(G4String& s, G4int a)
70 // Appends number to string.
72 TG4Globals::AppendNumberToString(s, a);
75 G4int AliGlobals::StringToInt(G4String s)
77 // Converts one char string to integer number.