Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runpairs.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file runpairs.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 
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>
14 
15 R__LOAD_LIBRARY(libfun4all.so)
16 R__LOAD_LIBRARY(libtrackpid.so)
17 R__LOAD_LIBRARY(libeventmix.so)
18 R__LOAD_LIBRARY(libsphanalysis.so)
19 #endif
20 
21 //void run(const char *fname = "/direct/phenix+u/workarea/lebedev/sPHENIX_new/analysis/EventMix/macro/hijing.root")
22 //void runpairs(const char *fname = "/sphenix/user/lebedev/mdc/test.root")
23 //void runpairs(const char *fname = "/sphenix/u/weihuma/RunOutput/EVENTMIX/ana/Ana_Upsilon_electrons_cutting_0_20fm.root")
24 //void runpairs(const char *fname = "/sphenix/u/weihuma/RunOutput/EVENTMIX/ana/Ana_Upsilon_0_20fm.root")
25 //void runpairs(const char *fname = "/sphenix/u/weihuma/RunOutput/EVENTMIX/ana/Ana_Upsilon_0_20fm_change_Eop_pt_cut.root")
26 //void runpairs(const char *fname = "/sphenix/u/weihuma/RunOutput/EVENTMIX/ana/Ana_Upsilon_electrons_cutting_0_20fm_change_Eop_pt_cut.root")
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)
29 {
30  gSystem->Load("libg4dst");
31  gSystem->Load("libeventmix");
32  gSystem->Load("libsphanalysis");
33  gSystem->Load("libtrackpid");
34 
36  se->Verbosity(1);
37 
38  ElectronPid* eid = new ElectronPid("ElectronPid","/sphenix/u/weihuma/RunOutput/EVENTMIX/Ana_Upsilon_embed_sHijing_0_20fm_type1_with_eid_TrackPidAssoc_ntuple_toBJ.root");
39  eid->Verbosity(1);
40  eid->set_output_ntuple(output_ntuple);
41  // eid->setEMOPcutlimits(0.7,1.5);
42  eid->setEMOPcutlimits(0.2,1.5);
43  //eid->setHinOEMcutlimit(0.2);
44  eid->setPtcutlimit(2.0,30.0);
45  eid->setHOPcutlimit(0.3);
46  se->registerSubsystem(eid);
47 
48  PairMaker *pmaker = new PairMaker("PairMaker","dummy.root");
49  pmaker->Verbosity(1);
50  se->registerSubsystem(pmaker);
51 
52  sPHAnalysis *ana = new sPHAnalysis("sPHAnalysis",fname);
53  ana->Verbosity(1);
54  se->registerSubsystem(ana);
55 
57  in->Verbosity(1);
58  se->registerInputManager(in);
59 // in->AddFile("/sphenix/u/weihuma/RunOutput/embedDST_sHijing_upsilon_0_20fm_ElectronPid_DST_0000.root");
60  // in->AddFile("/sphenix/u/weihuma/RunOutput/embedDST_sHijing_upsilon_0_20fm_ElectronPid_DST.root");
61 
62 //in->AddListFile("pythiaupsilons.txt");
63  //in->AddFile("/sphenix/user/lebedev/mdc/eePairs_test.root");
64 // in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2010.root");
65 // in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2020.root");
66  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2030.root");
67  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2040.root");
68  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2050.root");
69  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2060.root");
70  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2070.root");
71  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2080.root");
72  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2090.root");
73  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/eePairs_mb2100.root");
74 
75  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-02990.root");
76  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-02991.root");
77 
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");
84 
85 /*
86  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04960.root");
87  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04961.root");
88  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04962.root");
89  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04963.root");
90  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04964.root");
91  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04965.root");
92  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04966.root");
93  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04967.root");
94  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04968.root");
95  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04969.root");
96  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04970.root");
97  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04971.root");
98  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04972.root");
99  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04973.root");
100  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04974.root");
101  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04975.root");
102  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04976.root");
103  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04977.root");
104  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04978.root");
105  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04979.root");
106 */
107 /*
108  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04980.root");
109  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04981.root");
110  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04982.root");
111  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04983.root");
112  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04984.root");
113  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04985.root");
114  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04986.root");
115  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04987.root");
116  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04988.root");
117  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04989.root");
118  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04980.root");
119  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04991.root");
120  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04992.root");
121  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04993.root");
122  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04994.root");
123  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04995.root");
124  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04996.root");
125  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04997.root");
126  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04998.root");
127  in->AddFile("/sphenix/user/lebedev/mdc/embed/DST_sHijing_0_488fm-0000000001-04999.root");
128 */
129 
130 /*
131  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_110.root");
132  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_111.root");
133  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_112.root");
134  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_113.root");
135  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_114.root");
136  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_115.root");
137  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_116.root");
138  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_117.root");
139  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_117.root");
140  in->AddFile("/sphenix/user/lebedev/mdc/sPHENIX_pythiaupsilons_119.root");
141  //in->AddFile("/sphenix/user/lebedev/mdc/pythiaupsilons/sPHENIX_pythiaupsilons_0.root");
142  //in->AddFile("/sphenix/user/lebedev/mdc/pythiaupsilons/sPHENIX_pythiaupsilons_1.root");
143 */
144 /*
145  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_0.root");
146  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_1.root");
147  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_2.root");
148  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_3.root");
149  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_4.root");
150  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_5.root");
151  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_6.root");
152  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_7.root");
153  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_8.root");
154  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_9.root");
155  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_10.root");
156  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_11.root");
157  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_12.root");
158  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_13.root");
159  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_14.root");
160  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_15.root");
161  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_16.root");
162  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_17.root");
163  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_18.root");
164  in->AddFile("/sphenix/user/lebedev/mdc/G4sPHENIX_19.root");
165 */
166 
167  se->run();
168  se->End();
169 }
170