Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
global
include
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
29
class
G4Material;
30
class
G4Element;
31
32
//
33
// basic container types
34
37
typedef
std::vector<G4bool>
TG4boolVector
;
38
41
typedef
std::vector<G4int>
TG4intVector
;
42
45
typedef
std::vector<G4double>
TG4doubleVector
;
46
49
typedef
std::vector<G4String>
TG4StringVector
;
50
53
typedef
std::map<G4int, G4int>
TG4intMap
;
54
57
typedef
std::set<G4String, std::less<G4String> >
TG4StringSet
;
58
67
68
class
TG4Globals
69
{
70
public
:
71
~TG4Globals
();
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
static
G4bool
Contains
(
const
G4String& name,
const
G4String& nameList);
91
92
private
:
93
TG4Globals
();
94
95
static
const
TString
fgkEndl
;
96
static
const
char
fgkTokenSeparator
;
97
};
98
99
// inline functions
100
101
inline
TString
TG4Globals::Endl
()
102
{
104
return
fgkEndl
;
105
}
106
107
#endif
// ALGLOBALS_H
TG4G3Control.h
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
TG4Globals::AppendNumberToString
static void AppendNumberToString(G4String &string, G4int number)
Definition
TG4Globals.cxx:63
TG4Globals::GetToken
static G4String GetToken(Int_t i, const TString &s)
Definition
TG4Globals.cxx:119
TG4Globals::Help
static G4String Help()
Definition
TG4Globals.cxx:111
TG4Globals::fgkEndl
static const TString fgkEndl
Special endl.
Definition
TG4Globals.h:95
TG4Globals::PrintStars
static void PrintStars(G4bool emptyLineFirst)
Definition
TG4Globals.cxx:99
TG4Globals::Warning
static void Warning(const TString &className, const TString &methodName, const TString &text)
Definition
TG4Globals.cxx:48
TG4Globals::Exception
static void Exception(const TString &className, const TString &methodName, const TString &text)
Definition
TG4Globals.cxx:33
TG4Globals::Compare
static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue)
Definition
TG4Globals.cxx:81
TG4Globals::~TG4Globals
~TG4Globals()
Definition
TG4Globals.cxx:23
TG4Globals::fgkTokenSeparator
static const char fgkTokenSeparator
Separator in GetToken() method.
Definition
TG4Globals.h:96
TG4Globals::TG4Globals
TG4Globals()
TG4Globals::Endl
static TString Endl()
Definition
TG4Globals.h:101
TG4Globals::Contains
static G4bool Contains(const G4String &name, const G4String &nameList)
Definition
TG4Globals.cxx:153
TG4StringVector
std::vector< G4String > TG4StringVector
Definition
TG4Globals.h:49
TG4intMap
std::map< G4int, G4int > TG4intMap
Definition
TG4Globals.h:53
TG4G3ControlValue
TG4G3ControlValue
Enumeration for G3 processes control values.
Definition
TG4G3Control.h:176
TG4doubleVector
std::vector< G4double > TG4doubleVector
Definition
TG4Globals.h:45
TG4boolVector
std::vector< G4bool > TG4boolVector
Definition
TG4Globals.h:37
TG4StringSet
std::set< G4String, std::less< G4String > > TG4StringSet
Definition
TG4Globals.h:57
TG4intVector
std::vector< G4int > TG4intVector
Definition
TG4Globals.h:41
Generated on
for Geant4 VMC by
1.17.0