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 
2 void Global_Reco(int verbosity = 0) {
3 
4  //---------------
5  // Load libraries
6  //---------------
7 
8  gSystem->Load("libfun4all.so");
9  gSystem->Load("libg4vertex.so");
10 
11  //---------------
12  // Fun4All server
13  //---------------
14 
16 
17  GlobalVertexReco* gblvertex = new GlobalVertexReco();
18  se->registerSubsystem(gblvertex);
19 
20  return;
21 }
22 
23 void Global_FastSim(int verbosity = 0) {
24 
25  //---------------
26  // Load libraries
27  //---------------
28 
29  gSystem->Load("libfun4all.so");
30  gSystem->Load("libg4vertex.so");
31 
32  //---------------
33  // Fun4All server
34  //---------------
35 
37 
39  gblvertex->set_x_smearing(0.0100); // 100 um
40  gblvertex->set_y_smearing(0.0100); // 100 um
41  gblvertex->set_z_smearing(0.0150); // 150 um
42  gblvertex->set_t_smearing(0.002); // 20 ps
43  se->registerSubsystem(gblvertex);
44 
45  return;
46 }