]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Globals.cxx
only comments added
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.cxx
CommitLineData
2817d3e2 1// $Id$
2// Category: global
3//
4// See the class description in the header file.
5
6#include "TG4Globals.h"
7
8#include <stdlib.h>
9
10TG4Globals::TG4Globals() {
11//
12}
13
14TG4Globals::~TG4Globals() {
15//
16}
17
18// static methods
19
20void TG4Globals::Exception(const char* string)
21{
22// Prints error message end exits the program.
23// ---
24
25 if (string)
26 { cerr << endl << " " << string << endl; }
27 cerr << "*** TG4Exception: Aborting execution ***" << endl;
28 exit(1);
29}
30
31void TG4Globals::Warning(const char* string)
32{
33// Prints warning message.
34// ---
35
36 cerr << "++++ TG4Warning: ++++" << endl;
37 if (string)
38 { cerr << " " << string << endl; }
39 cerr << "+++++++++++++++++++++++" << endl;
40}