1 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
11 #include </sphenix/u/weihuma/install/include/trackpidassoc/ElectronPid.h>
12 #include </sphenix/u/weihuma/install/include/trackpidassoc/TrackPidAssoc.h>
15 R__LOAD_LIBRARY(libfun4all.so)
16 R__LOAD_LIBRARY(libtrackpid.so)
21 const char *inputFile =
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04594.root",
22 const string &outputroot =
"/sphenix/u/weihuma/RunOutput/embedDST_sHijing_upsilon_0_20fm",
23 bool output_ntuple =
true
26 gSystem->Load(
"libg4dst");
27 gSystem->Load(
"libtrackpid");
32 ElectronPid *ePid =
new ElectronPid(
"ElectronPid",outputroot+
"_ElectronPid.root");
33 ePid->set_output_ntuple(output_ntuple);
35 ePid->setTrackcutlimits(1,1,20,10);
36 ePid->setEMOPcutlimits(0.7,1.5);
37 ePid->setHinOEMcutlimit(0.2);
38 ePid->setPtcutlimit(2.0,30.0);
39 ePid->setHOPcutlimit(0.3);
53 outePid->
AddNode(
"TrackPidAssoc");