2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
8 #include </sphenix/u/weihuma/install/include/trackpidassoc/ElectronPid.h>
9 #include </sphenix/u/weihuma/install/include/trackpidassoc/TrackPidAssoc.h>
10 #include </sphenix/u/weihuma/install/include/sphanalysis/sPHAnalysis.h>
11 #include </sphenix/u/weihuma/install/include/eventmix/PairMaker.h>
12 #include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPair.h>
13 #include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPairv1.h>
15 R__LOAD_LIBRARY(libfun4all.so)
16 R__LOAD_LIBRARY(libtrackpid.so)
17 R__LOAD_LIBRARY(libeventmix.so)
18 R__LOAD_LIBRARY(libsphanalysis.so)
27 void runpairs(
const char *
fname =
"/sphenix/u/weihuma/RunOutput/EVENTMIX/Ana_Upsilon_embed_sHijing_0_20fm_type1_TrackPidAssoc_toBJ.root",
28 bool output_ntuple =
true)
30 gSystem->Load(
"libg4dst");
31 gSystem->Load(
"libeventmix");
32 gSystem->Load(
"libsphanalysis");
33 gSystem->Load(
"libtrackpid");
38 ElectronPid* eid =
new ElectronPid(
"ElectronPid",
"/sphenix/u/weihuma/RunOutput/EVENTMIX/Ana_Upsilon_embed_sHijing_0_20fm_type1_with_eid_TrackPidAssoc_ntuple_toBJ.root");
40 eid->set_output_ntuple(output_ntuple);
42 eid->setEMOPcutlimits(0.2,1.5);
44 eid->setPtcutlimit(2.0,30.0);
45 eid->setHOPcutlimit(0.3);
78 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04594.root");
79 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04595.root");
80 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04596.root");
81 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04597.root");
82 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04598.root");
83 in->
AddFile(
"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04599.root");