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_DSTReader_JLeic.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_DSTReader_JLeic.C
1
#ifndef MACRO_G4DSTREADERJLEIC_C
2
#define MACRO_G4DSTREADERJLEIC_C
3
4
#include <GlobalVariables.C>
5
6
#include <
G4_Barrel_Hcal_JLeic.C
>
7
#include <
G4_BeamLine_JLeic.C
>
8
#include <G4_BlackHole.C>
9
#include <
G4_CTD_JLeic.C
>
10
#include <
G4_DIRC_JLeic.C
>
11
#include <
G4_DRich_JLeic.C
>
12
#include <
G4_EndCap_Electron_JLeic.C
>
13
#include <
G4_EndCap_Hadron_JLeic.C
>
14
#include <
G4_Gem_JLeic.C
>
15
#include <
G4_Magnet_Cleo.C
>
16
#include <
G4_Pipe_EIC.C
>
17
#include <
G4_VTX_JLeic.C
>
18
19
#include <
g4eval/PHG4DSTReader.h
>
20
21
#include <
fun4all/Fun4AllServer.h
>
22
23
R__LOAD_LIBRARY
(libg4eval.so)
24
25
26
33
34
namespace Enable
35
{
36
bool
DSTREADER
=
false
;
37
int
DSTREADER_VERBOSITY
= 0;
38
}
// namespace Enable
39
40
namespace
G4DSTREADER
41
{
42
bool
save_g4_raw
=
true
;
43
}
// namespace G4DSTREADER
44
45
void
G4DSTreader
(
const
string
&outputFile =
"G4JLeic.root"
)
46
{
48
int
verbosity =
max
(
Enable::VERBOSITY
,
Enable::DSTREADER_VERBOSITY
);
49
50
// save a comprehensive evaluation file
51
PHG4DSTReader
*ana =
new
PHG4DSTReader
(outputFile);
52
ana->
set_save_particle
(
true
);
53
ana->
set_load_all_particle
(
false
);
54
ana->
set_load_active_particle
(
true
);
55
ana->
set_save_vertex
(
true
);
56
57
ana->
Verbosity
(verbosity);
58
59
if
(
G4DSTREADER::save_g4_raw
)
60
{
61
if
(
Enable::PIPE
)
62
{
63
if
(
Enable::ABSORBER
||
Enable::PIPE_ABSORBER
)
64
ana->
AddNode
(
"PIPE"
);
65
}
66
if
(
Enable::VTX
)
67
{
68
ana->
AddNode
(
"JLVTX"
);
69
}
70
if
(
Enable::CTD
)
71
{
72
ana->
AddNode
(
"JLCTD"
);
73
}
74
if
(
Enable::DIRC
)
75
{
76
ana->
AddNode
(
"JLDIRC"
);
77
}
78
79
if
(
Enable::MAGNET
)
80
{
81
if
(
Enable::ABSORBER
||
Enable::MAGNET_ABSORBER
)
82
ana->
AddNode
(
"MAGNET"
);
83
}
84
85
if
(
Enable::BARREL_HCAL
)
86
{
87
ana->
AddNode
(
"BARRELHCAL"
);
88
}
89
90
if
(
Enable::GEM
)
91
{
92
ana->
AddNode
(
"GEMHADRON"
);
93
ana->
AddNode
(
"GEMELECTRON"
);
94
}
95
96
if
(
Enable::DRICH
)
97
{
98
ana->
AddNode
(
"DRICH"
);
99
}
100
101
if
(
Enable::ENDCAP_ELECTRON
)
102
{
103
ana->
AddNode
(
"ECELECTRON"
);
104
}
105
106
if
(
Enable::ENDCAP_HADRON
)
107
{
108
ana->
AddNode
(
"ECHADRON"
);
109
}
110
if
(
Enable::BEAMLINE
)
111
{
112
ana->
AddNode
(
"BEAMLINE"
);
113
if
(
Enable::BEAMLINE_ABSORBER
)
114
{
115
ana->
AddNode
(
"ABSORBER_BEAMLINE"
);
116
}
117
}
118
if
(
Enable::BLACKHOLE
)
119
{
120
ana->
AddNode
(
"BH_1"
);
121
ana->
AddNode
(
"BH_FORWARD_PLUS"
);
122
ana->
AddNode
(
"BH_FORWARD_NEG"
);
123
}
124
}
125
Fun4AllServer
*se =
Fun4AllServer::instance
();
126
se->
registerSubsystem
(ana);
127
}
128
#endif // MACRO_G4DSTREADERJLEIC_C
fun4all_eicmacros
blob
master
common
G4_DSTReader_JLeic.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration