ECCE @ EIC Software
Reference for
ECCE @ 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
#ifndef MACRO_G4GLOBAL_C
2
#define MACRO_G4GLOBAL_C
3
4
#include <
g4vertex/GlobalVertexFastSimReco.h
>
5
#include <
g4vertex/GlobalVertexReco.h
>
6
7
#include <
fun4all/Fun4AllServer.h
>
8
9
R__LOAD_LIBRARY
(libg4vertex.so)
10
11
namespace Enable
12
{
13
bool
GLOBAL_RECO
=
false
;
14
bool
GLOBAL_FASTSIM
=
false
;
15
}
// namespace Enable
16
17
namespace
G4GLOBAL
18
{
19
double
x_smearing
= 0.01;
// 100 um
20
double
y_smearing
= 0.01;
// 100 um
21
double
z_smearing
= 0.015;
// 150um
22
double
t_smearing
= 0.002;
// 20ps
23
}
// namespace G4GLOBAL
24
25
void
GlobalInit
() {}
26
27
void
Global_Reco
()
28
{
29
//---------------
30
// Fun4All server
31
//---------------
32
33
Fun4AllServer
* se =
Fun4AllServer::instance
();
34
35
GlobalVertexReco
* gblvertex =
new
GlobalVertexReco
();
36
se->
registerSubsystem
(gblvertex);
37
38
return
;
39
}
40
41
void
Global_FastSim
()
42
{
43
//---------------
44
// Fun4All server
45
//---------------
46
47
Fun4AllServer
* se =
Fun4AllServer::instance
();
48
49
GlobalVertexFastSimReco
* gblvertex =
new
GlobalVertexFastSimReco
();
50
gblvertex->
set_x_smearing
(
G4GLOBAL::x_smearing
);
51
gblvertex->
set_y_smearing
(
G4GLOBAL::y_smearing
);
52
gblvertex->
set_z_smearing
(
G4GLOBAL::z_smearing
);
53
gblvertex->
set_t_smearing
(
G4GLOBAL::t_smearing
);
54
se->
registerSubsystem
(gblvertex);
55
56
return
;
57
}
58
#endif
macros
blob
master
common
G4_Global.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:58
using
1.8.2 with
ECCE GitHub integration