]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Globals.h
Added EDEFINE with the flags from Geant4
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.h
CommitLineData
2817d3e2 1// $Id$
2// Category: global
3//
e5967ab3 4// Author: I. Hrivnacova
5//
6// Class TG4Globals
7// ----------------
8// Class provides the basic types and functions of general use.
2817d3e2 9// It is protected from instantiating (only static data members
10// and static methods are defined).
11
12#ifndef TG4_GLOBALS_H
13#define TG4_GLOBALS_H
14
e5967ab3 15#include "TG4G3Control.h"
16
2817d3e2 17#include <globals.hh>
63c8351a 18#include <g4std/vector>
205e684d 19#include <g4std/set>
90f51010 20#include <G4RotationMatrix.hh>
2817d3e2 21
2817d3e2 22class G4Material;
23class G4Element;
24
e5967ab3 25// basic types containers
3c28d589 26typedef G4std::vector<G4bool> TG4boolVector;
27typedef G4std::vector<G4int> TG4intVector;
e5967ab3 28typedef G4std::vector<G4double> TG4doubleVector;
29typedef G4std::vector<G4String> TG4StringVector;
205e684d 30typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet;
2817d3e2 31
32class TG4Globals
33{
34 public:
35 // --> protected
36 // TG4Globals();
37 virtual ~TG4Globals();
38
39 // static methods
40 static void Exception(const char* string=0);
41 // Global error function prints string to cerr, and aborts
42 // program - according to G4Exception.cc
43 static void Warning(const char* string=0);
44 // Global warning function prints string to cerr
90f51010 45 static void AppendNumberToString(G4String& string, G4int number);
e5967ab3 46 static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue);
47 static void PrintStars(G4bool emptyLineFirst);
2817d3e2 48
49 protected:
50 TG4Globals();
51 // only typedefs's and static methods
52};
53
54#endif //ALGLOBALS_H