ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/root/qcd_purity.C
Revision: 1.15
Committed: Tue Mar 30 01:32:32 2010 UTC (15 years, 1 month ago) by msegala
Content type: text/plain
Branch: MAIN
CVS Tags: V00-03-01, ZMorph_BASE_20100408, gak040610_morphing, HEAD
Branch point for: ZMorph-V00-03-01
Changes since 1.14: +245 -49 lines
Error occurred while calculating annotation data.
Log Message:
msegala32910

File Contents

# Content
1 { gROOT->SetStyle("Plain");
2 gStyle->SetOptStat(0000);
3 gStyle->SetPalette(1);
4
5 TChain ch_ttbar("ttljets");
6 //TChain ch_ttbar("mva/ttljets");
7 TChain ch_w("ttljets");
8 TChain ch_z("ttljets");
9 TChain ch_tW("ttljets"); // single top
10 TChain ch_t("ttljets"); // single top
11 TChain ch_s("ttljets"); // single top
12 TChain ch_qcd("ttljets");
13 //
14 /*
15 ch_ttbar . Add("/uscms_data/d2/lpcljm/EJTerm/MVA_Input/all_TTbar_Summer09_MC_31X_V3_7TeV_v1.root");
16 //
17 ch_w . Add("/uscms_data/d2/lpcljm/EJTerm/MVA_Input/all_Wmunu_Summer09-MC_31X_V3_7TeV-v1.root");
18
19 //
20 //ch_z . Add("Zjets-madgraph_Winter09_IDEAL_V11_FastSim_v1.root");
21
22 ch_t . Add("SingleTop_tChannel_Summer08_IDEAL_V9_v1.root");
23 ch_tW. Add("SingleTop_tWChannel_Summer08_IDEAL_V9_v1.root");
24 ch_s . Add("SingleTop_sChannel_Summer08_IDEAL_V9_v1.root");
25 //
26 ch_qcd . Add("InclusiveMuPt15_Summer08_IDEAL_V9_v1_14may2009.root");
27 */
28
29
30 //
31 //_____ systematics samples
32 //
33 //ch_w . Add("WJets_ScaleUp_22may2009.root");
34 //ch_w . Add("WJets_ScaleDown_22may2009.root");
35 //ch_w . Add("WJets_Threshold20GeV_22may2009.root");
36 //ch_w . Add("WJets_Threshold5GeV_22may2009.root");
37
38 #include "cuts.C"
39
40 //the_cut = "";
41 //the_cut_Z = "";
42 //the_cut_Z_Morphed = "";
43 //the_cut_QCD ="";
44 //the_cut = cut3;
45 //the_cut = cut3_rev;
46 //the_cut = cut3_qcd;
47
48 the_cut = cut4;
49 the_cut_Z = cut4Z;
50 the_cut_Z_Morphed = cut4ZMorphed;
51 the_cut_ZWa = the_cut_ZW;
52 the_cut_QCD = cut4_qcd;
53
54
55 //the_cut = "getHt<200";
56 //
57 //the_cut = cut4_abcd;
58 //the_cut = cut4_abcd && rel_iso_cut4 && lepton_d0sig_cut4;
59 //the_cut = cut4_abcd && rel_iso_cut4 && lepton_d0sig_cut4_abcd;
60 //the_cut = cut4_abcd && rel_iso_cut4_abcd && lepton_d0sig_cut4;
61 //the_cut = cut4_abcd && rel_iso_cut4_abcd && lepton_d0sig_cut4_abcd;
62 //
63 //the_cut = cut4_qcd;
64 //the_cut = muon_trigger_cut4 && muon_qual_cut4 && muon_chisq_cut4 && muon_nhits_cut4 && rel_iso_cut4 && lepton_IsoDeposit_em_cut4 && lepton_IsoDeposit_had_cut4 && lepton_d0sig_cut4;
65
66 double lumi = 200.0;
67
68 /* This was from the work that Gena did
69 //double xsec_ttbar = 317.0;
70 double xsec_ttbar = 414.0;
71 double xsec_w = 40000.0;
72 double xsec_z = 3700.0;
73 double xsec_t = 130.0;
74 double xsec_tW = 29.0;
75 double xsec_s = 5.0;
76 double xsec_qcd = 0.5091e+9;
77
78 double eff_gen_ttbar = 1.0;
79 double eff_gen_w = 1.0;
80 double eff_gen_z = 1.0;
81 double eff_gen_tW = 1.0; //0.3257;
82 double eff_gen_t = 0.3257;
83 double eff_gen_s = 0.3257;
84 double eff_gen_qcd = 0.000239;
85
86 Long64_t n_processed_ttbar = 1018924; // TTJets madgraph
87 //
88 //Long64_t n_processed_w = 101467739; // fast sim
89 Long64_t n_processed_w = 10110648; // full sim
90 //
91 //Long64_t n_processed_z = 9679459; // fast sim PAT: 2000116
92 Long64_t n_processed_z = 1163479; // full sim
93 Long64_t n_processed_tW = 169048;
94 Long64_t n_processed_t = 281756;
95 Long64_t n_processed_s = 11999;
96 //
97 Long64_t n_processed_qcd = 6142581; // PAT: 1282829
98 */
99
100 /////////////////////////////////////////////////////////////////////////
101 //
102 //___For 7 TeV Study.
103 //
104 /////////////////////////////////////////////////////////////////////////
105
106
107 /****************************************************
108 //
109 // For Minimum number of Jets = 4
110 //
111 ****************************************************/
112
113 ch_ttbar . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/TTbar-madgraph_Summer09_7TeV/all.root");
114 //ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/NoMuonSwitch/WJets/all.root");
115 ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/NoMuonSwitch/WJets_ZMassMorphing/all.root");
116 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/ZJets-madgraph_Summer09_7TeV/all.root");
117 ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/ZJets-madgraph_Summer09_7TeV_JetPt20/all.root");
118 ch_t . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/SingleTop_tChannel-madgraph_Summer09_7TeV/all.root");
119 ch_tW. Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/SingleTop_tWChannel-madgraph_Summer09_7TeV/all.root");
120 ch_s . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/SingleTop_sChannel-madgraph_Summer09_7TeV/all.root");
121 ch_qcd . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/QCD_InclusiveMu15_Summer09-MC_31X_V3_7TeV-v1_4Jets/all.root");
122
123
124 //
125 //____For Lepton to Neutrino Switch
126 //
127 //For jet pt > 30, no invariant mass cut
128 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/FirstMuonSwitches/ZJets/all.root");
129 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/SecondMuonSwitches/ZJets/all.root");
130
131 //For jet pt > 20, with variable for invariant mass cut
132 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/FirstMuonSwitches/ZJets_Jetpt20/all.root");
133 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/SecondMuonSwitches/ZJets_Jetpt20/all.root");
134
135 //For jet pt > 20
136 //ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/NoMuonSwitch/WJets_Jetpt20/all.root");
137
138
139 ///////////
140 //// For MET with new Scaling, here I use Z mass morphered from papers
141 ///////////
142
143
144 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/SecondMuonSwitches/ZJets_ZMassMorphing/all.root");
145
146 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/FirstMuonSwitches/ZJets_ZMassMorphing/all.root");
147
148
149
150
151
152
153
154 /****************************************************
155 //
156 // For Minimum number of Jets = 3
157 //
158 ****************************************************/
159
160 /*
161 ch_ttbar . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets3/TTbar-madgraph_Summer09_7TeV/all.root");
162 ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/NoMuonSwitch/WJets_Jetpt20/all.root");
163 ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets3/ZJets-madgraph_Summer09_7TeV_JetPt20/all.root");
164 ch_t . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets3/SingleTop_tChannel-madgraph_Summer09_7TeV/all.root");
165 ch_tW. Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets3/SingleTop_tWChannel-madgraph_Summer09_7TeV/all.root");
166 ch_s . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets3/SingleTop_sChannel-madgraph_Summer09_7TeV/all.root");
167 ch_qcd . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/QCD_InclusiveMu15_Summer09-MC_31X_V3_7TeV-v1_3Jets/all.root");
168 */
169
170 ////+++____For Lepton to Neutrino Switch
171
172 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/FirstMuonSwitches/ZJets_Jetpt20/all.root" );
173 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/SecondMuonSwitches/ZJets_Jetpt20/all.root" );
174
175
176
177 ///////////
178 //// For MET with new Scaling, here I use Z mass morphered from papers
179 ///////////
180
181 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/SecondMuonSwitches/ZJets_Jetpt20_NewMassScaling/all.root");
182
183 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/FirstMuonSwitches/ZJets_Jetpt20_NewMassScaling/all.root");
184
185
186 ////////Same as above but with loose cuts on Z so we can open up for muon_2. Muon_pt > 10, muon_eta < 2.5, jet_pt > 20
187
188 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/SecondMuonSwitches/ZJets_ZMassMorphing/all.root");
189
190 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets3/FirstMuonSwitches/ZJets_ZMassMorphing/all.root");
191
192
193
194
195
196
197
198 /****************************************************
199 //
200 // For Minimum number of Jets = 2
201 //
202 ****************************************************/
203
204 /*
205 ch_ttbar . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets2/TTbar-madgraph_Summer09_7TeV/all.root");
206 ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets2/NoMuonSwitch/WJets_Jetpt20/all.root");
207 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets2/ZJets-madgraph_Summer09_7TeV_JetPt20/all.root");
208 ch_t . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets2/SingleTop_tChannel-madgraph_Summer09_7TeV/all.root");
209 ch_tW. Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets2/SingleTop_tWChannel-madgraph_Summer09_7TeV/all.root");
210 ch_s . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets2/SingleTop_sChannel-madgraph_Summer09_7TeV/all.root");
211
212
213 ////+++____For Lepton to Neutrino Switch
214
215 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets2/FirstMuonSwitches/ZJets_Jetpt20/ZJets_Jetpt20/all.root" );
216 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets2/SecondMuonSwitches/ZJets_Jetpt20/ZJets_Jetpt20/all.root" );
217
218
219 //////+++______ Z mass morphered from papers. This is for 2 Jets with loose cuts on Z so we can open up for muon_2. Muon_pt > 10, muon_eta < 2.5, jet_pt > 20
220
221 ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets2/SecondMuonSwitches/ZJets_ZMassMorphing/all.root");
222 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets2/FirstMuonSwitches/ZJets_ZMassMorphing/all.root");
223
224 */
225
226
227
228 /****************************************************
229 //
230 // For Minimum number of Jets = 1
231 //
232 ****************************************************/
233
234 /*
235 ch_ttbar . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets1/TTbar-madgraph_Summer09_7TeV/all.root");
236 ch_w . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets1/NoMuonSwitch/WJets_Jetpt20/all.root");
237 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets1/ZJets-madgraph_Summer09_7TeV_JetPt20/all.root");
238 ch_t . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets1/SingleTop_tChannel-madgraph_Summer09_7TeV/all.root");
239 ch_tW. Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets1/SingleTop_tWChannel-madgraph_Summer09_7TeV/all.root");
240 ch_s . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MinNumberofJets1/SingleTop_sChannel-madgraph_Summer09_7TeV/all.root");
241
242
243
244 //////+++______ Z mass morphered from papers. This is for 1 Jets with loose cuts on Z so we can open up for muon_2. Muon_pt > 10, muon_eta < 2.5, jet_pt > 20
245
246 //ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets1/SecondMuonSwitches/ZJets_ZMassMorphing/all.root");
247 ch_z . Add("/uscms_data/d2/mike1886/LeptonNeutrinoSwitch/AnalyzedSamplesFor7TeV/MuonSwitchScaledMassJes10FullVariableList/MinNumberofJets1/FirstMuonSwitches/ZJets_ZMassMorphing/all.root");
248
249 */
250
251
252
253
254 double xsec_ttbar = 165; //NNLO
255 double xsec_w = 28000.0;//NLO
256 double xsec_z = 2800.0;//NLO
257 double xsec_t = 63.0; //NLO
258 double xsec_tW = 10.6;//NLO
259 double xsec_s = 4.6;//NNNLO
260 double xsec_qcd = 0.2969e+9;
261
262 //double eff_gen_ttbar = .25;
263 //double eff_gen_w = .4;
264 //double eff_gen_z = .35;
265 double eff_gen_ttbar =1;
266 double eff_gen_w = 1;
267 double eff_gen_z = 1;
268 double eff_gen_tW = 1; //0.3257;
269 double eff_gen_t = 0.333; //branching ratio
270 double eff_gen_s = 0.333; //branching ratio
271 double eff_gen_qcd = 0.00037;
272
273 //For 4 Jets
274 /*
275 Long64_t n_processed_ttbar = 1062730;
276 Long64_t n_processed_w = 11377412;
277 Long64_t n_processed_z = 1068735;
278 Long64_t n_processed_tW = 429387;
279 Long64_t n_processed_t = 525167;
280 Long64_t n_processed_s = 409787;
281 */
282 //
283 //Long64_t n_processed_qcd = 6142581; // PAT: 1282829
284
285
286 //For 3 Jets
287
288 Long64_t n_processed_ttbar = 1062730;
289 Long64_t n_processed_w = 11377412;
290 Long64_t n_processed_z = 1068735;
291 Long64_t n_processed_tW = 473237;
292 Long64_t n_processed_t = 525167;
293 Long64_t n_processed_s = 405275;
294 Long64_t n_processed_qcd = 4657410; // PAT: 1282829
295
296
297
298
299 cout << "Selecting events..." << endl;
300 Long64_t n_selected_ttbar = ch_ttbar -> Draw("event", the_cut);
301 Long64_t n_selected_w = ch_w -> Draw("event", the_cut);
302 //Long64_t n_selected_z = ch_z -> Draw("event", the_cut);
303 Long64_t n_selected_z = ch_z -> Draw("event", the_cut_Z);
304 //Long64_t n_selected_z = ch_z -> Draw("event", the_cut_Z_Morphed);
305 Long64_t n_selected_t = ch_t -> Draw("event", the_cut);
306 Long64_t n_selected_tW = ch_tW -> Draw("event", the_cut);
307 Long64_t n_selected_s = ch_s -> Draw("event", the_cut);
308 Long64_t n_selected_qcd = ch_qcd -> Draw("event", the_cut);
309 //Long64_t n_selected_qcd = ch_qcd -> Draw("event", the_cut_QCD); //Use this when making traning. This will allow many more events. See CMS paper
310
311 //Selection efficiency, w events: 0.000166854
312 //Selection efficiency, z events: 0.00033864
313
314 double eff_sel_ttbar = (double)n_selected_ttbar/(double)n_processed_ttbar;
315 double eff_sel_w = (double)n_selected_w/(double)n_processed_w;
316 double eff_sel_z = (double)n_selected_z/(double)n_processed_z;
317 //double eff_sel_w = 0.000166854;
318 //double eff_sel_z = 0.00033864;
319
320 double eff_sel_t = (double)n_selected_t/(double)n_processed_t;
321 double eff_sel_tW= (double)n_selected_tW/(double)n_processed_tW;
322 double eff_sel_s = (double)n_selected_s/(double)n_processed_s;
323 double eff_sel_qcd = (double)n_selected_qcd/(double)n_processed_qcd;
324
325 double n_expected_ttbar = xsec_ttbar * eff_gen_ttbar * eff_sel_ttbar * lumi;
326 double n_expected_w = xsec_w * eff_gen_w * eff_sel_w * lumi;
327 double n_expected_z = xsec_z * eff_gen_z * eff_sel_z * lumi;
328 double n_expected_t = xsec_t * eff_gen_t * eff_sel_t * lumi;
329 double n_expected_tW= xsec_tW* eff_gen_tW* eff_sel_tW* lumi;
330 double n_expected_s = xsec_s * eff_gen_s * eff_sel_s * lumi;
331 double n_expected_qcd = xsec_qcd * eff_gen_qcd * eff_sel_qcd * lumi;
332
333 double n_expected_all = n_expected_ttbar + n_expected_w + n_expected_z + n_expected_t + n_expected_tW + n_expected_s + n_expected_qcd;
334 double n_expected_phys = n_expected_ttbar + n_expected_w + n_expected_z + n_expected_t + n_expected_tW + n_expected_s;
335 double n_expected_wzt = n_expected_w + n_expected_z + n_expected_t + n_expected_tW + n_expected_s;
336 double n_expected_all = n_expected_ttbar + n_expected_z + n_expected_qcd;
337 double n_expected_phys = n_expected_ttbar + n_expected_z;
338
339 //
340 // _____ mixing phys bg _______________________________________________
341 //
342 double eff_lumi_ttbar = n_processed_ttbar/xsec_ttbar/eff_gen_ttbar;
343 double eff_lumi_w = n_processed_w/xsec_w/eff_gen_w;
344 double eff_lumi_z = n_processed_z/xsec_z/eff_gen_z;
345 double eff_lumi_t = n_processed_t/xsec_t/eff_gen_t;
346 double eff_lumi_tW= n_processed_tW/xsec_tW/eff_gen_tW;
347 double eff_lumi_s = n_processed_s/xsec_s/eff_gen_s;
348 //
349 double w_rate_corr = 133.483/103.891;
350 double z_rate_corr = 25.0594/18.5393;
351 //
352 double n_template_w = (double)n_selected_w*eff_lumi_z*w_rate_corr/eff_lumi_w/z_rate_corr;
353 double n_template_z = (double)n_selected_z*eff_lumi_z*z_rate_corr/eff_lumi_z/z_rate_corr;
354 double n_template_t = (double)n_selected_t*eff_lumi_z/eff_lumi_t/z_rate_corr;
355 double n_template_tW= (double)n_selected_tW*eff_lumi_z/eff_lumi_tW/z_rate_corr;
356 double n_template_s = (double)n_selected_s*eff_lumi_z/eff_lumi_s/z_rate_corr;
357
358
359 cout << endl << "Selection efficiency, ttbar events: " << eff_sel_ttbar << endl;
360 cout << "Selected ttbar events: " << n_selected_ttbar << endl;
361 cout << "Expected ttbar events: " << n_expected_ttbar << endl;
362 cout << "Effective ttbar lumi: " << eff_lumi_ttbar << endl;
363 //
364 cout << endl << "Selection efficiency, w events: " << eff_sel_w << endl;
365 cout << "Selected w events: " << n_selected_w << endl;
366 cout << "Expected w events: " << n_expected_w << endl;
367 cout << "Effective w lumi: " << eff_lumi_w << endl;
368 cout << "Events for the template: " << n_template_w << endl;
369 //
370 cout << endl << "Selection efficiency, z events: " << eff_sel_z << endl;
371 cout << "Selected z events: " << n_selected_z << endl;
372 cout << "Expected z events: " << n_expected_z << endl;
373 cout << "Effective z lumi: " << eff_lumi_z << endl;
374 cout << "Events for the template: " << n_template_z << endl;
375 //
376 cout << endl << "Selection efficiency, single top t-channel events: " << eff_sel_t << endl;
377 cout << "Selected t events: " << n_selected_t << endl;
378 cout << "Expected t events: " << n_expected_t << endl;
379 cout << "Effective t lumi: " << eff_lumi_t << endl;
380 cout << "Events for the template: " << n_template_t << endl;
381 //
382 cout << endl << "Selection efficiency, single top tW-channel events: " << eff_sel_tW << endl;
383 cout << "Selected tW events: " << n_selected_tW << endl;
384 cout << "Expected tW events: " << n_expected_tW << endl;
385 cout << "Effective tW lumi: " << eff_lumi_tW << endl;
386 cout << "Events for the template: " << n_template_tW << endl;
387 //
388 cout << endl << "Selection efficiency, single top s-channel events: " << eff_sel_s << endl;
389 cout << "Selected s events: " << n_selected_s << endl;
390 cout << "Expected s events: " << n_expected_s << endl;
391 cout << "Effective s lumi: " << eff_lumi_s << endl;
392 cout << "Events for the template: " << n_template_s << endl;
393 //
394 cout << endl << "Selection efficiency, qcd events: " << eff_sel_qcd << endl;
395 cout << "Selected qcd events: " << n_selected_qcd << endl;
396 cout << "Expected qcd events: " << n_expected_qcd << endl;
397
398 cout << endl << "Total events expected: " << n_expected_all << endl;
399 cout << "Ttbar,W,Z+jets events expected: " << n_expected_phys << endl;
400 cout << "ttbar events expected: " << n_expected_ttbar << endl;
401 cout << "phys BG events expected: " << n_expected_wzt << endl;
402 cout << "QCD events expected: " << n_expected_qcd << endl;
403
404
405
406 }
407
408