]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Globals.h
changed ordering of includes from Root to avoid compilation error
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.h
CommitLineData
2817d3e2 1// $Id$
2// Category: global
3//
4// Class for generally used basic types and functions.
5// It is protected from instantiating (only static data members
6// and static methods are defined).
7
8#ifndef TG4_GLOBALS_H
9#define TG4_GLOBALS_H
10
2817d3e2 11#include <globals.hh>
63c8351a 12#include <g4std/vector>
205e684d 13#include <g4std/set>
2817d3e2 14#include <g4rw/tvordvec.h>
15#include <g4rw/tpordvec.h>
90f51010 16#include <G4RotationMatrix.hh>
2817d3e2 17
2817d3e2 18class G4Material;
19class G4Element;
20
3c28d589 21typedef G4std::vector<G4bool> TG4boolVector;
22typedef G4std::vector<G4int> TG4intVector;
23typedef G4std::vector<G4String> TG4StdStringVector;
90f51010 24typedef G4std::vector<const G4RotationMatrix*> TG4RotationMatrixVector;
205e684d 25typedef G4std::set <G4String, G4std::less<G4String> > TG4StringSet;
2817d3e2 26typedef G4RWTValOrderedVector<G4double> TG4doubleVector;
27typedef G4RWTValOrderedVector<G4String> TG4StringVector;
2817d3e2 28typedef G4RWTPtrOrderedVector<G4Material> TG4MaterialVector;
29typedef G4RWTPtrOrderedVector<G4Element> TG4ElementVector;
30
31class TG4Globals
32{
33 public:
34 // --> protected
35 // TG4Globals();
36 virtual ~TG4Globals();
37
38 // static methods
39 static void Exception(const char* string=0);
40 // Global error function prints string to cerr, and aborts
41 // program - according to G4Exception.cc
42 static void Warning(const char* string=0);
43 // Global warning function prints string to cerr
90f51010 44 static void AppendNumberToString(G4String& string, G4int number);
2817d3e2 45
46 protected:
47 TG4Globals();
48 // only typedefs's and static methods
49};
50
51#endif //ALGLOBALS_H