EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/Fun4AllServer.h
>
4
#include <
g4vertex/GlobalVertexReco.h
>
5
#include <
g4vertex/GlobalVertexFastSimReco.h
>
6
R__LOAD_LIBRARY
(libg4vertex.so)
7
#endif
8
9
void
GlobalInit
() {}
10
11
void
Global_Reco
(
int
verbosity = 0) {
12
13
//---------------
14
// Load libraries
15
//---------------
16
17
gSystem->Load(
"libfun4all.so"
);
18
gSystem->Load(
"libg4vertex.so"
);
19
20
//---------------
21
// Fun4All server
22
//---------------
23
24
Fun4AllServer
*se =
Fun4AllServer::instance
();
25
26
GlobalVertexReco
* gblvertex =
new
GlobalVertexReco
();
27
se->
registerSubsystem
(gblvertex);
28
29
return
;
30
}
31
32
void
Global_FastSim
(
int
verbosity = 0) {
33
34
//---------------
35
// Load libraries
36
//---------------
37
38
gSystem->Load(
"libfun4all.so"
);
39
gSystem->Load(
"libg4vertex.so"
);
40
41
//---------------
42
// Fun4All server
43
//---------------
44
45
Fun4AllServer
*se =
Fun4AllServer::instance
();
46
47
GlobalVertexFastSimReco
* gblvertex =
new
GlobalVertexFastSimReco
();
48
gblvertex->
set_x_smearing
(0.0100);
// 100 um
49
gblvertex->
set_y_smearing
(0.0100);
// 100 um
50
gblvertex->
set_z_smearing
(0.0150);
// 150 um
51
gblvertex->
set_t_smearing
(0.002);
// 20 ps
52
se->
registerSubsystem
(gblvertex);
53
54
return
;
55
}
g4lblvtx
blob
master
macros
G4_Global.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration