Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_RTrack.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_RTrack.C
1
#include <
fun4all/SubsysReco.h
>
2
#include <
fun4all/Fun4AllServer.h
>
3
#include <
fun4all/Fun4AllInputManager.h
>
4
#include <
fun4all/Fun4AllDstInputManager.h
>
5
#include <
fun4all/Fun4AllRunNodeInputManager.h
>
6
7
#include <
fun4all/Fun4AllDstOutputManager.h
>
8
#include <
fun4all/Fun4AllOutputManager.h
>
9
#include <
fun4all/Fun4AllServer.h
>
10
#include <
fun4all/Fun4AllNoSyncDstInputManager.h
>
11
#include <
phool/PHRandomSeed.h
>
12
#include <
phool/recoConsts.h
>
13
14
15
16
//#include <g4hitshift/g4hitshift.h>
17
18
R__LOAD_LIBRARY(libfun4all.so)
19
//R__LOAD_LIBRARY(libg4hitshift.so)
20
21
22
void
Fun4All_RTrack
(const
char
*g4hitfile = "G4Hits_pythia8_pp_mb-0000000006-00000.
root
",
23
const
char
*filefixedgeo = "updated_geo.root",
24
const
char
* oufilename = "tree_test.root"
25
)
26
{
27
28
gSystem->Load(
"libg4dst.so"
);
29
Fun4AllServer
*se =
Fun4AllServer::instance
();
30
int
verbosity
= 0;
31
32
se->
Verbosity
(verbosity);
33
recoConsts
*rc =
recoConsts::instance
();
34
35
//===============
36
// conditions DB flags
37
//===============
38
rc->
set_StringFlag
(
"CDB_GLOBALTAG"
,
"MDC2"
);
39
rc->
set_uint64Flag
(
"TIMESTAMP"
,6);
40
41
42
43
// g4hitshift *myJetVal = new g4hitshift();
44
// se->registerSubsystem(myJetVal);
45
46
47
48
49
50
51
Fun4AllInputManager
*intrue =
new
Fun4AllDstInputManager
(
"DSTcalocluster"
);
52
intrue->
Verbosity
(2);
53
intrue->
AddFile
(g4hitfile);
54
se->
registerInputManager
(intrue);
55
56
Fun4AllInputManager
*intrue2 =
new
Fun4AllRunNodeInputManager
(
"DSTtruth"
);
57
intrue2->
Verbosity
(2);
58
intrue2->
AddFile
(filefixedgeo);
59
se->
registerInputManager
(intrue2);
60
61
62
63
Fun4AllDstOutputManager
*
out
=
new
Fun4AllDstOutputManager
(
"DSTOUT"
,
"crash.root"
);
64
se->
registerOutputManager
(out);
65
66
se->
run
(1);
67
se->
End
();
68
69
gSystem->Exit(0);
70
return
0;
71
72
}
analysis
blob
master
Shift_emcal_g4hits
macros
Fun4All_RTrack.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:53
using
1.8.2 with
sPHENIX GitHub integration