34 : CaloJetAlgorithm1(
cfg.getParameter<
string>(
"CaloJetAlgorithm1")),
35 CaloJetAlgorithm2(
cfg.getParameter<
string>(
"CaloJetAlgorithm2")),
36 CaloJetAlgorithm3(
cfg.getParameter<
string>(
"CaloJetAlgorithm3")),
37 CaloJetAlgorithm4(
cfg.getParameter<
string>(
"CaloJetAlgorithm4")),
38 GenJetAlgorithm1(
cfg.getParameter<
string>(
"GenJetAlgorithm1")),
39 GenJetAlgorithm2(
cfg.getParameter<
string>(
"GenJetAlgorithm2")),
40 GenJetAlgorithm3(
cfg.getParameter<
string>(
"GenJetAlgorithm3")),
41 GenJetAlgorithm4(
cfg.getParameter<
string>(
"GenJetAlgorithm4")),
42 JetCorrectionService(
cfg.getParameter<
string>(
"JetCorrectionService")) {}
48 m_file =
new TFile(
"histo.root",
"RECREATE");
50 tMassGen = TH1F(
"tMassGen",
"T Mass Gen", 100, 0, 200);
51 tbarMassGen = TH1F(
"tbarMassGen",
"Tbar Mass Gen", 100, 0, 200);
53 tMass = TH1F(
"tMass",
"T Mass", 100, 0, 200);
54 tbarMass = TH1F(
"tbarMass",
"Tbar Mass", 100, 0, 200);
56 topMassParton = TH1F(
"topMassParton",
"Top Mass Parton", 100, 0, 200);
57 topMass1 = TH1F(
"topMass1",
"Top Mass 1", 100, 0, 200);
58 topMass2 = TH1F(
"topMass2",
"Top Mass 2", 100, 0, 200);
59 topMass3 = TH1F(
"topMass3",
"Top Mass 3", 100, 0, 200);
61 ZpMass = TH1F(
"ZpMass",
"Generated Zp Mass", 160, 0, 8000);
62 ZpMassGen = TH1F(
"ZpMassGen",
"Gen Zp Mass", 160, 0, 8000);
63 ZpMassMatched1 = TH1F(
"ZpMassMatched1",
"Calor Zp Mass 1", 160, 0, 8000);
64 ZpMassMatched2 = TH1F(
"ZpMassMatched2",
"Calor Zp Mass 2", 160, 0, 8000);
65 ZpMassMatched3 = TH1F(
"ZpMassMatched3",
"Calor Zp Mass 3", 160, 0, 8000);
67 ZpMassGen10 = TH1F(
"ZpMassGen10",
"Gen Zp Mass", 160, 0, 8000);
68 ZpMassGen13 = TH1F(
"ZpMassGen13",
"Gen Zp Mass", 160, 0, 8000);
69 ZpMassGen40 = TH1F(
"ZpMassGen40",
"Gen Zp Mass", 160, 0, 8000);
71 ZpMass_700_10 = TH1F(
"ZpMass_700_10",
"Parton Zp Mass", 100, 0, 1000);
72 ZpMass_700_13 = TH1F(
"ZpMass_700_13",
"Parton Zp Mass", 100, 0, 1000);
73 ZpMass_700_40 = TH1F(
"ZpMass_700_40",
"Parton Zp Mass", 100, 0, 1000);
83 ZpMass_2000_10 = TH1F(
"ZpMass_2000_10",
"Parton Zp Mass", 100, 1500, 2500);
84 ZpMass_2000_13 = TH1F(
"ZpMass_2000_13",
"Parton Zp Mass", 100, 1500, 2500);
85 ZpMass_2000_40 = TH1F(
"ZpMass_2000_40",
"Parton Zp Mass", 100, 1500, 2500);
91 ZpMass_5000_10 = TH1F(
"ZpMass_5000_10",
"Parton Zp Mass", 150, 4000, 5500);
92 ZpMass_5000_13 = TH1F(
"ZpMass_5000_13",
"Parton Zp Mass", 150, 4000, 5500);
93 ZpMass_5000_40 = TH1F(
"ZpMass_5000_40",
"Parton Zp Mass", 150, 4000, 5500);
95 ZpMassRes101 = TH1F(
"ZpMassRes101",
"Zp Mass Resolution 1", 100, -2, 2);
96 ZpMassRes102 = TH1F(
"ZpMassRes102",
"Zp Mass Resolution 2", 100, -2, 2);
97 ZpMassRes103 = TH1F(
"ZpMassRes103",
"Zp Mass Resolution 3", 100, -2, 2);
99 ZpMassRes131 = TH1F(
"ZpMassRes131",
"Zp Mass Resolution 1", 100, -2, 2);
100 ZpMassRes132 = TH1F(
"ZpMassRes132",
"Zp Mass Resolution 2", 100, -2, 2);
101 ZpMassRes133 = TH1F(
"ZpMassRes133",
"Zp Mass Resolution 3", 100, -2, 2);
103 ZpMassRes401 = TH1F(
"ZpMassRes401",
"Zp Mass Resolution 1", 100, -2, 2);
104 ZpMassRes402 = TH1F(
"ZpMassRes402",
"Zp Mass Resolution 2", 100, -2, 2);
105 ZpMassRes403 = TH1F(
"ZpMassRes403",
"Zp Mass Resolution 3", 100, -2, 2);
107 ZpMassResL101 = TH1F(
"ZpMassResL101",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
108 ZpMassResL102 = TH1F(
"ZpMassResL102",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
109 ZpMassResL103 = TH1F(
"ZpMassResL103",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
111 ZpMassResRL101 = TH1F(
"ZpMassResRL101",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
112 ZpMassResRL102 = TH1F(
"ZpMassResRL102",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
113 ZpMassResRL103 = TH1F(
"ZpMassResRL103",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
115 ZpMassResRLoP101 = TH1F(
"ZpMassResRLoP101",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
116 ZpMassResRLoP102 = TH1F(
"ZpMassResRLoP102",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
117 ZpMassResRLoP103 = TH1F(
"ZpMassResRLoP103",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
119 ZpMassResPRL101 = TH1F(
"ZpMassResPRL101",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
120 ZpMassResPRL102 = TH1F(
"ZpMassResPRL102",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
121 ZpMassResPRL103 = TH1F(
"ZpMassResPRL103",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
123 ZpMassResL131 = TH1F(
"ZpMassResL131",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
124 ZpMassResL132 = TH1F(
"ZpMassResL132",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
125 ZpMassResL133 = TH1F(
"ZpMassResL133",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
127 ZpMassResRL131 = TH1F(
"ZpMassResRL131",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
128 ZpMassResRL132 = TH1F(
"ZpMassResRL132",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
129 ZpMassResRL133 = TH1F(
"ZpMassResRL133",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
131 ZpMassResRLoP131 = TH1F(
"ZpMassResRLoP131",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
132 ZpMassResRLoP132 = TH1F(
"ZpMassResRLoP132",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
133 ZpMassResRLoP133 = TH1F(
"ZpMassResRLoP133",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
135 ZpMassResPRL131 = TH1F(
"ZpMassResPRL131",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
136 ZpMassResPRL132 = TH1F(
"ZpMassResPRL132",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
137 ZpMassResPRL133 = TH1F(
"ZpMassResPRL133",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
139 ZpMassResL401 = TH1F(
"ZpMassResL401",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
140 ZpMassResL402 = TH1F(
"ZpMassResL402",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
141 ZpMassResL403 = TH1F(
"ZpMassResL403",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
143 ZpMassResRL401 = TH1F(
"ZpMassResRL401",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
144 ZpMassResRL402 = TH1F(
"ZpMassResRL402",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
145 ZpMassResRL403 = TH1F(
"ZpMassResRL403",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
147 ZpMassResRLoP401 = TH1F(
"ZpMassResRLoP401",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
148 ZpMassResRLoP402 = TH1F(
"ZpMassResRLoP402",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
149 ZpMassResRLoP403 = TH1F(
"ZpMassResRLoP403",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
151 ZpMassResPRL401 = TH1F(
"ZpMassResPRL401",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
152 ZpMassResPRL402 = TH1F(
"ZpMassResPRL402",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
153 ZpMassResPRL403 = TH1F(
"ZpMassResPRL403",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
155 dijetMass1 = TH1F(
"dijetMass1",
"DiJet Mass 1", 100, 0, 4000);
156 dijetMass12 = TH1F(
"dijetMass12",
"DiJet Mass 1 2", 100, 0, 6000);
157 dijetMass13 = TH1F(
"dijetMass13",
"DiJet Mass 1 3", 100, 0, 12000);
158 dijetMass2 = TH1F(
"dijetMass2",
"DiJet Mass 2", 100, 0, 4000);
159 dijetMass22 = TH1F(
"dijetMass22",
"DiJet Mass 2 2", 100, 0, 6000);
160 dijetMass23 = TH1F(
"dijetMass23",
"DiJet Mass 2 3", 100, 0, 12000);
161 dijetMass3 = TH1F(
"dijetMass3",
"DiJet Mass 3", 100, 0, 4000);
162 dijetMass32 = TH1F(
"dijetMass32",
"DiJet Mass 3 2", 100, 0, 6000);
163 dijetMass33 = TH1F(
"dijetMass33",
"DiJet Mass 3 3", 100, 0, 12000);
164 dijetMass4 = TH1F(
"dijetMass4",
"DiJet Mass 4", 100, 0, 4000);
165 dijetMass42 = TH1F(
"dijetMass42",
"DiJet Mass 4 2", 100, 0, 6000);
166 dijetMass43 = TH1F(
"dijetMass43",
"DiJet Mass 4 3", 100, 0, 12000);
168 dijetMass101 = TH1F(
"dijetMass101",
"DiJet Mass 1", 100, 0, 6000);
169 dijetMass131 = TH1F(
"dijetMass131",
"DiJet Mass 1", 100, 0, 6000);
170 dijetMass401 = TH1F(
"dijetMass401",
"DiJet Mass 1", 100, 0, 6000);
172 dijetMass102 = TH1F(
"dijetMass102",
"DiJet Mass 2", 100, 0, 6000);
173 dijetMass132 = TH1F(
"dijetMass132",
"DiJet Mass 2", 100, 0, 6000);
174 dijetMass402 = TH1F(
"dijetMass402",
"DiJet Mass 2", 100, 0, 6000);
176 dijetMass103 = TH1F(
"dijetMass103",
"DiJet Mass 3", 100, 0, 10000);
177 dijetMass133 = TH1F(
"dijetMass133",
"DiJet Mass 3", 100, 0, 10000);
178 dijetMass403 = TH1F(
"dijetMass403",
"DiJet Mass 3", 100, 0, 10000);
192 dijetMassCor1 = TH1F(
"dijetMassCor1",
"DiJet Mass 1", 160, 0, 8000);
193 dijetMassCor101 = TH1F(
"dijetMassCor101",
"DiJet Mass Cor 101", 160, 0, 8000);
194 dijetMassCor131 = TH1F(
"dijetMassCor131",
"DiJet Mass Cor 131", 160, 0, 8000);
195 dijetMassCor401 = TH1F(
"dijetMassCor401",
"DiJet Mass Cor 401", 160, 0, 8000);
212 dijetMassP1 = TH1F(
"dijetMassP1",
"DiJet Mass P 1", 160, 0, 8000);
213 dijetMassP2 = TH1F(
"dijetMassP2",
"DiJet Mass P 2", 160, 0, 8000);
214 dijetMassP3 = TH1F(
"dijetMassP3",
"DiJet Mass P 3", 160, 0, 8000);
216 dijetMassP101 = TH1F(
"dijetMassP101",
"DiJet Mass P 1", 160, 0, 8000);
217 dijetMassP131 = TH1F(
"dijetMassP131",
"DiJet Mass P 1", 160, 0, 8000);
218 dijetMassP401 = TH1F(
"dijetMassP401",
"DiJet Mass P 1", 160, 0, 8000);
232 totEneLeadJetEta1_1 = TH1F(
"totEneLeadJetEta1_1",
"Total Energy Lead Jet Eta1 1", 100, 0, 1500);
233 totEneLeadJetEta2_1 = TH1F(
"totEneLeadJetEta2_1",
"Total Energy Lead Jet Eta2 1", 100, 0, 1500);
234 totEneLeadJetEta3_1 = TH1F(
"totEneLeadJetEta3_1",
"Total Energy Lead Jet Eta3 1", 100, 0, 1500);
235 hadEneLeadJetEta1_1 = TH1F(
"hadEneLeadJetEta1_1",
"Hadronic Energy Lead Jet Eta1 1", 100, 0, 1500);
236 hadEneLeadJetEta2_1 = TH1F(
"hadEneLeadJetEta2_1",
"Hadronic Energy Lead Jet Eta2 1", 100, 0, 1500);
237 hadEneLeadJetEta3_1 = TH1F(
"hadEneLeadJetEta3_1",
"Hadronic Energy Lead Jet Eta3 1", 100, 0, 1500);
238 emEneLeadJetEta1_1 = TH1F(
"emEneLeadJetEta1_1",
"EM Energy Lead Jet Eta1 1", 100, 0, 1500);
239 emEneLeadJetEta2_1 = TH1F(
"emEneLeadJetEta2_1",
"EM Energy Lead Jet Eta2 1", 100, 0, 1500);
240 emEneLeadJetEta3_1 = TH1F(
"emEneLeadJetEta3_1",
"EM Energy Lead Jet Eta3 1", 100, 0, 1500);
242 totEneLeadJetEta1_2 = TH1F(
"totEneLeadJetEta1_2",
"Total Energy Lead Jet Eta1 2", 100, 0, 6000);
243 totEneLeadJetEta2_2 = TH1F(
"totEneLeadJetEta2_2",
"Total Energy Lead Jet Eta2 2", 100, 0, 6000);
244 totEneLeadJetEta3_2 = TH1F(
"totEneLeadJetEta3_2",
"Total Energy Lead Jet Eta3 2", 100, 0, 6000);
245 hadEneLeadJetEta1_2 = TH1F(
"hadEneLeadJetEta1_2",
"Hadronic Energy Lead Jet Eta1 2", 100, 0, 6000);
246 hadEneLeadJetEta2_2 = TH1F(
"hadEneLeadJetEta2_2",
"Hadronic Energy Lead Jet Eta2 2", 100, 0, 6000);
247 hadEneLeadJetEta3_2 = TH1F(
"hadEneLeadJetEta3_2",
"Hadronic Energy Lead Jet Eta3 2", 100, 0, 6000);
248 emEneLeadJetEta1_2 = TH1F(
"emEneLeadJetEta1_2",
"EM Energy Lead Jet Eta1 2", 100, 0, 5000);
249 emEneLeadJetEta2_2 = TH1F(
"emEneLeadJetEta2_2",
"EM Energy Lead Jet Eta2 2", 100, 0, 5000);
250 emEneLeadJetEta3_2 = TH1F(
"emEneLeadJetEta3_2",
"EM Energy Lead Jet Eta3 2", 100, 0, 5000);
252 hadEneLeadJet1 = TH1F(
"hadEneLeadJet1",
"Hadronic Energy Lead Jet 1", 100, 0, 3000);
253 hadEneLeadJet12 = TH1F(
"hadEneLeadJet12",
"Hadronic Energy Lead Jet 1 2", 100, 0, 4000);
254 hadEneLeadJet13 = TH1F(
"hadEneLeadJet13",
"Hadronic Energy Lead Jet 1 3", 100, 0, 6000);
255 hadEneLeadJet2 = TH1F(
"hadEneLeadJet2",
"Hadronic Energy Lead Jet 2", 100, 0, 3000);
256 hadEneLeadJet22 = TH1F(
"hadEneLeadJet22",
"Hadronic Energy Lead Jet 2 2", 100, 0, 4000);
257 hadEneLeadJet23 = TH1F(
"hadEneLeadJet23",
"Hadronic Energy Lead Jet 2 3", 100, 0, 6000);
258 hadEneLeadJet3 = TH1F(
"hadEneLeadJet3",
"Hadronic Energy Lead Jet 3", 100, 0, 3000);
259 hadEneLeadJet32 = TH1F(
"hadEneLeadJet32",
"Hadronic Energy Lead Jet 3 2", 100, 0, 4000);
260 hadEneLeadJet33 = TH1F(
"hadEneLeadJet33",
"Hadronic Energy Lead Jet 3 3", 100, 0, 6000);
262 emEneLeadJet1 = TH1F(
"emEneLeadJet1",
"EM Energy Lead Jet 1", 100, 0, 1500);
263 emEneLeadJet12 = TH1F(
"emEneLeadJet12",
"EM Energy Lead Jet 1 2", 100, 0, 3000);
264 emEneLeadJet13 = TH1F(
"emEneLeadJet13",
"EM Energy Lead Jet 1 3", 100, 0, 5000);
265 emEneLeadJet2 = TH1F(
"emEneLeadJet2",
"EM Energy Lead Jet 2", 100, 0, 1500);
266 emEneLeadJet22 = TH1F(
"emEneLeadJet22",
"EM Energy Lead Jet 2 2", 100, 0, 3000);
267 emEneLeadJet23 = TH1F(
"emEneLeadJet23",
"EM Energy Lead Jet 2 3", 100, 0, 5000);
268 emEneLeadJet3 = TH1F(
"emEneLeadJet3",
"EM Energy Lead Jet 3", 100, 0, 1500);
269 emEneLeadJet32 = TH1F(
"emEneLeadJet32",
"EM Energy Lead Jet 3 2", 100, 0, 3000);
270 emEneLeadJet33 = TH1F(
"emEneLeadJet33",
"EM Energy Lead Jet 3 3", 100, 0, 5000);
272 hadFracEta11 = TH1F(
"hadFracEta11",
"Hadronic Fraction Eta1 Jet 1", 100, 0, 1);
273 hadFracEta21 = TH1F(
"hadFracEta21",
"Hadronic Fraction Eta2 Jet 1", 100, 0, 1);
274 hadFracEta31 = TH1F(
"hadFracEta31",
"Hadronic Fraction Eta3 Jet 1", 100, 0, 1);
276 hadFracEta12 = TH1F(
"hadFracEta12",
"Hadronic Fraction Eta1 Jet 2", 100, 0, 1);
277 hadFracEta22 = TH1F(
"hadFracEta22",
"Hadronic Fraction Eta2 Jet 2", 100, 0, 1);
278 hadFracEta32 = TH1F(
"hadFracEta32",
"Hadronic Fraction Eta3 Jet 2", 100, 0, 1);
280 hadFracEta13 = TH1F(
"hadFracEta13",
"Hadronic Fraction Eta1 Jet 3", 100, 0, 1);
281 hadFracEta23 = TH1F(
"hadFracEta23",
"Hadronic Fraction Eta2 Jet 3", 100, 0, 1);
282 hadFracEta33 = TH1F(
"hadFracEta33",
"Hadronic Fraction Eta3 Jet 3", 100, 0, 1);
284 hadFracLeadJet1 = TH1F(
"hadFracLeadJet1",
"Hadronic Fraction Lead Jet 1", 100, 0, 1);
285 hadFracLeadJet2 = TH1F(
"hadFracLeadJet2",
"Hadronic Fraction Lead Jet 2", 100, 0, 1);
286 hadFracLeadJet3 = TH1F(
"hadFracLeadJet3",
"Hadronic Fraction Lead Jet 3", 100, 0, 1);
288 SumEt1 = TH1F(
"SumEt1",
"SumEt 1", 100, 0, 1000);
289 SumEt12 = TH1F(
"SumEt12",
"SumEt 1 2", 100, 0, 4000);
290 SumEt13 = TH1F(
"SumEt13",
"SumEt 1 3", 100, 0, 15000);
292 MET1 = TH1F(
"MET1",
"MET 1", 100, 0, 200);
293 MET12 = TH1F(
"MET12",
"MET 1 2", 100, 0, 1000);
294 MET13 = TH1F(
"MET13",
"MET 1 3", 100, 0, 3000);
296 nTowersLeadJet1 = TH1F(
"nTowersLeadJet1",
"Number of Towers Lead Jet 1", 100, 0, 100);
297 nTowersLeadJet2 = TH1F(
"nTowersLeadJet2",
"Number of Towers Lead Jet 2", 100, 0, 100);
298 nTowersLeadJet3 = TH1F(
"nTowersLeadJet3",
"Number of Towers Lead Jet 3", 100, 0, 100);
300 nTowersSecondJet1 = TH1F(
"nTowersSecondJet1",
"Number of Towers Second Jet 1", 100, 0, 100);
301 nTowersSecondJet2 = TH1F(
"nTowersSecondJet2",
"Number of Towers Second Jet 2", 100, 0, 100);
302 nTowersSecondJet3 = TH1F(
"nTowersSecondJet3",
"Number of Towers Second Jet 3", 100, 0, 100);
304 hf_PtResponse1 = TProfile(
"PtResponse1",
"Pt Response 1", 100, -5, 5, 0, 10);
305 hf_PtResponse2 = TProfile(
"PtResponse2",
"Pt Response 2", 100, -5, 5, 0, 10);
306 hf_PtResponse3 = TProfile(
"PtResponse3",
"Pt Response 3", 100, -5, 5, 0, 10);
307 hf_PtResponse4 = TProfile(
"PtResponse4",
"Pt Response 4", 100, -5, 5, 0, 10);
309 hf_TowerDelR1 = TProfile(
"hf_TowerDelR1",
"Tower Del R 1", 100, 0, 2, 0, 10);
310 hf_TowerDelR12 = TProfile(
"hf_TowerDelR12",
"Tower Del R 1", 80, 0, 0.8, 0, 10);
311 hf_TowerDelR2 = TProfile(
"hf_TowerDelR2",
"Tower Del R 2", 100, 0, 2, 0, 10);
312 hf_TowerDelR22 = TProfile(
"hf_TowerDelR22",
"Tower Del R 2", 80, 0, 0.8, 0, 10);
313 hf_TowerDelR3 = TProfile(
"hf_TowerDelR3",
"Tower Del R 3", 100, 0, 2, 0, 10);
314 hf_TowerDelR32 = TProfile(
"hf_TowerDelR32",
"Tower Del R 3", 80, 0, 0.8, 0, 10);
321 nTowers1 = TH1F(
"nTowers1",
"Number of Towers pt 0.5", 100, 0, 500);
322 nTowers2 = TH1F(
"nTowers2",
"Number of Towers pt 1.0", 100, 0, 500);
323 nTowers3 = TH1F(
"nTowers3",
"Number of Towers pt 1.5", 100, 0, 500);
324 nTowers4 = TH1F(
"nTowers4",
"Number of Towers pt 2.0", 100, 0, 500);
326 nTowersLeadJetPt1 = TH1F(
"nTowersLeadJetPt1",
"Number of Towers in Lead Jet pt 0.5", 100, 0, 200);
327 nTowersLeadJetPt2 = TH1F(
"nTowersLeadJetPt2",
"Number of Towers in Lead Jet pt 1.0", 100, 0, 200);
328 nTowersLeadJetPt3 = TH1F(
"nTowersLeadJetPt3",
"Number of Towers in Lead Jet pt 1.5", 100, 0, 200);
329 nTowersLeadJetPt4 = TH1F(
"nTowersLeadJetPt4",
"Number of Towers in Lead Jet pt 2.0", 100, 0, 200);
331 TowerEtLeadJet1 = TH1F(
"TowerEtLeadJet1",
"Towers Et Lead Jet 1", 100, 0, 2000);
332 TowerEtLeadJet12 = TH1F(
"TowerEtLeadJet12",
"Towers Et Lead Jet 1 2", 100, 0, 6000);
333 TowerEtLeadJet13 = TH1F(
"TowerEtLeadJet13",
"Towers Et Lead Jet 1 3", 100, 0, 300);
334 TowerEtLeadJet2 = TH1F(
"TowerEtLeadJet2",
"Towers Et Lead Jet 2", 100, 0, 2000);
335 TowerEtLeadJet22 = TH1F(
"TowerEtLeadJet22",
"Towers Et Lead Jet 2 2", 100, 0, 6000);
336 TowerEtLeadJet23 = TH1F(
"TowerEtLeadJet23",
"Towers Et Lead Jet 2 3", 100, 0, 300);
337 TowerEtLeadJet3 = TH1F(
"TowerEtLeadJet3",
"Towers Et Lead Jet 3", 100, 0, 2000);
338 TowerEtLeadJet32 = TH1F(
"TowerEtLeadJet32",
"Towers Et Lead Jet 3 2", 100, 0, 6000);
339 TowerEtLeadJet33 = TH1F(
"TowerEtLeadJet33",
"Towers Et Lead Jet 3 3", 100, 0, 300);
341 hf_nJet1 = TProfile(
"hf_nJet1",
"Num Jets 1", 100, 0, 5000, 0, 50);
342 hf_nJet2 = TProfile(
"hf_nJet2",
"Num Jets 2", 100, 0, 5000, 0, 50);
343 hf_nJet3 = TProfile(
"hf_nJet3",
"Num Jets 3", 100, 0, 5000, 0, 50);
344 hf_nJet4 = TProfile(
"hf_nJet4",
"Num Jets 4", 100, 0, 5000, 0, 50);
346 hf_nJet1s = TProfile(
"hf_nJet1s",
"Num Jets 1", 100, 0, 200, 0, 50);
347 hf_nJet2s = TProfile(
"hf_nJet2s",
"Num Jets 2", 100, 0, 200, 0, 50);
348 hf_nJet3s = TProfile(
"hf_nJet3s",
"Num Jets 3", 100, 0, 200, 0, 50);
349 hf_nJet4s = TProfile(
"hf_nJet4s",
"Num Jets 4", 100, 0, 200, 0, 50);
351 hf_nJet11 = TProfile(
"hf_nJet11",
"Num Jets 1 1", 100, 0, 3000, 0, 50);
352 hf_nJet21 = TProfile(
"hf_nJet21",
"Num Jets 2 1", 100, 0, 3000, 0, 50);
353 hf_nJet31 = TProfile(
"hf_nJet31",
"Num Jets 3 1", 100, 0, 3000, 0, 50);
354 hf_nJet41 = TProfile(
"hf_nJet41",
"Num Jets 4 1", 100, 0, 3000, 0, 50);
356 dRPar1 = TH1F(
"dRPar1",
"Parton dR with matched CaloJet1", 100, 0, 0.5);
357 dPhiPar1 = TH1F(
"dPhiPar1",
"Parton dPhi with matched CaloJet1", 200, -0.5, 0.5);
358 dEtaPar1 = TH1F(
"dEtaPar1",
"Parton dEta with matched CaloJet1", 200, -0.5, 0.5);
359 dPtPar1 = TH1F(
"dPtPar1",
"Parton dPt with matched CaloJet1", 200, -50, 50);
361 dRPar2 = TH1F(
"dRPar2",
"Parton dR with matched CaloJet2", 100, 0, 0.5);
362 dPhiPar2 = TH1F(
"dPhiPar2",
"Parton dPhi with matched CaloJet2", 200, -0.5, 0.5);
363 dEtaPar2 = TH1F(
"dEtaPar2",
"Parton dEta with matched CaloJet2", 200, -0.5, 0.5);
364 dPtPar2 = TH1F(
"dPtPar2",
"Parton dPt with matched CaloJet2", 200, -50, 50);
366 dRPar3 = TH1F(
"dRPar3",
"Parton dR with matched CaloJet3", 100, 0, 0.5);
367 dPhiPar3 = TH1F(
"dPhiPar3",
"Parton dPhi with matched CaloJet3", 200, -0.5, 0.5);
368 dEtaPar3 = TH1F(
"dEtaPar3",
"Parton dEta with matched CaloJet3", 200, -0.5, 0.5);
369 dPtPar3 = TH1F(
"dPtPar3",
"Parton dPt with matched CaloJet3", 200, -50, 50);
371 dRPar4 = TH1F(
"dRPar4",
"Parton dR with matched CaloJet4", 100, 0, 0.5);
372 dPhiPar4 = TH1F(
"dPhiPar4",
"Parton dPhi with matched CaloJet4", 200, -0.5, 0.5);
373 dEtaPar4 = TH1F(
"dEtaPar4",
"Parton dEta with matched CaloJet4", 200, -0.5, 0.5);
374 dPtPar4 = TH1F(
"dPtPar4",
"Parton dPt with matched CaloJet4", 200, -50, 50);
376 dRParton = TH1F(
"dRParton",
"dR Parton", 100, 0, 10.0);
377 dRPartonMin = TH1F(
"dRPartonMin",
"Min dR Parton", 100, 0, 2.0);
379 dR1 = TH1F(
"dR1",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
380 dPhi1 = TH1F(
"dPhi1",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
381 dEta1 = TH1F(
"dEta1",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
382 dPt1 = TH1F(
"dPt1",
"GenJets dPt with matched CaloJet", 200, -100, 100);
383 dPtFrac1 = TH1F(
"dPtFrac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
384 dPt20Frac1 = TH1F(
"dPt20Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
385 dPt40Frac1 = TH1F(
"dPt40Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
386 dPt80Frac1 = TH1F(
"dPt80Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
387 dPt100Frac1 = TH1F(
"dPt100Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
389 dR2 = TH1F(
"dR2",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
390 dPhi2 = TH1F(
"dPhi2",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
391 dEta2 = TH1F(
"dEta2",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
392 dPt2 = TH1F(
"dPt2",
"GenJets dPt with matched CaloJet", 200, -100, 100);
393 dPtFrac2 = TH1F(
"dPtFrac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
394 dPt20Frac2 = TH1F(
"dPt20Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
395 dPt40Frac2 = TH1F(
"dPt40Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
396 dPt80Frac2 = TH1F(
"dPt80Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
397 dPt100Frac2 = TH1F(
"dPt100Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
399 dR3 = TH1F(
"dR3",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
400 dPhi3 = TH1F(
"dPhi3",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
401 dEta3 = TH1F(
"dEta3",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
402 dPt3 = TH1F(
"dPt3",
"GenJets dPt with matched CaloJet", 200, -100, 100);
403 dPtFrac3 = TH1F(
"dPtFrac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
404 dPt20Frac3 = TH1F(
"dPt20Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
405 dPt40Frac3 = TH1F(
"dPt40Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
406 dPt80Frac3 = TH1F(
"dPt80Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
407 dPt100Frac3 = TH1F(
"dPt100Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
409 dR4 = TH1F(
"dR4",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
410 dPhi4 = TH1F(
"dPhi4",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
411 dEta4 = TH1F(
"dEta4",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
412 dPt4 = TH1F(
"dPt4",
"GenJets dPt with matched CaloJet", 200, -100, 100);
413 dPtFrac4 = TH1F(
"dPtFrac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
414 dPt20Frac4 = TH1F(
"dPt20Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
415 dPt40Frac4 = TH1F(
"dPt40Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
416 dPt80Frac4 = TH1F(
"dPt80Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
417 dPt100Frac4 = TH1F(
"dPt100Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
419 dR12 = TH1F(
"dR12",
"dR MidPoint - SISCone", 100, 0, 0.5);
420 dPhi12 = TH1F(
"dPhi12",
"dPhi MidPoint - SISCone", 200, -0.5, 0.5);
421 dEta12 = TH1F(
"dEta12",
"dEta MidPoint - SISCone", 200, -0.5, 0.5);
422 dPt12 = TH1F(
"dPt12",
"dPt MidPoint - SISCone", 200, -100, 100);
424 h_nCalJets1 = TH1F(
"nCalJets1",
"Number of CalJets1", 20, 0, 20);
425 h_nCalJets2 = TH1F(
"nCalJets2",
"Number of CalJets2", 20, 0, 20);
426 h_nCalJets3 = TH1F(
"nCalJets3",
"Number of CalJets3", 20, 0, 20);
427 h_nCalJets4 = TH1F(
"nCalJets4",
"Number of CalJets4", 20, 0, 20);
429 h_lowPtCal11 = TH1F(
"lowPtCal11",
"Low p_{T} of CalJet1 Eta1", 100, 0, 100);
430 h_lowPtCal21 = TH1F(
"lowPtCal21",
"Low p_{T} of CalJet2 Eta1", 100, 0, 100);
431 h_lowPtCal31 = TH1F(
"lowPtCal31",
"Low p_{T} of CalJet3 Eta1", 100, 0, 100);
432 h_lowPtCal41 = TH1F(
"lowPtCal41",
"Low p_{T} of CalJet4 Eta1", 100, 0, 100);
434 h_lowPtCal12 = TH1F(
"lowPtCal12",
"Low p_{T} of CalJet1 Eta2", 100, 0, 100);
435 h_lowPtCal22 = TH1F(
"lowPtCal22",
"Low p_{T} of CalJet2 Eta2", 100, 0, 100);
436 h_lowPtCal32 = TH1F(
"lowPtCal32",
"Low p_{T} of CalJet3 Eta2", 100, 0, 100);
437 h_lowPtCal42 = TH1F(
"lowPtCal42",
"Low p_{T} of CalJet4 Eta2", 100, 0, 100);
439 h_lowPtCal13 = TH1F(
"lowPtCal13",
"Low p_{T} of CalJet1 Eta3", 100, 0, 100);
440 h_lowPtCal23 = TH1F(
"lowPtCal23",
"Low p_{T} of CalJet2 Eta3", 100, 0, 100);
441 h_lowPtCal33 = TH1F(
"lowPtCal33",
"Low p_{T} of CalJet3 Eta3", 100, 0, 100);
442 h_lowPtCal43 = TH1F(
"lowPtCal43",
"Low p_{T} of CalJet4 Eta3", 100, 0, 100);
444 h_lowPtCal1c11 = TH1F(
"lowPtCal1c11",
"Low p_{T} of CalJet1 c1 Eta1", 100, 0, 100);
445 h_lowPtCal2c11 = TH1F(
"lowPtCal2c11",
"Low p_{T} of CalJet2 c1 Eta1", 100, 0, 100);
446 h_lowPtCal3c11 = TH1F(
"lowPtCal3c11",
"Low p_{T} of CalJet3 c1 Eta1", 100, 0, 100);
447 h_lowPtCal4c11 = TH1F(
"lowPtCal4c11",
"Low p_{T} of CalJet4 c1 Eta1", 100, 0, 100);
449 h_lowPtCal1c12 = TH1F(
"lowPtCal1c12",
"Low p_{T} of CalJet1 c1 Eta2", 100, 0, 100);
450 h_lowPtCal2c12 = TH1F(
"lowPtCal2c12",
"Low p_{T} of CalJet2 c1 Eta2", 100, 0, 100);
451 h_lowPtCal3c12 = TH1F(
"lowPtCal3c12",
"Low p_{T} of CalJet3 c1 Eta2", 100, 0, 100);
452 h_lowPtCal4c12 = TH1F(
"lowPtCal4c12",
"Low p_{T} of CalJet4 c1 Eta2", 100, 0, 100);
454 h_lowPtCal1c13 = TH1F(
"lowPtCal1c13",
"Low p_{T} of CalJet1 c1 Eta3", 100, 0, 100);
455 h_lowPtCal2c13 = TH1F(
"lowPtCal2c13",
"Low p_{T} of CalJet2 c1 Eta3", 100, 0, 100);
456 h_lowPtCal3c13 = TH1F(
"lowPtCal3c13",
"Low p_{T} of CalJet3 c1 Eta3", 100, 0, 100);
457 h_lowPtCal4c13 = TH1F(
"lowPtCal4c13",
"Low p_{T} of CalJet4 c1 Eta3", 100, 0, 100);
459 matchedAllPt11 = TH1F(
"matchedAllPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250);
460 matchedAllPt12 = TH1F(
"matchedAllPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250);
461 matchedAllPt13 = TH1F(
"matchedAllPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250);
462 matchedPt11 = TH1F(
"matchedPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250);
463 matchedPt12 = TH1F(
"matchedPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250);
464 matchedPt13 = TH1F(
"matchedPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250);
466 matchedAllPt21 = TH1F(
"matchedAllPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250);
467 matchedAllPt22 = TH1F(
"matchedAllPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250);
468 matchedAllPt23 = TH1F(
"matchedAllPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250);
469 matchedPt21 = TH1F(
"matchedPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250);
470 matchedPt22 = TH1F(
"matchedPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250);
471 matchedPt23 = TH1F(
"matchedPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250);
473 matchedAllPt31 = TH1F(
"matchedAllPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250);
474 matchedAllPt32 = TH1F(
"matchedAllPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250);
475 matchedAllPt33 = TH1F(
"matchedAllPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250);
476 matchedPt31 = TH1F(
"matchedPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250);
477 matchedPt32 = TH1F(
"matchedPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250);
478 matchedPt33 = TH1F(
"matchedPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250);
480 matchedAllPt41 = TH1F(
"matchedAllPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250);
481 matchedAllPt42 = TH1F(
"matchedAllPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250);
482 matchedAllPt43 = TH1F(
"matchedAllPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250);
483 matchedPt41 = TH1F(
"matchedPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250);
484 matchedPt42 = TH1F(
"matchedPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250);
485 matchedPt43 = TH1F(
"matchedPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250);
487 h_ptCal1 = TH1F(
"ptCal1",
"p_{T} of CalJet1", 50, 0, 1000);
488 h_ptCal12 = TH1F(
"ptCal12",
"p_{T} of CalJet1 2", 50, 0, 6000);
489 h_ptCal13 = TH1F(
"ptCal13",
"p_{T} of CalJet1 2", 50, 0, 300);
491 h_ptCal2 = TH1F(
"ptCal2",
"p_{T} of CalJet2", 50, 0, 1000);
492 h_ptCal22 = TH1F(
"ptCal22",
"p_{T} of CalJet2 2", 50, 0, 6000);
493 h_ptCal23 = TH1F(
"ptCal23",
"p_{T} of CalJet2 2", 50, 0, 300);
495 h_ptCal3 = TH1F(
"ptCal3",
"p_{T} of CalJet3", 50, 0, 1000);
496 h_ptCal32 = TH1F(
"ptCal32",
"p_{T} of CalJet3 2", 50, 0, 6000);
497 h_ptCal33 = TH1F(
"ptCal33",
"p_{T} of CalJet3 2", 50, 0, 300);
499 h_ptCal4 = TH1F(
"ptCal4",
"p_{T} of CalJet4", 50, 0, 1000);
500 h_ptCal42 = TH1F(
"ptCal42",
"p_{T} of CalJet4 2", 50, 0, 6000);
501 h_ptCal43 = TH1F(
"ptCal43",
"p_{T} of CalJet4 2", 50, 0, 300);
503 h_etaCal1 = TH1F(
"etaCal1",
"#eta of CalJet1", 100, -4, 4);
504 h_etaCal2 = TH1F(
"etaCal2",
"#eta of CalJet2", 100, -4, 4);
505 h_etaCal3 = TH1F(
"etaCal3",
"#eta of CalJet3", 100, -4, 4);
506 h_etaCal4 = TH1F(
"etaCal4",
"#eta of CalJet4", 100, -4, 4);
513 h_ptCalL1 = TH1F(
"ptCalL1",
"p_{T} of CalJetL1", 50, 0, 300);
514 h_ptCalL12 = TH1F(
"ptCalL12",
"p_{T} of CalJetL1 2", 50, 0, 1200);
515 h_ptCalL13 = TH1F(
"ptCalL13",
"p_{T} of CalJetL1 3", 50, 0, 6000);
516 h_ptCalL2 = TH1F(
"ptCalL2",
"p_{T} of CalJetL2", 50, 0, 300);
517 h_ptCalL22 = TH1F(
"ptCalL22",
"p_{T} of CalJetL2 2", 50, 0, 1200);
518 h_ptCalL23 = TH1F(
"ptCalL23",
"p_{T} of CalJetL2 3", 50, 0, 6000);
519 h_ptCalL3 = TH1F(
"ptCalL3",
"p_{T} of CalJetL3", 50, 0, 300);
520 h_ptCalL32 = TH1F(
"ptCalL32",
"p_{T} of CalJetL3 2", 50, 0, 1200);
521 h_ptCalL33 = TH1F(
"ptCalL33",
"p_{T} of CalJetL3 3", 50, 0, 6000);
522 h_ptCalL4 = TH1F(
"ptCalL4",
"p_{T} of CalJetL4", 50, 0, 300);
523 h_ptCalL42 = TH1F(
"ptCalL42",
"p_{T} of CalJetL4 2", 50, 0, 1200);
524 h_ptCalL43 = TH1F(
"ptCalL43",
"p_{T} of CalJetL4 3", 50, 0, 6000);
526 h_etaCalL1 = TH1F(
"etaCalL1",
"#eta of CalJetL1", 100, -4, 4);
527 h_etaCalL2 = TH1F(
"etaCalL2",
"#eta of CalJetL2", 100, -4, 4);
528 h_etaCalL3 = TH1F(
"etaCalL3",
"#eta of CalJetL3", 100, -4, 4);
529 h_etaCalL4 = TH1F(
"etaCalL4",
"#eta of CalJetL4", 100, -4, 4);
535 h_nGenJets1 = TH1F(
"nGenJets1",
"Number of GenJets1", 20, 0, 20);
536 h_nGenJets2 = TH1F(
"nGenJets2",
"Number of GenJets2", 20, 0, 20);
537 h_nGenJets3 = TH1F(
"nGenJets3",
"Number of GenJets3", 20, 0, 20);
538 h_nGenJets4 = TH1F(
"nGenJets4",
"Number of GenJets4", 20, 0, 20);
540 h_ptGen1 = TH1F(
"ptGen1",
"p_{T} of GenJet1", 50, 0, 1000);
541 h_ptGen12 = TH1F(
"ptGen12",
"p_{T} of GenJet1 2", 50, 0, 6000);
542 h_ptGen13 = TH1F(
"ptGen13",
"p_{T} of GenJet1 3", 50, 0, 300);
544 h_ptGen2 = TH1F(
"ptGen2",
"p_{T} of GenJet2", 50, 0, 1000);
545 h_ptGen22 = TH1F(
"ptGen22",
"p_{T} of GenJet2 2", 50, 0, 6000);
546 h_ptGen23 = TH1F(
"ptGen23",
"p_{T} of GenJet2 3", 50, 0, 300);
548 h_ptGen3 = TH1F(
"ptGen3",
"p_{T} of GenJet3", 50, 0, 1000);
549 h_ptGen32 = TH1F(
"ptGen32",
"p_{T} of GenJet3 2", 50, 0, 6000);
550 h_ptGen33 = TH1F(
"ptGen33",
"p_{T} of GenJet3 3", 50, 0, 300);
552 h_ptGen4 = TH1F(
"ptGen4",
"p_{T} of GenJet4", 50, 0, 1000);
553 h_ptGen42 = TH1F(
"ptGen42",
"p_{T} of GenJet4 2", 50, 0, 6000);
554 h_ptGen43 = TH1F(
"ptGen43",
"p_{T} of GenJet4 3", 50, 0, 300);
556 h_etaGen1 = TH1F(
"etaGen1",
"#eta of GenJet1", 100, -4, 4);
557 h_etaGen2 = TH1F(
"etaGen2",
"#eta of GenJet2", 100, -4, 4);
558 h_etaGen3 = TH1F(
"etaGen3",
"#eta of GenJet3", 100, -4, 4);
563 h_ptGenL1 = TH1F(
"ptGenL1",
"p_{T} of GenJetL1", 50, 0, 300);
564 h_ptGenL12 = TH1F(
"ptGenL12",
"p_{T} of GenJetL1 2", 50, 0, 1200);
565 h_ptGenL13 = TH1F(
"ptGenL13",
"p_{T} of GenJetL1 3", 50, 0, 6000);
566 h_ptGenL2 = TH1F(
"ptGenL2",
"p_{T} of GenJetL2", 50, 0, 300);
567 h_ptGenL22 = TH1F(
"ptGenL22",
"p_{T} of GenJetL2 2", 50, 0, 1200);
568 h_ptGenL23 = TH1F(
"ptGenL23",
"p_{T} of GenJetL2 3", 50, 0, 6000);
569 h_ptGenL3 = TH1F(
"ptGenL3",
"p_{T} of GenJetL3", 50, 0, 300);
570 h_ptGenL32 = TH1F(
"ptGenL32",
"p_{T} of GenJetL32", 50, 0, 1200);
571 h_ptGenL33 = TH1F(
"ptGenL33",
"p_{T} of GenJetL33", 50, 0, 6000);
573 h_etaGenL1 = TH1F(
"etaGenL1",
"#eta of GenJetL1", 100, -4, 4);
574 h_etaGenL2 = TH1F(
"etaGenL2",
"#eta of GenJetL2", 100, -4, 4);
575 h_etaGenL3 = TH1F(
"etaGenL3",
"#eta of GenJetL3", 100, -4, 4);
580 h_jetEt1 = TH1F(
"jetEt1",
"Total Jet Et", 100, 0, 3000);
581 h_jetEt2 = TH1F(
"jetEt2",
"Total Jet Et", 100, 0, 3000);
582 h_jetEt3 = TH1F(
"jetEt3",
"Total Jet Et", 100, 0, 3000);
584 h_jet1Pt1 = TH1F(
"jet1Pt1",
"Jet Pt", 100, 0, 3000);
585 h_jet2Pt1 = TH1F(
"jet2Pt1",
"Jet Pt", 100, 0, 3000);
586 h_jet3Pt1 = TH1F(
"jet3Pt1",
"Jet Pt", 100, 0, 3000);
587 h_jet4Pt1 = TH1F(
"jet4Pt1",
"Jet Pt", 100, 0, 3000);
588 h_jet5Pt1 = TH1F(
"jet5Pt1",
"Jet Pt", 100, 0, 3000);
589 h_jet6Pt1 = TH1F(
"jet6Pt1",
"Jet Pt", 100, 0, 3000);
590 h_jet7Pt1 = TH1F(
"jet7Pt1",
"Jet Pt", 100, 0, 3000);
592 h_jet1Pt2 = TH1F(
"jet1Pt2",
"Jet Pt", 100, 0, 3000);
593 h_jet2Pt2 = TH1F(
"jet2Pt2",
"Jet Pt", 100, 0, 3000);
594 h_jet3Pt2 = TH1F(
"jet3Pt2",
"Jet Pt", 100, 0, 3000);
595 h_jet4Pt2 = TH1F(
"jet4Pt2",
"Jet Pt", 100, 0, 3000);
596 h_jet5Pt2 = TH1F(
"jet5Pt2",
"Jet Pt", 100, 0, 3000);
597 h_jet6Pt2 = TH1F(
"jet6Pt2",
"Jet Pt", 100, 0, 3000);
598 h_jet7Pt2 = TH1F(
"jet7Pt2",
"Jet Pt", 100, 0, 3000);
600 h_jet1Pt3 = TH1F(
"jet1Pt3",
"Jet Pt", 100, 0, 3000);
601 h_jet2Pt3 = TH1F(
"jet2Pt3",
"Jet Pt", 100, 0, 3000);
602 h_jet3Pt3 = TH1F(
"jet3Pt3",
"Jet Pt", 100, 0, 3000);
603 h_jet4Pt3 = TH1F(
"jet4Pt3",
"Jet Pt", 100, 0, 3000);
604 h_jet5Pt3 = TH1F(
"jet5Pt3",
"Jet Pt", 100, 0, 3000);
605 h_jet6Pt3 = TH1F(
"jet6Pt3",
"Jet Pt", 100, 0, 3000);
606 h_jet7Pt3 = TH1F(
"jet7Pt3",
"Jet Pt", 100, 0, 3000);
608 h_jet1Pt4 = TH1F(
"jet1Pt4",
"Jet Pt", 100, 0, 3000);
609 h_jet2Pt4 = TH1F(
"jet2Pt4",
"Jet Pt", 100, 0, 3000);
610 h_jet3Pt4 = TH1F(
"jet3Pt4",
"Jet Pt", 100, 0, 3000);
611 h_jet4Pt4 = TH1F(
"jet4Pt4",
"Jet Pt", 100, 0, 3000);
612 h_jet5Pt4 = TH1F(
"jet5Pt4",
"Jet Pt", 100, 0, 3000);
613 h_jet6Pt4 = TH1F(
"jet6Pt4",
"Jet Pt", 100, 0, 3000);
614 h_jet7Pt4 = TH1F(
"jet7Pt4",
"Jet Pt", 100, 0, 3000);
616 h_totMissEt1 = TH1F(
"totMissEt1",
"Total Unclustered Et", 100, 0, 500);
617 h_totMissEt2 = TH1F(
"totMissEt2",
"Total Unclustered Et", 100, 0, 500);
618 h_totMissEt3 = TH1F(
"totMissEt3",
"Total Unclustered Et", 100, 0, 500);
620 h_missEt1 = TH1F(
"missEt1",
"Unclustered Et", 100, 0, 50);
621 h_missEt2 = TH1F(
"missEt2",
"Unclustered Et", 100, 0, 50);
622 h_missEt3 = TH1F(
"missEt3",
"Unclustered Et", 100, 0, 50);
624 h_missEt1s = TH1F(
"missEt1s",
"Unclustered Et", 100, 0, 2);
625 h_missEt2s = TH1F(
"missEt2s",
"Unclustered Et", 100, 0, 2);
626 h_missEt3s = TH1F(
"missEt3s",
"Unclustered Et", 100, 0, 2);
628 ParMatch1 = TH1F(
"ParMatch1",
"Number of Matched Jets 1", 10, 0, 10);
629 ParMatch2 = TH1F(
"ParMatch2",
"Number of Matched Jets 2", 10, 0, 10);
630 ParMatch3 = TH1F(
"ParMatch3",
"Number of Matched Jets 3", 10, 0, 10);
634 int EtaOk10, EtaOk13, EtaOk40;
636 double ZpM, ZpMG, ZpMM;
637 double LeadMass1, LeadMass2, LeadMass3, LeadMass4;
638 double LeadMassP1, LeadMassP2, LeadMassP3;
641 float minJetPt10 = 10.;
642 int jetInd, allJetInd;
645 double matchedDelR = 0.3;
663 for (
int istep = 0; istep < 100; ++istep) {
665 float ptStep = (istep * (5000. / 100.));
666 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
667 if (cal->pt() > ptStep)
675 for (
int istep = 0; istep < 100; ++istep) {
677 float ptStep = (istep * (200. / 100.));
678 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
679 if (cal->pt() > ptStep)
687 for (
int istep = 0; istep < 100; ++istep) {
689 float ptStep = (istep * (3000. / 100.));
690 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
691 if (cal->pt() > ptStep)
711 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
714 double corPt =
scale * cal->pt();
717 if (corPt > highestPt) {
719 p4cortmp[1] = p4cortmp[0];
721 p4cortmp[0] =
scale * cal->p4();
722 }
else if (corPt > nextPt) {
724 p4cortmp[1] =
scale * cal->p4();
737 if (allJetInd == 1) {
739 p4tmp[0] = cal->p4();
740 if (fabs(cal->eta()) < 1.0)
742 if (fabs(cal->eta()) < 1.3)
744 if (fabs(cal->eta()) < 4.0)
747 if (allJetInd == 2) {
749 p4tmp[1] = cal->p4();
750 if (fabs(cal->eta()) < 1.0)
752 if (fabs(cal->eta()) < 1.3)
754 if (fabs(cal->eta()) < 4.0)
757 if ((allJetInd == 1) || (allJetInd == 2)) {
777 if (fabs(cal->eta()) < 1.3) {
779 if (cal->pt() > 10.) {
783 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
785 if (cal->pt() > 10.) {
789 if (fabs(cal->eta()) > 3.0) {
791 if (cal->pt() > 10.) {
811 LeadMass1 = (p4tmp[0] + p4tmp[1]).
mass();
840 LeadMass1 = (p4cortmp[0] + p4cortmp[1]).
mass();
893 for (
int istep = 0; istep < 100; ++istep) {
895 float ptStep = (istep * (5000. / 100.));
897 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
898 if (cal->pt() > ptStep)
904 for (
int istep = 0; istep < 100; ++istep) {
906 float ptStep = (istep * (200. / 100.));
908 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
909 if (cal->pt() > ptStep)
915 for (
int istep = 0; istep < 100; ++istep) {
917 float ptStep = (istep * (3000. / 100.));
919 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
920 if (cal->pt() > ptStep)
929 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal) {
931 if (allJetInd == 1) {
933 p4tmp[0] = cal->p4();
935 if (allJetInd == 2) {
937 p4tmp[1] = cal->p4();
939 if ((allJetInd == 1) || (allJetInd == 2)) {
958 if (fabs(cal->eta()) < 1.3) {
960 if (cal->pt() > 10.) {
964 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
966 if (cal->pt() > 10.) {
970 if (fabs(cal->eta()) > 3.0) {
972 if (cal->pt() > 10.) {
990 LeadMass2 = (p4tmp[0] + p4tmp[1]).
mass();
1031 for (
int istep = 0; istep < 100; ++istep) {
1033 float ptStep = (istep * (5000. / 100.));
1035 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1036 if (cal->pt() > ptStep)
1042 for (
int istep = 0; istep < 100; ++istep) {
1044 float ptStep = (istep * (200. / 100.));
1046 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1047 if (cal->pt() > ptStep)
1053 for (
int istep = 0; istep < 100; ++istep) {
1055 float ptStep = (istep * (3000. / 100.));
1057 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1058 if (cal->pt() > ptStep)
1064 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal) {
1066 if (allJetInd == 1) {
1068 p4tmp[0] = cal->p4();
1070 if (allJetInd == 2) {
1072 p4tmp[1] = cal->p4();
1074 if ((allJetInd == 1) || (allJetInd == 2)) {
1093 if (fabs(cal->eta()) < 1.3) {
1095 if (cal->pt() > 10.) {
1099 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
1101 if (cal->pt() > 10.) {
1105 if (fabs(cal->eta()) > 3.0) {
1107 if (cal->pt() > 10.) {
1126 LeadMass3 = (p4tmp[0] + p4tmp[1]).
mass();
1144 for (
int istep = 0; istep < 100; ++istep) {
1146 float ptStep = (istep * (5000. / 100.));
1148 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1149 if (cal->pt() > ptStep)
1155 for (
int istep = 0; istep < 100; ++istep) {
1157 float ptStep = (istep * (200. / 100.));
1159 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1160 if (cal->pt() > ptStep)
1166 for (
int istep = 0; istep < 100; ++istep) {
1168 float ptStep = (istep * (3000. / 100.));
1170 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1171 if (cal->pt() > ptStep)
1177 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal) {
1179 if (allJetInd == 1) {
1181 p4tmp[0] = cal->p4();
1183 if (allJetInd == 2) {
1185 p4tmp[1] = cal->p4();
1187 if ((allJetInd == 1) || (allJetInd == 2)) {
1206 if (fabs(cal->eta()) < 1.3) {
1208 if (cal->pt() > 10.) {
1212 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
1214 if (cal->pt() > 10.) {
1218 if (fabs(cal->eta()) > 3.0) {
1220 if (cal->pt() > 10.) {
1239 LeadMass4 = (p4tmp[0] + p4tmp[1]).
mass();
1255 for (GenJetCollection::const_iterator
gen = genJets1->begin();
gen != genJets1->end(); ++
gen) {
1257 if (allJetInd == 1) {
1258 p4tmp[0] =
gen->p4();
1260 if (allJetInd == 2) {
1261 p4tmp[1] =
gen->p4();
1264 if ((allJetInd == 1) || (allJetInd == 2)) {
1285 LeadMassP1 = (p4tmp[0] + p4tmp[1]).
mass();
1316 for (GenJetCollection::const_iterator
gen = genJets2->begin();
gen != genJets2->end(); ++
gen) {
1318 if (allJetInd == 1) {
1319 p4tmp[0] =
gen->p4();
1321 if (allJetInd == 2) {
1322 p4tmp[1] =
gen->p4();
1324 if ((allJetInd == 1) || (allJetInd == 2)) {
1345 LeadMassP2 = (p4tmp[0] + p4tmp[1]).
mass();
1358 for (GenJetCollection::const_iterator
gen = genJets3->begin();
gen != genJets3->end(); ++
gen) {
1360 if (allJetInd == 1) {
1361 p4tmp[0] =
gen->p4();
1363 if (allJetInd == 2) {
1364 p4tmp[1] =
gen->p4();
1366 if ((allJetInd == 1) || (allJetInd == 2)) {
1387 LeadMassP3 = (p4tmp[0] + p4tmp[1]).
mass();
1419 p4gen[jetInd] =
gen->p4();
1420 dRmin[jetInd] = 1000.0;
1425 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1426 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1428 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1429 dRmin[jetInd] = delR;
1430 p4cal[jetInd] = cal->p4();
1437 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1440 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1443 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1447 if (usedInd != -1) {
1450 if (p4cal[jetInd].
pt() > minJetPt10)
1453 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1456 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1459 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1474 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1475 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1476 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1479 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1482 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1485 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1489 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1491 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1493 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1498 if (((dpt / p4gen[jetInd].
pt()) < -0.5) && (fabs(dpt) > 90.)) {
1499 cout <<
" deltaR min = " <<
dRmin[jetInd] <<
" Ind = " << jetInd <<
" / " << usedInd <<
" / " << used[nj]
1500 <<
" Del pt / frac = " << dpt <<
" / " << dpt / p4gen[jetInd].pt()
1501 <<
" cal/gen pt = " << p4cal[jetInd].pt() <<
" / " << p4gen[jetInd].pt()
1502 <<
" cal/gen eta = " << p4cal[jetInd].eta() <<
" / " << p4gen[jetInd].eta()
1503 <<
" cal/gen phi = " << p4cal[jetInd].phi() <<
" / " << p4gen[jetInd].phi() << endl;
1530 p4gen[jetInd] =
gen->p4();
1531 dRmin[jetInd] = 1000.0;
1536 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1537 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1539 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1540 dRmin[jetInd] = delR;
1541 p4cal[jetInd] = cal->p4();
1547 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1550 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1553 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1557 if (usedInd != -1) {
1560 if (p4cal[jetInd].
pt() > minJetPt10)
1563 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1566 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1569 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1584 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1585 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1586 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1589 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1592 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1595 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1599 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1601 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1603 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1632 p4gen[jetInd] =
gen->p4();
1633 dRmin[jetInd] = 1000.0;
1638 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1639 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1641 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1642 dRmin[jetInd] = delR;
1643 p4cal[jetInd] = cal->p4();
1649 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1652 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1655 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1659 if (usedInd != -1) {
1662 if (p4cal[jetInd].
pt() > minJetPt10)
1665 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1668 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1671 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1686 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1687 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1688 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1691 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1694 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1697 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1702 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1704 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1706 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1730 p4gen[jetInd] =
gen->p4();
1731 dRmin[jetInd] = 1000.0;
1736 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1737 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1739 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1740 dRmin[jetInd] = delR;
1741 p4cal[jetInd] = cal->p4();
1747 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1750 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1753 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1757 if (usedInd != -1) {
1760 if (p4cal[jetInd].
pt() > minJetPt10)
1763 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1766 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1769 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1785 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1786 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1787 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1790 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1793 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1796 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1801 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1803 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1805 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1830 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd <
maxJets;
1832 p4gen[jetInd] = cal1->p4();
1833 dRmin[jetInd] = 1000.0;
1836 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end(); ++cal2) {
1837 double delR =
deltaR(cal1->eta(), cal1->phi(), cal2->eta(), cal2->phi());
1838 if ((delR <
dRmin[jetInd]) && (used[nj] == 0)) {
1839 dRmin[jetInd] = delR;
1840 p4cal[jetInd] = cal2->p4();
1849 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1851 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1853 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1877 if (
p.numberOfDaughters() != 0) {
1906 for (
int id1 = 0, nd1 =
p.numberOfDaughters();
id1 < nd1; ++
id1) {
1909 if (
abs(
d1->pdgId()) != 32) {
1911 p4Zp[
nPart] = momentum =
d1->p4();
1923 ZpM = (p4Zp[0] + p4Zp[1]).
mass();
1951 for (
int i = 0;
i < 2; ++
i) {
1952 dRmin[jetInd] = 1000.0;
1955 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd <
maxJets;
1957 double delR =
deltaR(cal1->eta(), cal1->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
1960 if ((delR <
dRmin[jetInd]) && (used[nj] == 0)) {
1961 dRmin[jetInd] = delR;
1962 p4cal[jetInd] = cal1->p4();
1986 if (usedInd != -1) {
1992 ZpMM = (p4cal[0] + p4cal[1]).
mass();
1995 if ((ZpMG != 0) && (EtaOk40 == 2)) {
2015 if ((ZpMG != 0) && (EtaOk10 == 2)) {
2035 if ((ZpMG != 0) && (EtaOk13 == 2)) {
2062 for (
int i = 0;
i < 2; ++
i) {
2063 dRmin[jetInd] = 1000.0;
2066 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end() && jetInd <
maxJets;
2068 double delR =
deltaR(cal2->eta(), cal2->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
2070 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2071 dRmin[jetInd] = delR;
2072 p4cal[jetInd] = cal2->p4();
2091 if (usedInd != -1) {
2097 ZpMM = (p4cal[0] + p4cal[1]).
mass();
2108 for (
int i = 0;
i < 2; ++
i) {
2109 dRmin[jetInd] = 1000.0;
2112 for (CaloJetCollection::const_iterator cal3 = calo3Jets->begin(); cal3 != calo3Jets->end() && jetInd <
maxJets;
2114 double delR =
deltaR(cal3->eta(), cal3->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
2116 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2117 dRmin[jetInd] = delR;
2118 p4cal[jetInd] = cal3->p4();
2137 if (usedInd != -1) {
2143 ZpMM = (p4cal[0] + p4cal[1]).
mass();
2148 cout <<
"Z' (3): nPart = " <<
nPart << endl;
2168 cout <<
"TOP: id = " <<
id <<
" mass = " <<
p.mass() << endl;
2177 for (
size_t id1 = 0, nd1 =
p.numberOfDaughters();
id1 < nd1; ++
id1) {
2181 if (
abs(
d1->pdgId()) == 5) {
2183 p4par[nJet++] = momentum =
d1->p4();
2185 cout <<
"Daughter1: id = " <<
d1->pdgId() <<
" daughters = " <<
d1->numberOfDaughters()
2186 <<
" mother 1 = " << (
d1->mother())->
pdgId() <<
" Momentum " << momentum <<
" GeV/c" << endl;
2188 if ((
d1->mother())->
pdgId() == 6) {
2189 p4part[0] = momentum =
d1->p4();
2190 cout <<
">>> part0 = " << p4part[0] << endl;
2192 if ((
d1->mother())->
pdgId() == -6) {
2193 p4part[3] = momentum =
d1->p4();
2194 cout <<
">>> part3 = " << p4part[3] << endl;
2201 if (
abs(
d1->pdgId()) == 24) {
2202 for (
size_t id2 = 0, nd2 =
d1->numberOfDaughters();
id2 < nd2; ++
id2) {
2208 p4par[nJet++] = momentum = d2->
p4();
2210 if ((
d1->mother())->
pdgId() == 6) {
2211 p4part[
ii] = momentum = d2->
p4();
2212 cout <<
">>> part" <<
ii <<
" = " << p4part[
ii] << endl;
2215 if ((
d1->mother())->
pdgId() == -6) {
2216 p4part[
jj] = momentum = d2->
p4();
2217 cout <<
">>> part" <<
jj <<
" = " << p4part[
jj] << endl;
2222 <<
" mother 2 = " << (d2->
mother())->
pdgId() <<
" Momentum " << momentum <<
" GeV/c" << endl;
2235 double tmass = (p4part[0] + p4part[1] + p4part[2]).
mass();
2236 double tbarmass = (p4part[3] + p4part[4] + p4part[5]).
mass();
2241 cout <<
">>> T Mass = " << tmass <<
" / " << tbarmass << endl;
2243 double mindR = 1000.;
2244 for (
size_t i = 0;
i < 6; ++
i) {
2245 for (
size_t j = 0;
j < 6; ++
j) {
2262 for (
int i = 0;
i < 6; ++
i) {
2263 dRmin[jetInd] = 1000.0;
2266 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd <
maxJets;
2268 double delR =
deltaR(cal1->eta(), cal1->phi(), p4par[
i].eta(), p4par[
i].phi());
2270 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2271 dRmin[jetInd] = delR;
2272 p4cal[jetInd] = cal1->p4();
2292 if (usedInd != -1) {
2296 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2298 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2300 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2307 topMass1.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2308 topMass1.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2323 for (
int i = 0;
i < 6; ++
i) {
2324 dRmin[jetInd] = 1000.0;
2327 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end() && jetInd <
maxJets;
2329 double delR =
deltaR(cal2->eta(), cal2->phi(), p4par[
i].eta(), p4par[
i].phi());
2331 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2332 dRmin[jetInd] = delR;
2333 p4cal[jetInd] = cal2->p4();
2349 if (usedInd != -1) {
2353 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2355 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2357 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2365 topMass2.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2366 topMass2.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2381 for (
int i = 0;
i < 6; ++
i) {
2382 dRmin[jetInd] = 1000.0;
2385 for (CaloJetCollection::const_iterator cal3 = calo3Jets->begin(); cal3 != calo3Jets->end() && jetInd <
maxJets;
2387 double delR =
deltaR(cal3->eta(), cal3->phi(), p4par[
i].eta(), p4par[
i].phi());
2389 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2390 dRmin[jetInd] = delR;
2391 p4cal[jetInd] = cal3->p4();
2406 if (usedInd != -1) {
2410 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2412 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2414 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2422 topMass3.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2423 topMass3.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2433 int nTow1, nTow2, nTow3, nTow4;
2444 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2447 float hadEne = ijet->hadEnergyInHB() + ijet->hadEnergyInHO() + ijet->hadEnergyInHE() + ijet->hadEnergyInHF();
2448 float emEne = ijet->emEnergyInEB() + ijet->emEnergyInEE() + ijet->emEnergyInHF();
2449 float had = ijet->energyFractionHadronic();
2451 float j_et = ijet->et();
2453 if (fabs(ijet->eta()) < 1.3) {
2462 if (ijet->pt() > minJetPt10)
2465 if ((fabs(ijet->eta()) > 1.3) && (fabs(ijet->eta()) < 3.)) {
2474 if (ijet->pt() > minJetPt10)
2477 if (fabs(ijet->eta()) > 3.) {
2486 if (ijet->pt() > minJetPt10)
2500 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2504 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2506 float et = jetCaloRefs[
i]->et();
2526 if ((jjet == 1) && (fabs(ijet->eta()) < 1.3)) {
2530 float t_et = jetCaloRefs[
i]->et();
2531 double delR =
deltaR(ijet->eta(), ijet->phi(), jetCaloRefs[
i]->eta(), jetCaloRefs[
i]->phi());
2540 if ((jjet == 2) && (fabs(ijet->eta()) < 1.3)) {
2549 double SumEtNotJets(0);
2550 double SumEtJets(0);
2552 double sumTowerAllEx(0);
2553 double sumTowerAllEy(0);
2555 std::vector<CaloTowerPtr> UsedTowerList;
2556 std::vector<CaloTower> TowerUsedInJets;
2557 std::vector<CaloTower> TowerNotUsedInJets;
2565 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2567 double sum_et = 0.0;
2568 double sum_ex = 0.0;
2569 double sum_ey = 0.0;
2587 double phix =
tower->phi();
2596 sum_ex +=
et *
cos(phix);
2597 sum_ey +=
et *
sin(phix);
2611 MET1.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2612 MET12.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2613 MET13.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2634 UsedTowerList.clear();
2635 TowerUsedInJets.clear();
2636 TowerNotUsedInJets.clear();
2640 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2643 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2646 UsedTowerList.push_back(jetCaloRefs[
i]);
2652 int NTowersUsed = UsedTowerList.size();
2662 for (
int i = 0;
i < NTowersUsed;
i++) {
2663 if (
tower->id() == UsedTowerList[
i]->id()) {
2670 TowerUsedInJets.push_back(
t);
2672 TowerNotUsedInJets.push_back(
t);
2677 int nUsed = TowerUsedInJets.size();
2678 int nNotUsed = TowerNotUsedInJets.size();
2683 for (
int i = 0;
i < nUsed;
i++) {
2684 SumEtJets += TowerUsedInJets[
i].et();
2688 for (
int i = 0;
i < nNotUsed;
i++) {
2689 if (TowerNotUsedInJets[
i].
et() > 0.5)
2690 SumEtNotJets += TowerNotUsedInJets[
i].et();
2699 UsedTowerList.clear();
2700 TowerUsedInJets.clear();
2701 TowerNotUsedInJets.clear();
2705 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2708 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2711 UsedTowerList.push_back(jetCaloRefs[
i]);
2720 NTowersUsed = UsedTowerList.size();
2730 for (
int i = 0;
i < NTowersUsed;
i++) {
2731 if (
tower->id() == UsedTowerList[
i]->id()) {
2738 TowerUsedInJets.push_back(
t);
2740 TowerNotUsedInJets.push_back(
t);
2745 nUsed = TowerUsedInJets.size();
2746 nNotUsed = TowerNotUsedInJets.size();
2751 for (
int i = 0;
i < nUsed;
i++) {
2752 SumEtJets += TowerUsedInJets[
i].et();
2756 for (
int i = 0;
i < nNotUsed;
i++) {
2757 if (TowerNotUsedInJets[
i].
et() > 0.5)
2758 SumEtNotJets += TowerNotUsedInJets[
i].et();
2767 UsedTowerList.clear();
2768 TowerUsedInJets.clear();
2769 TowerNotUsedInJets.clear();
2773 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2776 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2779 UsedTowerList.push_back(jetCaloRefs[
i]);
2788 NTowersUsed = UsedTowerList.size();
2798 for (
int i = 0;
i < NTowersUsed;
i++) {
2799 if (
tower->id() == UsedTowerList[
i]->id()) {
2806 TowerUsedInJets.push_back(
t);
2808 TowerNotUsedInJets.push_back(
t);
2813 nUsed = TowerUsedInJets.size();
2814 nNotUsed = TowerNotUsedInJets.size();
2819 for (
int i = 0;
i < nUsed;
i++) {
2820 SumEtJets += TowerUsedInJets[
i].et();
2824 for (
int i = 0;
i < nNotUsed;
i++) {
2825 if (TowerNotUsedInJets[
i].
et() > 0.5)
2826 SumEtNotJets += TowerNotUsedInJets[
i].et();
std::string GenJetAlgorithm3
TH1F dijetMassCor_700_101
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
std::string CaloJetAlgorithm3
std::string GenJetAlgorithm1
std::string CaloJetAlgorithm4
Sin< T >::type sin(const T &t)
std::vector< CaloTower >::const_iterator const_iterator
virtual double vx() const =0
x coordinate of vertex position
TH1F dijetMassCor_5000_101
TH1F dijetMassCor_2000_131
TH1F dijetMassCor_5000_131
virtual double vy() const =0
y coordinate of vertex position
myFastSimVal(const edm::ParameterSet &)
TH1F dijetMassCor_2000_101
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual size_type numberOfDaughters() const =0
number of daughters
TH1F dijetMassCor_2000_401
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
TH1F dijetMassCor_700_131
void analyze(const edm::Event &, const edm::EventSetup &) override
def gen(fragment, howMuch)
Event to runs.
virtual int pdgId() const =0
PDG identifier.
TH1F dijetMassCor_5000_401
std::string GenJetAlgorithm4
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
TH1F dijetMassCor_700_401
XYZVectorD XYZVector
spatial vector with cartesian internal representation
virtual double vz() const =0
z coordinate of vertex position
std::string CaloJetAlgorithm1
std::string GenJetAlgorithm2
static constexpr float d1
std::string CaloJetAlgorithm2
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector