]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Globals.h
added G4 angle unit (deg)
[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
11#include "TG3Flag.h"
12
13#include <globals.hh>
63c8351a 14#include <g4std/vector>
2817d3e2 15#include <g4rw/tvordvec.h>
16#include <g4rw/tpordvec.h>
17
2817d3e2 18class G4Material;
19class G4Element;
20
3c7cd15a 21typedef G4std::vector<G4bool> TG4boolVector;
22typedef G4std::vector<G4int> TG4intVector;
2817d3e2 23typedef G4RWTValOrderedVector<G4double> TG4doubleVector;
24typedef G4RWTValOrderedVector<G4String> TG4StringVector;
25typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector;
26typedef G4RWTPtrOrderedVector<G4Material> TG4MaterialVector;
27typedef G4RWTPtrOrderedVector<G4Element> TG4ElementVector;
28
29class TG4Globals
30{
31 public:
32 // --> protected
33 // TG4Globals();
34 virtual ~TG4Globals();
35
36 // static methods
37 static void Exception(const char* string=0);
38 // Global error function prints string to cerr, and aborts
39 // program - according to G4Exception.cc
40 static void Warning(const char* string=0);
41 // Global warning function prints string to cerr
42
43 protected:
44 TG4Globals();
45 // only typedefs's and static methods
46};
47
48#endif //ALGLOBALS_H