Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_Global.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_Global.C
1 #ifndef MACRO_G4GLOBAL_C
2 #define MACRO_G4GLOBAL_C
3 
4 #include <GlobalVariables.C>
5 
8 
10 
11 R__LOAD_LIBRARY(libg4vertex.so)
12 R__LOAD_LIBRARY(libglobalvertex.so)
13 namespace Enable
14 {
15  bool GLOBAL_RECO = false;
16  bool GLOBAL_FASTSIM = false;
18 } // namespace Enable
19 
20 namespace G4GLOBAL
21 {
22  double x_smearing = 0.01; // 100 um
23  double y_smearing = 0.01; // 100 um
24  double z_smearing = 0.015; // 150um
25  double t_smearing = 0.002; // 20ps
26 } // namespace G4GLOBAL
27 
28 void GlobalInit() {}
29 
31 {
33 
35 
36  GlobalVertexReco* gblvertex = new GlobalVertexReco();
37  gblvertex->Verbosity(verbosity);
38  se->registerSubsystem(gblvertex);
39 
40  return;
41 }
42 
44 {
46 
48 
54  gblvertex->Verbosity(verbosity);
55 
56  se->registerSubsystem(gblvertex);
57 
58  return;
59 }
60 #endif