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
run.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run.C
1
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
2
3
#include <
GlobalVariables.C
>
4
5
#include <
fun4all/SubsysReco.h
>
6
#include <
fun4all/Fun4AllServer.h
>
7
#include <
fun4all/Fun4AllInputManager.h
>
8
#include <
fun4all/Fun4AllDstInputManager.h
>
9
#include <
fun4all/Fun4AllDstOutputManager.h
>
10
11
#include </sphenix/u/weihuma/install/include/electronid/ElectronID.h>
12
#include </sphenix/u/weihuma/install/include/trackpidassoc/TrackPidAssoc.h>
13
14
15
R__LOAD_LIBRARY(libfun4all.so)
16
R__LOAD_LIBRARY(libtrackpid.so)
17
R__LOAD_LIBRARY(libelectronid.so)
18
19
#endif
20
21
void
run
(
22
const
char
*inputFile =
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04594.root"
,
23
const
string
&outputroot =
"/sphenix/user/weihuma/RunOutput/embedDST_sHijing_upsilon_0_20fm"
,
24
bool
output_ntuple =
true
25
)
26
{
27
gSystem->Load(
"libg4dst"
);
28
gSystem->Load(
"libtrackpid"
);
29
gSystem->Load(
"libelectronid"
);
30
31
Fun4AllServer
*se =
Fun4AllServer::instance
();
32
se->
Verbosity
(1);
33
34
ElectronID
*eid =
new
ElectronID
(
"Electronid"
,outputroot+
"_ElectronID.root"
);
35
eid->
set_output_ntuple
(output_ntuple);
36
eid->
Verbosity
(0);
37
eid->
setTrackcutlimits
(1,1,20,10);
//nmvtx, nintt, ntpc, quality
38
eid->
setEMOPcutlimits
(0.7,1.5);
39
eid->
setHinOEMcutlimit
(0.2);
40
eid->
setPtcutlimit
(2.0,30.0);
41
eid->
setHOPcutlimit
(0.3);
42
eid->
setBDTcut
(1,1,0.18,0.24);
// (ISUSEBDT_p, ISUSEBDT_n, BDT_cut_p, BDT_cut_n)
43
se->
registerSubsystem
(eid);
44
45
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DST_TRACKS"
);
46
in->
Verbosity
(1);
47
//in->fileopen(inputFile);
48
//in->AddListFile("filelist_0_4d88fm.txt"); //sHijing with Upsilon embeded;
49
// in->AddListFile("filelist_0_12fm.txt"); //sHijing with Upsilon embeded;
50
in->
AddListFile
(
"filelist_0_20fm.txt"
);
//sHijing with Upsilon embeded;
51
52
se->
registerInputManager
(in);
53
54
if
(output_ntuple) {
55
Fun4AllOutputManager
*outePid =
new
Fun4AllDstOutputManager
(
"outePid"
,outputroot+
"_ElectronPid_DST.root"
);
56
outePid->
AddNode
(
"TrackPidAssoc"
);
57
se->
registerOutputManager
(outePid);
58
outePid->
Verbosity
(1);
59
outePid->
Print
();
60
}
61
62
se->
run
();
63
se->
End
();
64
65
}
analysis
blob
master
ElectronID
macros
run.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:49
using
1.8.2 with
sPHENIX GitHub integration