Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4Globals.h
Go to the documentation of this file.
1#ifndef TG4_GLOBALS_H
2#define TG4_GLOBALS_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4G3Control.h"
19
20#include <G4RotationMatrix.hh>
21#include <globals.hh>
22
23#include <TString.h>
24
25#include <map>
26#include <set>
27#include <vector>
28
29class G4Material;
30class G4Element;
31
32//
33// basic container types
34
37typedef std::vector<G4bool> TG4boolVector;
38
41typedef std::vector<G4int> TG4intVector;
42
45typedef std::vector<G4double> TG4doubleVector;
46
49typedef std::vector<G4String> TG4StringVector;
50
53typedef std::map<G4int, G4int> TG4intMap;
54
57typedef std::set<G4String, std::less<G4String> > TG4StringSet;
58
67
69{
70 public:
72
73 // static methods
74 static void Exception(
75 const TString& className, const TString& methodName, const TString& text);
76 // Global error function prints string to cerr, an
77 // program - according to G4Exception.cc
78
79 static void Warning(
80 const TString& className, const TString& methodName, const TString& text);
81 // Global warning function prints string to cerr
82
83 static TString Endl();
84 static void AppendNumberToString(G4String& string, G4int number);
85 static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue);
86 static void PrintStars(G4bool emptyLineFirst);
87 static G4String Help();
88
89 static G4String GetToken(Int_t i, const TString& s);
90
91 private:
93
94 static const TString fgkEndl;
95 static const char fgkTokenSeparator;
96};
97
98// inline functions
99
100inline TString TG4Globals::Endl()
101{
103 return fgkEndl;
104}
105
106#endif // ALGLOBALS_H
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
Basic types and functions of general use.
Definition TG4Globals.h:69
static void AppendNumberToString(G4String &string, G4int number)
static G4String GetToken(Int_t i, const TString &s)
static G4String Help()
static const TString fgkEndl
Special endl.
Definition TG4Globals.h:94
static void PrintStars(G4bool emptyLineFirst)
static void Warning(const TString &className, const TString &methodName, const TString &text)
static void Exception(const TString &className, const TString &methodName, const TString &text)
static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue)
static const char fgkTokenSeparator
Separator in GetToken() method.
Definition TG4Globals.h:95
static TString Endl()
Definition TG4Globals.h:100
std::vector< G4String > TG4StringVector
Definition TG4Globals.h:49
std::map< G4int, G4int > TG4intMap
Definition TG4Globals.h:53
TG4G3ControlValue
Enumeration for G3 processes control values.
std::vector< G4double > TG4doubleVector
Definition TG4Globals.h:45
std::vector< G4bool > TG4boolVector
Definition TG4Globals.h:37
std::set< G4String, std::less< G4String > > TG4StringSet
Definition TG4Globals.h:57
std::vector< G4int > TG4intVector
Definition TG4Globals.h:41