4 // See the class description in the header file.
6 #include "TG4Globals.h"
10 TG4Globals::TG4Globals() {
14 TG4Globals::~TG4Globals() {
20 void TG4Globals::Exception(const char* string)
22 // Prints error message end exits the program.
26 { G4cerr << G4endl << " " << string << G4endl; }
27 G4cerr << "*** TG4Exception: Aborting execution ***" << G4endl;
31 void TG4Globals::Warning(const char* string)
33 // Prints warning message.
36 G4cerr << "++++ TG4Warning: ++++" << G4endl;
38 { G4cerr << " " << string << G4endl; }
39 G4cerr << "+++++++++++++++++++++++" << G4endl;