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_Beast.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_DSTReader_Beast.C
1
#ifndef MACRO_G4DSTREADERBEAST_C
2
#define MACRO_G4DSTREADERBEAST_C
3
4
#include <GlobalVariables.C>
5
6
#include <
G4_Magnet_Beast.C
>
7
#include <
G4_Pipe_EIC.C
>
8
9
#include <
g4eval/PHG4DSTReader.h
>
10
11
#include <
fun4all/Fun4AllServer.h
>
12
13
R__LOAD_LIBRARY
(libg4eval.so)
14
15
16
23
24
namespace Enable
25
{
26
bool
DSTREADER
=
false
;
27
int
DSTREADER_VERBOSITY
= 0;
28
}
// namespace Enable
29
30
namespace
G4DSTREADER
31
{
32
bool
save_g4_raw
=
true
;
33
}
// namespace G4DSTREADER
34
35
void
G4DSTreader
(
const
string
&outputFile =
"G4JLeic.root"
)
36
{
38
int
verbosity =
max
(
Enable::VERBOSITY
,
Enable::DSTREADER_VERBOSITY
);
39
40
// save a comprehensive evaluation file
41
PHG4DSTReader
*ana =
new
PHG4DSTReader
(outputFile);
42
ana->
set_save_particle
(
true
);
43
ana->
set_load_all_particle
(
false
);
44
ana->
set_load_active_particle
(
true
);
45
ana->
set_save_vertex
(
true
);
46
47
ana->
Verbosity
(verbosity);
48
49
if
(
G4DSTREADER::save_g4_raw
)
50
{
51
if
(
Enable::PIPE
)
52
{
53
if
(
Enable::ABSORBER
||
Enable::PIPE_ABSORBER
)
54
ana->
AddNode
(
"PIPE"
);
55
}
56
if
(
Enable::MAGNET
)
57
{
58
if
(
Enable::ABSORBER
||
Enable::MAGNET_ABSORBER
)
59
ana->
AddNode
(
"MAGNET"
);
60
}
61
if
(
Enable::BLACKHOLE
)
62
{
63
ana->
AddNode
(
"BH_1"
);
64
ana->
AddNode
(
"BH_FORWARD_PLUS"
);
65
ana->
AddNode
(
"BH_FORWARD_NEG"
);
66
}
67
}
68
Fun4AllServer
*se =
Fun4AllServer::instance
();
69
se->
registerSubsystem
(ana);
70
}
71
#endif // MACRO_G4DSTREADERJLEIC_C
fun4all_eicmacros
blob
master
common
G4_DSTReader_Beast.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration