// See the class description in the header file.
#include "AliGlobals.h"
+#include "TG4Globals.h"
#include <stdlib.h>
// ---
if (s)
- { cerr << endl << " " << s << endl; }
- cerr << "*** AliceException: Aborting execution ***" << endl;
+ { G4cerr << G4endl << " " << s << G4endl; }
+ G4cerr << "*** AliceException: Aborting execution ***" << G4endl;
exit(1);
}
// Prints warning message.
// ---
- cerr << "+++ Alice Warning: +++" << endl;
+ G4cerr << "+++ Alice Warning: +++" << G4endl;
if (s)
- { cerr << " " << s << endl; }
- cerr << "++++++++++++++++++++++" << endl;
+ { G4cerr << " " << s << G4endl; }
+ G4cerr << "++++++++++++++++++++++" << G4endl;
}
#ifdef G4USE_STL
{
// Appends number to string.
// ---
-
- const char* kpNumber="0123456789";
- G4String p=""; G4String q="";
- do
- {
- G4int b=a/10;
- G4int c=a%10;
- p=kpNumber[c];
- q=p.append(q);
- a=b;
- } while (a>0);
- s.append(q);
-};
+ TG4Globals::AppendNumberToString(s, a);
+}
G4int AliGlobals::StringToInt(G4String s)
{