35 : CaloJetAlgorithm1(
cfg.getParameter<
string>(
"CaloJetAlgorithm1")),
36 CaloJetAlgorithm2(
cfg.getParameter<
string>(
"CaloJetAlgorithm2")),
37 CaloJetAlgorithm3(
cfg.getParameter<
string>(
"CaloJetAlgorithm3")),
38 CaloJetAlgorithm4(
cfg.getParameter<
string>(
"CaloJetAlgorithm4")),
39 GenJetAlgorithm1(
cfg.getParameter<
string>(
"GenJetAlgorithm1")),
40 GenJetAlgorithm2(
cfg.getParameter<
string>(
"GenJetAlgorithm2")),
41 GenJetAlgorithm3(
cfg.getParameter<
string>(
"GenJetAlgorithm3")),
42 GenJetAlgorithm4(
cfg.getParameter<
string>(
"GenJetAlgorithm4")),
43 JetCorrectionService(
cfg.getParameter<
string>(
"JetCorrectionService")) {}
49 m_file =
new TFile(
"histo.root",
"RECREATE");
51 tMassGen = TH1F(
"tMassGen",
"T Mass Gen", 100, 0, 200);
52 tbarMassGen = TH1F(
"tbarMassGen",
"Tbar Mass Gen", 100, 0, 200);
54 tMass = TH1F(
"tMass",
"T Mass", 100, 0, 200);
55 tbarMass = TH1F(
"tbarMass",
"Tbar Mass", 100, 0, 200);
57 topMassParton = TH1F(
"topMassParton",
"Top Mass Parton", 100, 0, 200);
58 topMass1 = TH1F(
"topMass1",
"Top Mass 1", 100, 0, 200);
59 topMass2 = TH1F(
"topMass2",
"Top Mass 2", 100, 0, 200);
60 topMass3 = TH1F(
"topMass3",
"Top Mass 3", 100, 0, 200);
62 ZpMass = TH1F(
"ZpMass",
"Generated Zp Mass", 160, 0, 8000);
63 ZpMassGen = TH1F(
"ZpMassGen",
"Gen Zp Mass", 160, 0, 8000);
64 ZpMassMatched1 = TH1F(
"ZpMassMatched1",
"Calor Zp Mass 1", 160, 0, 8000);
65 ZpMassMatched2 = TH1F(
"ZpMassMatched2",
"Calor Zp Mass 2", 160, 0, 8000);
66 ZpMassMatched3 = TH1F(
"ZpMassMatched3",
"Calor Zp Mass 3", 160, 0, 8000);
68 ZpMassGen10 = TH1F(
"ZpMassGen10",
"Gen Zp Mass", 160, 0, 8000);
69 ZpMassGen13 = TH1F(
"ZpMassGen13",
"Gen Zp Mass", 160, 0, 8000);
70 ZpMassGen40 = TH1F(
"ZpMassGen40",
"Gen Zp Mass", 160, 0, 8000);
72 ZpMass_700_10 = TH1F(
"ZpMass_700_10",
"Parton Zp Mass", 100, 0, 1000);
73 ZpMass_700_13 = TH1F(
"ZpMass_700_13",
"Parton Zp Mass", 100, 0, 1000);
74 ZpMass_700_40 = TH1F(
"ZpMass_700_40",
"Parton Zp Mass", 100, 0, 1000);
84 ZpMass_2000_10 = TH1F(
"ZpMass_2000_10",
"Parton Zp Mass", 100, 1500, 2500);
85 ZpMass_2000_13 = TH1F(
"ZpMass_2000_13",
"Parton Zp Mass", 100, 1500, 2500);
86 ZpMass_2000_40 = TH1F(
"ZpMass_2000_40",
"Parton Zp Mass", 100, 1500, 2500);
92 ZpMass_5000_10 = TH1F(
"ZpMass_5000_10",
"Parton Zp Mass", 150, 4000, 5500);
93 ZpMass_5000_13 = TH1F(
"ZpMass_5000_13",
"Parton Zp Mass", 150, 4000, 5500);
94 ZpMass_5000_40 = TH1F(
"ZpMass_5000_40",
"Parton Zp Mass", 150, 4000, 5500);
96 ZpMassRes101 = TH1F(
"ZpMassRes101",
"Zp Mass Resolution 1", 100, -2, 2);
97 ZpMassRes102 = TH1F(
"ZpMassRes102",
"Zp Mass Resolution 2", 100, -2, 2);
98 ZpMassRes103 = TH1F(
"ZpMassRes103",
"Zp Mass Resolution 3", 100, -2, 2);
100 ZpMassRes131 = TH1F(
"ZpMassRes131",
"Zp Mass Resolution 1", 100, -2, 2);
101 ZpMassRes132 = TH1F(
"ZpMassRes132",
"Zp Mass Resolution 2", 100, -2, 2);
102 ZpMassRes133 = TH1F(
"ZpMassRes133",
"Zp Mass Resolution 3", 100, -2, 2);
104 ZpMassRes401 = TH1F(
"ZpMassRes401",
"Zp Mass Resolution 1", 100, -2, 2);
105 ZpMassRes402 = TH1F(
"ZpMassRes402",
"Zp Mass Resolution 2", 100, -2, 2);
106 ZpMassRes403 = TH1F(
"ZpMassRes403",
"Zp Mass Resolution 3", 100, -2, 2);
108 ZpMassResL101 = TH1F(
"ZpMassResL101",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
109 ZpMassResL102 = TH1F(
"ZpMassResL102",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
110 ZpMassResL103 = TH1F(
"ZpMassResL103",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
112 ZpMassResRL101 = TH1F(
"ZpMassResRL101",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
113 ZpMassResRL102 = TH1F(
"ZpMassResRL102",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
114 ZpMassResRL103 = TH1F(
"ZpMassResRL103",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
116 ZpMassResRLoP101 = TH1F(
"ZpMassResRLoP101",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
117 ZpMassResRLoP102 = TH1F(
"ZpMassResRLoP102",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
118 ZpMassResRLoP103 = TH1F(
"ZpMassResRLoP103",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
120 ZpMassResPRL101 = TH1F(
"ZpMassResPRL101",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
121 ZpMassResPRL102 = TH1F(
"ZpMassResPRL102",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
122 ZpMassResPRL103 = TH1F(
"ZpMassResPRL103",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
124 ZpMassResL131 = TH1F(
"ZpMassResL131",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
125 ZpMassResL132 = TH1F(
"ZpMassResL132",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
126 ZpMassResL133 = TH1F(
"ZpMassResL133",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
128 ZpMassResRL131 = TH1F(
"ZpMassResRL131",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
129 ZpMassResRL132 = TH1F(
"ZpMassResRL132",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
130 ZpMassResRL133 = TH1F(
"ZpMassResRL133",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
132 ZpMassResRLoP131 = TH1F(
"ZpMassResRLoP131",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
133 ZpMassResRLoP132 = TH1F(
"ZpMassResRLoP132",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
134 ZpMassResRLoP133 = TH1F(
"ZpMassResRLoP133",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
136 ZpMassResPRL131 = TH1F(
"ZpMassResPRL131",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
137 ZpMassResPRL132 = TH1F(
"ZpMassResPRL132",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
138 ZpMassResPRL133 = TH1F(
"ZpMassResPRL133",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
140 ZpMassResL401 = TH1F(
"ZpMassResL401",
"Zp Mass Resolution Leading Jets 1", 100, 0, 2);
141 ZpMassResL402 = TH1F(
"ZpMassResL402",
"Zp Mass Resolution Leading Jets 2", 100, 0, 2);
142 ZpMassResL403 = TH1F(
"ZpMassResL403",
"Zp Mass Resolution Leading Jets 3", 100, 0, 2);
144 ZpMassResRL401 = TH1F(
"ZpMassResRL401",
"Zp Mass Res. Ratio Leading Jets 1", 100, 0, 2);
145 ZpMassResRL402 = TH1F(
"ZpMassResRL402",
"Zp Mass Res. Ratio Leading Jets 2", 100, 0, 2);
146 ZpMassResRL403 = TH1F(
"ZpMassResRL403",
"Zp Mass Res. Ratio Leading Jets 3", 100, 0, 2);
148 ZpMassResRLoP401 = TH1F(
"ZpMassResRLoP401",
"Zp Mass RLoP Ratio Leading Jets 1", 100, 0, 2);
149 ZpMassResRLoP402 = TH1F(
"ZpMassResRLoP402",
"Zp Mass RLoP Ratio Leading Jets 2", 100, 0, 2);
150 ZpMassResRLoP403 = TH1F(
"ZpMassResRLoP403",
"Zp Mass RLoP Ratio Leading Jets 3", 100, 0, 2);
152 ZpMassResPRL401 = TH1F(
"ZpMassResPRL401",
"Zp Mass Res. P Ratio Leading Jets 1", 100, 0, 2);
153 ZpMassResPRL402 = TH1F(
"ZpMassResPRL402",
"Zp Mass Res. P Ratio Leading Jets 2", 100, 0, 2);
154 ZpMassResPRL403 = TH1F(
"ZpMassResPRL403",
"Zp Mass Res. P Ratio Leading Jets 3", 100, 0, 2);
156 dijetMass1 = TH1F(
"dijetMass1",
"DiJet Mass 1", 100, 0, 4000);
157 dijetMass12 = TH1F(
"dijetMass12",
"DiJet Mass 1 2", 100, 0, 6000);
158 dijetMass13 = TH1F(
"dijetMass13",
"DiJet Mass 1 3", 100, 0, 12000);
159 dijetMass2 = TH1F(
"dijetMass2",
"DiJet Mass 2", 100, 0, 4000);
160 dijetMass22 = TH1F(
"dijetMass22",
"DiJet Mass 2 2", 100, 0, 6000);
161 dijetMass23 = TH1F(
"dijetMass23",
"DiJet Mass 2 3", 100, 0, 12000);
162 dijetMass3 = TH1F(
"dijetMass3",
"DiJet Mass 3", 100, 0, 4000);
163 dijetMass32 = TH1F(
"dijetMass32",
"DiJet Mass 3 2", 100, 0, 6000);
164 dijetMass33 = TH1F(
"dijetMass33",
"DiJet Mass 3 3", 100, 0, 12000);
165 dijetMass4 = TH1F(
"dijetMass4",
"DiJet Mass 4", 100, 0, 4000);
166 dijetMass42 = TH1F(
"dijetMass42",
"DiJet Mass 4 2", 100, 0, 6000);
167 dijetMass43 = TH1F(
"dijetMass43",
"DiJet Mass 4 3", 100, 0, 12000);
169 dijetMass101 = TH1F(
"dijetMass101",
"DiJet Mass 1", 100, 0, 6000);
170 dijetMass131 = TH1F(
"dijetMass131",
"DiJet Mass 1", 100, 0, 6000);
171 dijetMass401 = TH1F(
"dijetMass401",
"DiJet Mass 1", 100, 0, 6000);
173 dijetMass102 = TH1F(
"dijetMass102",
"DiJet Mass 2", 100, 0, 6000);
174 dijetMass132 = TH1F(
"dijetMass132",
"DiJet Mass 2", 100, 0, 6000);
175 dijetMass402 = TH1F(
"dijetMass402",
"DiJet Mass 2", 100, 0, 6000);
177 dijetMass103 = TH1F(
"dijetMass103",
"DiJet Mass 3", 100, 0, 10000);
178 dijetMass133 = TH1F(
"dijetMass133",
"DiJet Mass 3", 100, 0, 10000);
179 dijetMass403 = TH1F(
"dijetMass403",
"DiJet Mass 3", 100, 0, 10000);
193 dijetMassCor1 = TH1F(
"dijetMassCor1",
"DiJet Mass 1", 160, 0, 8000);
194 dijetMassCor101 = TH1F(
"dijetMassCor101",
"DiJet Mass Cor 101", 160, 0, 8000);
195 dijetMassCor131 = TH1F(
"dijetMassCor131",
"DiJet Mass Cor 131", 160, 0, 8000);
196 dijetMassCor401 = TH1F(
"dijetMassCor401",
"DiJet Mass Cor 401", 160, 0, 8000);
213 dijetMassP1 = TH1F(
"dijetMassP1",
"DiJet Mass P 1", 160, 0, 8000);
214 dijetMassP2 = TH1F(
"dijetMassP2",
"DiJet Mass P 2", 160, 0, 8000);
215 dijetMassP3 = TH1F(
"dijetMassP3",
"DiJet Mass P 3", 160, 0, 8000);
217 dijetMassP101 = TH1F(
"dijetMassP101",
"DiJet Mass P 1", 160, 0, 8000);
218 dijetMassP131 = TH1F(
"dijetMassP131",
"DiJet Mass P 1", 160, 0, 8000);
219 dijetMassP401 = TH1F(
"dijetMassP401",
"DiJet Mass P 1", 160, 0, 8000);
233 totEneLeadJetEta1_1 = TH1F(
"totEneLeadJetEta1_1",
"Total Energy Lead Jet Eta1 1", 100, 0, 1500);
234 totEneLeadJetEta2_1 = TH1F(
"totEneLeadJetEta2_1",
"Total Energy Lead Jet Eta2 1", 100, 0, 1500);
235 totEneLeadJetEta3_1 = TH1F(
"totEneLeadJetEta3_1",
"Total Energy Lead Jet Eta3 1", 100, 0, 1500);
236 hadEneLeadJetEta1_1 = TH1F(
"hadEneLeadJetEta1_1",
"Hadronic Energy Lead Jet Eta1 1", 100, 0, 1500);
237 hadEneLeadJetEta2_1 = TH1F(
"hadEneLeadJetEta2_1",
"Hadronic Energy Lead Jet Eta2 1", 100, 0, 1500);
238 hadEneLeadJetEta3_1 = TH1F(
"hadEneLeadJetEta3_1",
"Hadronic Energy Lead Jet Eta3 1", 100, 0, 1500);
239 emEneLeadJetEta1_1 = TH1F(
"emEneLeadJetEta1_1",
"EM Energy Lead Jet Eta1 1", 100, 0, 1500);
240 emEneLeadJetEta2_1 = TH1F(
"emEneLeadJetEta2_1",
"EM Energy Lead Jet Eta2 1", 100, 0, 1500);
241 emEneLeadJetEta3_1 = TH1F(
"emEneLeadJetEta3_1",
"EM Energy Lead Jet Eta3 1", 100, 0, 1500);
243 totEneLeadJetEta1_2 = TH1F(
"totEneLeadJetEta1_2",
"Total Energy Lead Jet Eta1 2", 100, 0, 6000);
244 totEneLeadJetEta2_2 = TH1F(
"totEneLeadJetEta2_2",
"Total Energy Lead Jet Eta2 2", 100, 0, 6000);
245 totEneLeadJetEta3_2 = TH1F(
"totEneLeadJetEta3_2",
"Total Energy Lead Jet Eta3 2", 100, 0, 6000);
246 hadEneLeadJetEta1_2 = TH1F(
"hadEneLeadJetEta1_2",
"Hadronic Energy Lead Jet Eta1 2", 100, 0, 6000);
247 hadEneLeadJetEta2_2 = TH1F(
"hadEneLeadJetEta2_2",
"Hadronic Energy Lead Jet Eta2 2", 100, 0, 6000);
248 hadEneLeadJetEta3_2 = TH1F(
"hadEneLeadJetEta3_2",
"Hadronic Energy Lead Jet Eta3 2", 100, 0, 6000);
249 emEneLeadJetEta1_2 = TH1F(
"emEneLeadJetEta1_2",
"EM Energy Lead Jet Eta1 2", 100, 0, 5000);
250 emEneLeadJetEta2_2 = TH1F(
"emEneLeadJetEta2_2",
"EM Energy Lead Jet Eta2 2", 100, 0, 5000);
251 emEneLeadJetEta3_2 = TH1F(
"emEneLeadJetEta3_2",
"EM Energy Lead Jet Eta3 2", 100, 0, 5000);
253 hadEneLeadJet1 = TH1F(
"hadEneLeadJet1",
"Hadronic Energy Lead Jet 1", 100, 0, 3000);
254 hadEneLeadJet12 = TH1F(
"hadEneLeadJet12",
"Hadronic Energy Lead Jet 1 2", 100, 0, 4000);
255 hadEneLeadJet13 = TH1F(
"hadEneLeadJet13",
"Hadronic Energy Lead Jet 1 3", 100, 0, 6000);
256 hadEneLeadJet2 = TH1F(
"hadEneLeadJet2",
"Hadronic Energy Lead Jet 2", 100, 0, 3000);
257 hadEneLeadJet22 = TH1F(
"hadEneLeadJet22",
"Hadronic Energy Lead Jet 2 2", 100, 0, 4000);
258 hadEneLeadJet23 = TH1F(
"hadEneLeadJet23",
"Hadronic Energy Lead Jet 2 3", 100, 0, 6000);
259 hadEneLeadJet3 = TH1F(
"hadEneLeadJet3",
"Hadronic Energy Lead Jet 3", 100, 0, 3000);
260 hadEneLeadJet32 = TH1F(
"hadEneLeadJet32",
"Hadronic Energy Lead Jet 3 2", 100, 0, 4000);
261 hadEneLeadJet33 = TH1F(
"hadEneLeadJet33",
"Hadronic Energy Lead Jet 3 3", 100, 0, 6000);
263 emEneLeadJet1 = TH1F(
"emEneLeadJet1",
"EM Energy Lead Jet 1", 100, 0, 1500);
264 emEneLeadJet12 = TH1F(
"emEneLeadJet12",
"EM Energy Lead Jet 1 2", 100, 0, 3000);
265 emEneLeadJet13 = TH1F(
"emEneLeadJet13",
"EM Energy Lead Jet 1 3", 100, 0, 5000);
266 emEneLeadJet2 = TH1F(
"emEneLeadJet2",
"EM Energy Lead Jet 2", 100, 0, 1500);
267 emEneLeadJet22 = TH1F(
"emEneLeadJet22",
"EM Energy Lead Jet 2 2", 100, 0, 3000);
268 emEneLeadJet23 = TH1F(
"emEneLeadJet23",
"EM Energy Lead Jet 2 3", 100, 0, 5000);
269 emEneLeadJet3 = TH1F(
"emEneLeadJet3",
"EM Energy Lead Jet 3", 100, 0, 1500);
270 emEneLeadJet32 = TH1F(
"emEneLeadJet32",
"EM Energy Lead Jet 3 2", 100, 0, 3000);
271 emEneLeadJet33 = TH1F(
"emEneLeadJet33",
"EM Energy Lead Jet 3 3", 100, 0, 5000);
273 hadFracEta11 = TH1F(
"hadFracEta11",
"Hadronic Fraction Eta1 Jet 1", 100, 0, 1);
274 hadFracEta21 = TH1F(
"hadFracEta21",
"Hadronic Fraction Eta2 Jet 1", 100, 0, 1);
275 hadFracEta31 = TH1F(
"hadFracEta31",
"Hadronic Fraction Eta3 Jet 1", 100, 0, 1);
277 hadFracEta12 = TH1F(
"hadFracEta12",
"Hadronic Fraction Eta1 Jet 2", 100, 0, 1);
278 hadFracEta22 = TH1F(
"hadFracEta22",
"Hadronic Fraction Eta2 Jet 2", 100, 0, 1);
279 hadFracEta32 = TH1F(
"hadFracEta32",
"Hadronic Fraction Eta3 Jet 2", 100, 0, 1);
281 hadFracEta13 = TH1F(
"hadFracEta13",
"Hadronic Fraction Eta1 Jet 3", 100, 0, 1);
282 hadFracEta23 = TH1F(
"hadFracEta23",
"Hadronic Fraction Eta2 Jet 3", 100, 0, 1);
283 hadFracEta33 = TH1F(
"hadFracEta33",
"Hadronic Fraction Eta3 Jet 3", 100, 0, 1);
285 hadFracLeadJet1 = TH1F(
"hadFracLeadJet1",
"Hadronic Fraction Lead Jet 1", 100, 0, 1);
286 hadFracLeadJet2 = TH1F(
"hadFracLeadJet2",
"Hadronic Fraction Lead Jet 2", 100, 0, 1);
287 hadFracLeadJet3 = TH1F(
"hadFracLeadJet3",
"Hadronic Fraction Lead Jet 3", 100, 0, 1);
289 SumEt1 = TH1F(
"SumEt1",
"SumEt 1", 100, 0, 1000);
290 SumEt12 = TH1F(
"SumEt12",
"SumEt 1 2", 100, 0, 4000);
291 SumEt13 = TH1F(
"SumEt13",
"SumEt 1 3", 100, 0, 15000);
293 MET1 = TH1F(
"MET1",
"MET 1", 100, 0, 200);
294 MET12 = TH1F(
"MET12",
"MET 1 2", 100, 0, 1000);
295 MET13 = TH1F(
"MET13",
"MET 1 3", 100, 0, 3000);
297 nTowersLeadJet1 = TH1F(
"nTowersLeadJet1",
"Number of Towers Lead Jet 1", 100, 0, 100);
298 nTowersLeadJet2 = TH1F(
"nTowersLeadJet2",
"Number of Towers Lead Jet 2", 100, 0, 100);
299 nTowersLeadJet3 = TH1F(
"nTowersLeadJet3",
"Number of Towers Lead Jet 3", 100, 0, 100);
301 nTowersSecondJet1 = TH1F(
"nTowersSecondJet1",
"Number of Towers Second Jet 1", 100, 0, 100);
302 nTowersSecondJet2 = TH1F(
"nTowersSecondJet2",
"Number of Towers Second Jet 2", 100, 0, 100);
303 nTowersSecondJet3 = TH1F(
"nTowersSecondJet3",
"Number of Towers Second Jet 3", 100, 0, 100);
305 hf_PtResponse1 = TProfile(
"PtResponse1",
"Pt Response 1", 100, -5, 5, 0, 10);
306 hf_PtResponse2 = TProfile(
"PtResponse2",
"Pt Response 2", 100, -5, 5, 0, 10);
307 hf_PtResponse3 = TProfile(
"PtResponse3",
"Pt Response 3", 100, -5, 5, 0, 10);
308 hf_PtResponse4 = TProfile(
"PtResponse4",
"Pt Response 4", 100, -5, 5, 0, 10);
310 hf_TowerDelR1 = TProfile(
"hf_TowerDelR1",
"Tower Del R 1", 100, 0, 2, 0, 10);
311 hf_TowerDelR12 = TProfile(
"hf_TowerDelR12",
"Tower Del R 1", 80, 0, 0.8, 0, 10);
312 hf_TowerDelR2 = TProfile(
"hf_TowerDelR2",
"Tower Del R 2", 100, 0, 2, 0, 10);
313 hf_TowerDelR22 = TProfile(
"hf_TowerDelR22",
"Tower Del R 2", 80, 0, 0.8, 0, 10);
314 hf_TowerDelR3 = TProfile(
"hf_TowerDelR3",
"Tower Del R 3", 100, 0, 2, 0, 10);
315 hf_TowerDelR32 = TProfile(
"hf_TowerDelR32",
"Tower Del R 3", 80, 0, 0.8, 0, 10);
322 nTowers1 = TH1F(
"nTowers1",
"Number of Towers pt 0.5", 100, 0, 500);
323 nTowers2 = TH1F(
"nTowers2",
"Number of Towers pt 1.0", 100, 0, 500);
324 nTowers3 = TH1F(
"nTowers3",
"Number of Towers pt 1.5", 100, 0, 500);
325 nTowers4 = TH1F(
"nTowers4",
"Number of Towers pt 2.0", 100, 0, 500);
327 nTowersLeadJetPt1 = TH1F(
"nTowersLeadJetPt1",
"Number of Towers in Lead Jet pt 0.5", 100, 0, 200);
328 nTowersLeadJetPt2 = TH1F(
"nTowersLeadJetPt2",
"Number of Towers in Lead Jet pt 1.0", 100, 0, 200);
329 nTowersLeadJetPt3 = TH1F(
"nTowersLeadJetPt3",
"Number of Towers in Lead Jet pt 1.5", 100, 0, 200);
330 nTowersLeadJetPt4 = TH1F(
"nTowersLeadJetPt4",
"Number of Towers in Lead Jet pt 2.0", 100, 0, 200);
332 TowerEtLeadJet1 = TH1F(
"TowerEtLeadJet1",
"Towers Et Lead Jet 1", 100, 0, 2000);
333 TowerEtLeadJet12 = TH1F(
"TowerEtLeadJet12",
"Towers Et Lead Jet 1 2", 100, 0, 6000);
334 TowerEtLeadJet13 = TH1F(
"TowerEtLeadJet13",
"Towers Et Lead Jet 1 3", 100, 0, 300);
335 TowerEtLeadJet2 = TH1F(
"TowerEtLeadJet2",
"Towers Et Lead Jet 2", 100, 0, 2000);
336 TowerEtLeadJet22 = TH1F(
"TowerEtLeadJet22",
"Towers Et Lead Jet 2 2", 100, 0, 6000);
337 TowerEtLeadJet23 = TH1F(
"TowerEtLeadJet23",
"Towers Et Lead Jet 2 3", 100, 0, 300);
338 TowerEtLeadJet3 = TH1F(
"TowerEtLeadJet3",
"Towers Et Lead Jet 3", 100, 0, 2000);
339 TowerEtLeadJet32 = TH1F(
"TowerEtLeadJet32",
"Towers Et Lead Jet 3 2", 100, 0, 6000);
340 TowerEtLeadJet33 = TH1F(
"TowerEtLeadJet33",
"Towers Et Lead Jet 3 3", 100, 0, 300);
342 hf_nJet1 = TProfile(
"hf_nJet1",
"Num Jets 1", 100, 0, 5000, 0, 50);
343 hf_nJet2 = TProfile(
"hf_nJet2",
"Num Jets 2", 100, 0, 5000, 0, 50);
344 hf_nJet3 = TProfile(
"hf_nJet3",
"Num Jets 3", 100, 0, 5000, 0, 50);
345 hf_nJet4 = TProfile(
"hf_nJet4",
"Num Jets 4", 100, 0, 5000, 0, 50);
347 hf_nJet1s = TProfile(
"hf_nJet1s",
"Num Jets 1", 100, 0, 200, 0, 50);
348 hf_nJet2s = TProfile(
"hf_nJet2s",
"Num Jets 2", 100, 0, 200, 0, 50);
349 hf_nJet3s = TProfile(
"hf_nJet3s",
"Num Jets 3", 100, 0, 200, 0, 50);
350 hf_nJet4s = TProfile(
"hf_nJet4s",
"Num Jets 4", 100, 0, 200, 0, 50);
352 hf_nJet11 = TProfile(
"hf_nJet11",
"Num Jets 1 1", 100, 0, 3000, 0, 50);
353 hf_nJet21 = TProfile(
"hf_nJet21",
"Num Jets 2 1", 100, 0, 3000, 0, 50);
354 hf_nJet31 = TProfile(
"hf_nJet31",
"Num Jets 3 1", 100, 0, 3000, 0, 50);
355 hf_nJet41 = TProfile(
"hf_nJet41",
"Num Jets 4 1", 100, 0, 3000, 0, 50);
357 dRPar1 = TH1F(
"dRPar1",
"Parton dR with matched CaloJet1", 100, 0, 0.5);
358 dPhiPar1 = TH1F(
"dPhiPar1",
"Parton dPhi with matched CaloJet1", 200, -0.5, 0.5);
359 dEtaPar1 = TH1F(
"dEtaPar1",
"Parton dEta with matched CaloJet1", 200, -0.5, 0.5);
360 dPtPar1 = TH1F(
"dPtPar1",
"Parton dPt with matched CaloJet1", 200, -50, 50);
362 dRPar2 = TH1F(
"dRPar2",
"Parton dR with matched CaloJet2", 100, 0, 0.5);
363 dPhiPar2 = TH1F(
"dPhiPar2",
"Parton dPhi with matched CaloJet2", 200, -0.5, 0.5);
364 dEtaPar2 = TH1F(
"dEtaPar2",
"Parton dEta with matched CaloJet2", 200, -0.5, 0.5);
365 dPtPar2 = TH1F(
"dPtPar2",
"Parton dPt with matched CaloJet2", 200, -50, 50);
367 dRPar3 = TH1F(
"dRPar3",
"Parton dR with matched CaloJet3", 100, 0, 0.5);
368 dPhiPar3 = TH1F(
"dPhiPar3",
"Parton dPhi with matched CaloJet3", 200, -0.5, 0.5);
369 dEtaPar3 = TH1F(
"dEtaPar3",
"Parton dEta with matched CaloJet3", 200, -0.5, 0.5);
370 dPtPar3 = TH1F(
"dPtPar3",
"Parton dPt with matched CaloJet3", 200, -50, 50);
372 dRPar4 = TH1F(
"dRPar4",
"Parton dR with matched CaloJet4", 100, 0, 0.5);
373 dPhiPar4 = TH1F(
"dPhiPar4",
"Parton dPhi with matched CaloJet4", 200, -0.5, 0.5);
374 dEtaPar4 = TH1F(
"dEtaPar4",
"Parton dEta with matched CaloJet4", 200, -0.5, 0.5);
375 dPtPar4 = TH1F(
"dPtPar4",
"Parton dPt with matched CaloJet4", 200, -50, 50);
377 dRParton = TH1F(
"dRParton",
"dR Parton", 100, 0, 10.0);
378 dRPartonMin = TH1F(
"dRPartonMin",
"Min dR Parton", 100, 0, 2.0);
380 dR1 = TH1F(
"dR1",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
381 dPhi1 = TH1F(
"dPhi1",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
382 dEta1 = TH1F(
"dEta1",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
383 dPt1 = TH1F(
"dPt1",
"GenJets dPt with matched CaloJet", 200, -100, 100);
384 dPtFrac1 = TH1F(
"dPtFrac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
385 dPt20Frac1 = TH1F(
"dPt20Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
386 dPt40Frac1 = TH1F(
"dPt40Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
387 dPt80Frac1 = TH1F(
"dPt80Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
388 dPt100Frac1 = TH1F(
"dPt100Frac1",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
390 dR2 = TH1F(
"dR2",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
391 dPhi2 = TH1F(
"dPhi2",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
392 dEta2 = TH1F(
"dEta2",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
393 dPt2 = TH1F(
"dPt2",
"GenJets dPt with matched CaloJet", 200, -100, 100);
394 dPtFrac2 = TH1F(
"dPtFrac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
395 dPt20Frac2 = TH1F(
"dPt20Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
396 dPt40Frac2 = TH1F(
"dPt40Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
397 dPt80Frac2 = TH1F(
"dPt80Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
398 dPt100Frac2 = TH1F(
"dPt100Frac2",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
400 dR3 = TH1F(
"dR3",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
401 dPhi3 = TH1F(
"dPhi3",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
402 dEta3 = TH1F(
"dEta3",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
403 dPt3 = TH1F(
"dPt3",
"GenJets dPt with matched CaloJet", 200, -100, 100);
404 dPtFrac3 = TH1F(
"dPtFrac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
405 dPt20Frac3 = TH1F(
"dPt20Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
406 dPt40Frac3 = TH1F(
"dPt40Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
407 dPt80Frac3 = TH1F(
"dPt80Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
408 dPt100Frac3 = TH1F(
"dPt100Frac3",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
410 dR4 = TH1F(
"dR4",
"GenJets dR with matched CaloJet", 100, 0, 0.5);
411 dPhi4 = TH1F(
"dPhi4",
"GenJets dPhi with matched CaloJet", 200, -0.5, 0.5);
412 dEta4 = TH1F(
"dEta4",
"GenJets dEta with matched CaloJet", 200, -0.5, 0.5);
413 dPt4 = TH1F(
"dPt4",
"GenJets dPt with matched CaloJet", 200, -100, 100);
414 dPtFrac4 = TH1F(
"dPtFrac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
415 dPt20Frac4 = TH1F(
"dPt20Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
416 dPt40Frac4 = TH1F(
"dPt40Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
417 dPt80Frac4 = TH1F(
"dPt80Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
418 dPt100Frac4 = TH1F(
"dPt100Frac4",
"GenJets dPt frac with matched CaloJet", 100, -1, 1);
420 dR12 = TH1F(
"dR12",
"dR MidPoint - SISCone", 100, 0, 0.5);
421 dPhi12 = TH1F(
"dPhi12",
"dPhi MidPoint - SISCone", 200, -0.5, 0.5);
422 dEta12 = TH1F(
"dEta12",
"dEta MidPoint - SISCone", 200, -0.5, 0.5);
423 dPt12 = TH1F(
"dPt12",
"dPt MidPoint - SISCone", 200, -100, 100);
425 h_nCalJets1 = TH1F(
"nCalJets1",
"Number of CalJets1", 20, 0, 20);
426 h_nCalJets2 = TH1F(
"nCalJets2",
"Number of CalJets2", 20, 0, 20);
427 h_nCalJets3 = TH1F(
"nCalJets3",
"Number of CalJets3", 20, 0, 20);
428 h_nCalJets4 = TH1F(
"nCalJets4",
"Number of CalJets4", 20, 0, 20);
430 h_lowPtCal11 = TH1F(
"lowPtCal11",
"Low p_{T} of CalJet1 Eta1", 100, 0, 100);
431 h_lowPtCal21 = TH1F(
"lowPtCal21",
"Low p_{T} of CalJet2 Eta1", 100, 0, 100);
432 h_lowPtCal31 = TH1F(
"lowPtCal31",
"Low p_{T} of CalJet3 Eta1", 100, 0, 100);
433 h_lowPtCal41 = TH1F(
"lowPtCal41",
"Low p_{T} of CalJet4 Eta1", 100, 0, 100);
435 h_lowPtCal12 = TH1F(
"lowPtCal12",
"Low p_{T} of CalJet1 Eta2", 100, 0, 100);
436 h_lowPtCal22 = TH1F(
"lowPtCal22",
"Low p_{T} of CalJet2 Eta2", 100, 0, 100);
437 h_lowPtCal32 = TH1F(
"lowPtCal32",
"Low p_{T} of CalJet3 Eta2", 100, 0, 100);
438 h_lowPtCal42 = TH1F(
"lowPtCal42",
"Low p_{T} of CalJet4 Eta2", 100, 0, 100);
440 h_lowPtCal13 = TH1F(
"lowPtCal13",
"Low p_{T} of CalJet1 Eta3", 100, 0, 100);
441 h_lowPtCal23 = TH1F(
"lowPtCal23",
"Low p_{T} of CalJet2 Eta3", 100, 0, 100);
442 h_lowPtCal33 = TH1F(
"lowPtCal33",
"Low p_{T} of CalJet3 Eta3", 100, 0, 100);
443 h_lowPtCal43 = TH1F(
"lowPtCal43",
"Low p_{T} of CalJet4 Eta3", 100, 0, 100);
445 h_lowPtCal1c11 = TH1F(
"lowPtCal1c11",
"Low p_{T} of CalJet1 c1 Eta1", 100, 0, 100);
446 h_lowPtCal2c11 = TH1F(
"lowPtCal2c11",
"Low p_{T} of CalJet2 c1 Eta1", 100, 0, 100);
447 h_lowPtCal3c11 = TH1F(
"lowPtCal3c11",
"Low p_{T} of CalJet3 c1 Eta1", 100, 0, 100);
448 h_lowPtCal4c11 = TH1F(
"lowPtCal4c11",
"Low p_{T} of CalJet4 c1 Eta1", 100, 0, 100);
450 h_lowPtCal1c12 = TH1F(
"lowPtCal1c12",
"Low p_{T} of CalJet1 c1 Eta2", 100, 0, 100);
451 h_lowPtCal2c12 = TH1F(
"lowPtCal2c12",
"Low p_{T} of CalJet2 c1 Eta2", 100, 0, 100);
452 h_lowPtCal3c12 = TH1F(
"lowPtCal3c12",
"Low p_{T} of CalJet3 c1 Eta2", 100, 0, 100);
453 h_lowPtCal4c12 = TH1F(
"lowPtCal4c12",
"Low p_{T} of CalJet4 c1 Eta2", 100, 0, 100);
455 h_lowPtCal1c13 = TH1F(
"lowPtCal1c13",
"Low p_{T} of CalJet1 c1 Eta3", 100, 0, 100);
456 h_lowPtCal2c13 = TH1F(
"lowPtCal2c13",
"Low p_{T} of CalJet2 c1 Eta3", 100, 0, 100);
457 h_lowPtCal3c13 = TH1F(
"lowPtCal3c13",
"Low p_{T} of CalJet3 c1 Eta3", 100, 0, 100);
458 h_lowPtCal4c13 = TH1F(
"lowPtCal4c13",
"Low p_{T} of CalJet4 c1 Eta3", 100, 0, 100);
460 matchedAllPt11 = TH1F(
"matchedAllPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250);
461 matchedAllPt12 = TH1F(
"matchedAllPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250);
462 matchedAllPt13 = TH1F(
"matchedAllPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250);
463 matchedPt11 = TH1F(
"matchedPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250);
464 matchedPt12 = TH1F(
"matchedPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250);
465 matchedPt13 = TH1F(
"matchedPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250);
467 matchedAllPt21 = TH1F(
"matchedAllPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250);
468 matchedAllPt22 = TH1F(
"matchedAllPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250);
469 matchedAllPt23 = TH1F(
"matchedAllPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250);
470 matchedPt21 = TH1F(
"matchedPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250);
471 matchedPt22 = TH1F(
"matchedPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250);
472 matchedPt23 = TH1F(
"matchedPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250);
474 matchedAllPt31 = TH1F(
"matchedAllPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250);
475 matchedAllPt32 = TH1F(
"matchedAllPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250);
476 matchedAllPt33 = TH1F(
"matchedAllPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250);
477 matchedPt31 = TH1F(
"matchedPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250);
478 matchedPt32 = TH1F(
"matchedPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250);
479 matchedPt33 = TH1F(
"matchedPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250);
481 matchedAllPt41 = TH1F(
"matchedAllPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250);
482 matchedAllPt42 = TH1F(
"matchedAllPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250);
483 matchedAllPt43 = TH1F(
"matchedAllPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250);
484 matchedPt41 = TH1F(
"matchedPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250);
485 matchedPt42 = TH1F(
"matchedPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250);
486 matchedPt43 = TH1F(
"matchedPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250);
488 h_ptCal1 = TH1F(
"ptCal1",
"p_{T} of CalJet1", 50, 0, 1000);
489 h_ptCal12 = TH1F(
"ptCal12",
"p_{T} of CalJet1 2", 50, 0, 6000);
490 h_ptCal13 = TH1F(
"ptCal13",
"p_{T} of CalJet1 2", 50, 0, 300);
492 h_ptCal2 = TH1F(
"ptCal2",
"p_{T} of CalJet2", 50, 0, 1000);
493 h_ptCal22 = TH1F(
"ptCal22",
"p_{T} of CalJet2 2", 50, 0, 6000);
494 h_ptCal23 = TH1F(
"ptCal23",
"p_{T} of CalJet2 2", 50, 0, 300);
496 h_ptCal3 = TH1F(
"ptCal3",
"p_{T} of CalJet3", 50, 0, 1000);
497 h_ptCal32 = TH1F(
"ptCal32",
"p_{T} of CalJet3 2", 50, 0, 6000);
498 h_ptCal33 = TH1F(
"ptCal33",
"p_{T} of CalJet3 2", 50, 0, 300);
500 h_ptCal4 = TH1F(
"ptCal4",
"p_{T} of CalJet4", 50, 0, 1000);
501 h_ptCal42 = TH1F(
"ptCal42",
"p_{T} of CalJet4 2", 50, 0, 6000);
502 h_ptCal43 = TH1F(
"ptCal43",
"p_{T} of CalJet4 2", 50, 0, 300);
504 h_etaCal1 = TH1F(
"etaCal1",
"#eta of CalJet1", 100, -4, 4);
505 h_etaCal2 = TH1F(
"etaCal2",
"#eta of CalJet2", 100, -4, 4);
506 h_etaCal3 = TH1F(
"etaCal3",
"#eta of CalJet3", 100, -4, 4);
507 h_etaCal4 = TH1F(
"etaCal4",
"#eta of CalJet4", 100, -4, 4);
514 h_ptCalL1 = TH1F(
"ptCalL1",
"p_{T} of CalJetL1", 50, 0, 300);
515 h_ptCalL12 = TH1F(
"ptCalL12",
"p_{T} of CalJetL1 2", 50, 0, 1200);
516 h_ptCalL13 = TH1F(
"ptCalL13",
"p_{T} of CalJetL1 3", 50, 0, 6000);
517 h_ptCalL2 = TH1F(
"ptCalL2",
"p_{T} of CalJetL2", 50, 0, 300);
518 h_ptCalL22 = TH1F(
"ptCalL22",
"p_{T} of CalJetL2 2", 50, 0, 1200);
519 h_ptCalL23 = TH1F(
"ptCalL23",
"p_{T} of CalJetL2 3", 50, 0, 6000);
520 h_ptCalL3 = TH1F(
"ptCalL3",
"p_{T} of CalJetL3", 50, 0, 300);
521 h_ptCalL32 = TH1F(
"ptCalL32",
"p_{T} of CalJetL3 2", 50, 0, 1200);
522 h_ptCalL33 = TH1F(
"ptCalL33",
"p_{T} of CalJetL3 3", 50, 0, 6000);
523 h_ptCalL4 = TH1F(
"ptCalL4",
"p_{T} of CalJetL4", 50, 0, 300);
524 h_ptCalL42 = TH1F(
"ptCalL42",
"p_{T} of CalJetL4 2", 50, 0, 1200);
525 h_ptCalL43 = TH1F(
"ptCalL43",
"p_{T} of CalJetL4 3", 50, 0, 6000);
527 h_etaCalL1 = TH1F(
"etaCalL1",
"#eta of CalJetL1", 100, -4, 4);
528 h_etaCalL2 = TH1F(
"etaCalL2",
"#eta of CalJetL2", 100, -4, 4);
529 h_etaCalL3 = TH1F(
"etaCalL3",
"#eta of CalJetL3", 100, -4, 4);
530 h_etaCalL4 = TH1F(
"etaCalL4",
"#eta of CalJetL4", 100, -4, 4);
536 h_nGenJets1 = TH1F(
"nGenJets1",
"Number of GenJets1", 20, 0, 20);
537 h_nGenJets2 = TH1F(
"nGenJets2",
"Number of GenJets2", 20, 0, 20);
538 h_nGenJets3 = TH1F(
"nGenJets3",
"Number of GenJets3", 20, 0, 20);
539 h_nGenJets4 = TH1F(
"nGenJets4",
"Number of GenJets4", 20, 0, 20);
541 h_ptGen1 = TH1F(
"ptGen1",
"p_{T} of GenJet1", 50, 0, 1000);
542 h_ptGen12 = TH1F(
"ptGen12",
"p_{T} of GenJet1 2", 50, 0, 6000);
543 h_ptGen13 = TH1F(
"ptGen13",
"p_{T} of GenJet1 3", 50, 0, 300);
545 h_ptGen2 = TH1F(
"ptGen2",
"p_{T} of GenJet2", 50, 0, 1000);
546 h_ptGen22 = TH1F(
"ptGen22",
"p_{T} of GenJet2 2", 50, 0, 6000);
547 h_ptGen23 = TH1F(
"ptGen23",
"p_{T} of GenJet2 3", 50, 0, 300);
549 h_ptGen3 = TH1F(
"ptGen3",
"p_{T} of GenJet3", 50, 0, 1000);
550 h_ptGen32 = TH1F(
"ptGen32",
"p_{T} of GenJet3 2", 50, 0, 6000);
551 h_ptGen33 = TH1F(
"ptGen33",
"p_{T} of GenJet3 3", 50, 0, 300);
553 h_ptGen4 = TH1F(
"ptGen4",
"p_{T} of GenJet4", 50, 0, 1000);
554 h_ptGen42 = TH1F(
"ptGen42",
"p_{T} of GenJet4 2", 50, 0, 6000);
555 h_ptGen43 = TH1F(
"ptGen43",
"p_{T} of GenJet4 3", 50, 0, 300);
557 h_etaGen1 = TH1F(
"etaGen1",
"#eta of GenJet1", 100, -4, 4);
558 h_etaGen2 = TH1F(
"etaGen2",
"#eta of GenJet2", 100, -4, 4);
559 h_etaGen3 = TH1F(
"etaGen3",
"#eta of GenJet3", 100, -4, 4);
564 h_ptGenL1 = TH1F(
"ptGenL1",
"p_{T} of GenJetL1", 50, 0, 300);
565 h_ptGenL12 = TH1F(
"ptGenL12",
"p_{T} of GenJetL1 2", 50, 0, 1200);
566 h_ptGenL13 = TH1F(
"ptGenL13",
"p_{T} of GenJetL1 3", 50, 0, 6000);
567 h_ptGenL2 = TH1F(
"ptGenL2",
"p_{T} of GenJetL2", 50, 0, 300);
568 h_ptGenL22 = TH1F(
"ptGenL22",
"p_{T} of GenJetL2 2", 50, 0, 1200);
569 h_ptGenL23 = TH1F(
"ptGenL23",
"p_{T} of GenJetL2 3", 50, 0, 6000);
570 h_ptGenL3 = TH1F(
"ptGenL3",
"p_{T} of GenJetL3", 50, 0, 300);
571 h_ptGenL32 = TH1F(
"ptGenL32",
"p_{T} of GenJetL32", 50, 0, 1200);
572 h_ptGenL33 = TH1F(
"ptGenL33",
"p_{T} of GenJetL33", 50, 0, 6000);
574 h_etaGenL1 = TH1F(
"etaGenL1",
"#eta of GenJetL1", 100, -4, 4);
575 h_etaGenL2 = TH1F(
"etaGenL2",
"#eta of GenJetL2", 100, -4, 4);
576 h_etaGenL3 = TH1F(
"etaGenL3",
"#eta of GenJetL3", 100, -4, 4);
581 h_jetEt1 = TH1F(
"jetEt1",
"Total Jet Et", 100, 0, 3000);
582 h_jetEt2 = TH1F(
"jetEt2",
"Total Jet Et", 100, 0, 3000);
583 h_jetEt3 = TH1F(
"jetEt3",
"Total Jet Et", 100, 0, 3000);
585 h_jet1Pt1 = TH1F(
"jet1Pt1",
"Jet Pt", 100, 0, 3000);
586 h_jet2Pt1 = TH1F(
"jet2Pt1",
"Jet Pt", 100, 0, 3000);
587 h_jet3Pt1 = TH1F(
"jet3Pt1",
"Jet Pt", 100, 0, 3000);
588 h_jet4Pt1 = TH1F(
"jet4Pt1",
"Jet Pt", 100, 0, 3000);
589 h_jet5Pt1 = TH1F(
"jet5Pt1",
"Jet Pt", 100, 0, 3000);
590 h_jet6Pt1 = TH1F(
"jet6Pt1",
"Jet Pt", 100, 0, 3000);
591 h_jet7Pt1 = TH1F(
"jet7Pt1",
"Jet Pt", 100, 0, 3000);
593 h_jet1Pt2 = TH1F(
"jet1Pt2",
"Jet Pt", 100, 0, 3000);
594 h_jet2Pt2 = TH1F(
"jet2Pt2",
"Jet Pt", 100, 0, 3000);
595 h_jet3Pt2 = TH1F(
"jet3Pt2",
"Jet Pt", 100, 0, 3000);
596 h_jet4Pt2 = TH1F(
"jet4Pt2",
"Jet Pt", 100, 0, 3000);
597 h_jet5Pt2 = TH1F(
"jet5Pt2",
"Jet Pt", 100, 0, 3000);
598 h_jet6Pt2 = TH1F(
"jet6Pt2",
"Jet Pt", 100, 0, 3000);
599 h_jet7Pt2 = TH1F(
"jet7Pt2",
"Jet Pt", 100, 0, 3000);
601 h_jet1Pt3 = TH1F(
"jet1Pt3",
"Jet Pt", 100, 0, 3000);
602 h_jet2Pt3 = TH1F(
"jet2Pt3",
"Jet Pt", 100, 0, 3000);
603 h_jet3Pt3 = TH1F(
"jet3Pt3",
"Jet Pt", 100, 0, 3000);
604 h_jet4Pt3 = TH1F(
"jet4Pt3",
"Jet Pt", 100, 0, 3000);
605 h_jet5Pt3 = TH1F(
"jet5Pt3",
"Jet Pt", 100, 0, 3000);
606 h_jet6Pt3 = TH1F(
"jet6Pt3",
"Jet Pt", 100, 0, 3000);
607 h_jet7Pt3 = TH1F(
"jet7Pt3",
"Jet Pt", 100, 0, 3000);
609 h_jet1Pt4 = TH1F(
"jet1Pt4",
"Jet Pt", 100, 0, 3000);
610 h_jet2Pt4 = TH1F(
"jet2Pt4",
"Jet Pt", 100, 0, 3000);
611 h_jet3Pt4 = TH1F(
"jet3Pt4",
"Jet Pt", 100, 0, 3000);
612 h_jet4Pt4 = TH1F(
"jet4Pt4",
"Jet Pt", 100, 0, 3000);
613 h_jet5Pt4 = TH1F(
"jet5Pt4",
"Jet Pt", 100, 0, 3000);
614 h_jet6Pt4 = TH1F(
"jet6Pt4",
"Jet Pt", 100, 0, 3000);
615 h_jet7Pt4 = TH1F(
"jet7Pt4",
"Jet Pt", 100, 0, 3000);
617 h_totMissEt1 = TH1F(
"totMissEt1",
"Total Unclustered Et", 100, 0, 500);
618 h_totMissEt2 = TH1F(
"totMissEt2",
"Total Unclustered Et", 100, 0, 500);
619 h_totMissEt3 = TH1F(
"totMissEt3",
"Total Unclustered Et", 100, 0, 500);
621 h_missEt1 = TH1F(
"missEt1",
"Unclustered Et", 100, 0, 50);
622 h_missEt2 = TH1F(
"missEt2",
"Unclustered Et", 100, 0, 50);
623 h_missEt3 = TH1F(
"missEt3",
"Unclustered Et", 100, 0, 50);
625 h_missEt1s = TH1F(
"missEt1s",
"Unclustered Et", 100, 0, 2);
626 h_missEt2s = TH1F(
"missEt2s",
"Unclustered Et", 100, 0, 2);
627 h_missEt3s = TH1F(
"missEt3s",
"Unclustered Et", 100, 0, 2);
629 ParMatch1 = TH1F(
"ParMatch1",
"Number of Matched Jets 1", 10, 0, 10);
630 ParMatch2 = TH1F(
"ParMatch2",
"Number of Matched Jets 2", 10, 0, 10);
631 ParMatch3 = TH1F(
"ParMatch3",
"Number of Matched Jets 3", 10, 0, 10);
635 int EtaOk10, EtaOk13, EtaOk40;
637 double ZpM, ZpMG, ZpMM;
638 double LeadMass1, LeadMass2, LeadMass3, LeadMass4;
639 double LeadMassP1, LeadMassP2, LeadMassP3;
642 float minJetPt10 = 10.;
643 int jetInd, allJetInd;
646 double matchedDelR = 0.3;
664 for (
int istep = 0; istep < 100; ++istep) {
666 float ptStep = (istep * (5000. / 100.));
667 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
668 if (cal->pt() > ptStep)
676 for (
int istep = 0; istep < 100; ++istep) {
678 float ptStep = (istep * (200. / 100.));
679 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
680 if (cal->pt() > ptStep)
688 for (
int istep = 0; istep < 100; ++istep) {
690 float ptStep = (istep * (3000. / 100.));
691 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
692 if (cal->pt() > ptStep)
715 for (CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++cal) {
718 double corPt =
scale * cal->pt();
721 if (corPt > highestPt) {
723 p4cortmp[1] = p4cortmp[0];
725 p4cortmp[0] =
scale * cal->p4();
726 }
else if (corPt > nextPt) {
728 p4cortmp[1] =
scale * cal->p4();
741 if (allJetInd == 1) {
743 p4tmp[0] = cal->p4();
744 if (fabs(cal->eta()) < 1.0)
746 if (fabs(cal->eta()) < 1.3)
748 if (fabs(cal->eta()) < 4.0)
751 if (allJetInd == 2) {
753 p4tmp[1] = cal->p4();
754 if (fabs(cal->eta()) < 1.0)
756 if (fabs(cal->eta()) < 1.3)
758 if (fabs(cal->eta()) < 4.0)
761 if ((allJetInd == 1) || (allJetInd == 2)) {
781 if (fabs(cal->eta()) < 1.3) {
783 if (cal->pt() > 10.) {
787 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
789 if (cal->pt() > 10.) {
793 if (fabs(cal->eta()) > 3.0) {
795 if (cal->pt() > 10.) {
815 LeadMass1 = (p4tmp[0] + p4tmp[1]).
mass();
844 LeadMass1 = (p4cortmp[0] + p4cortmp[1]).
mass();
897 for (
int istep = 0; istep < 100; ++istep) {
899 float ptStep = (istep * (5000. / 100.));
901 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
902 if (cal->pt() > ptStep)
908 for (
int istep = 0; istep < 100; ++istep) {
910 float ptStep = (istep * (200. / 100.));
912 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
913 if (cal->pt() > ptStep)
919 for (
int istep = 0; istep < 100; ++istep) {
921 float ptStep = (istep * (3000. / 100.));
923 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal)
924 if (cal->pt() > ptStep)
933 for (CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal) {
935 if (allJetInd == 1) {
937 p4tmp[0] = cal->p4();
939 if (allJetInd == 2) {
941 p4tmp[1] = cal->p4();
943 if ((allJetInd == 1) || (allJetInd == 2)) {
962 if (fabs(cal->eta()) < 1.3) {
964 if (cal->pt() > 10.) {
968 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
970 if (cal->pt() > 10.) {
974 if (fabs(cal->eta()) > 3.0) {
976 if (cal->pt() > 10.) {
994 LeadMass2 = (p4tmp[0] + p4tmp[1]).
mass();
1035 for (
int istep = 0; istep < 100; ++istep) {
1037 float ptStep = (istep * (5000. / 100.));
1039 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1040 if (cal->pt() > ptStep)
1046 for (
int istep = 0; istep < 100; ++istep) {
1048 float ptStep = (istep * (200. / 100.));
1050 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1051 if (cal->pt() > ptStep)
1057 for (
int istep = 0; istep < 100; ++istep) {
1059 float ptStep = (istep * (3000. / 100.));
1061 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal)
1062 if (cal->pt() > ptStep)
1068 for (CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++cal) {
1070 if (allJetInd == 1) {
1072 p4tmp[0] = cal->p4();
1074 if (allJetInd == 2) {
1076 p4tmp[1] = cal->p4();
1078 if ((allJetInd == 1) || (allJetInd == 2)) {
1097 if (fabs(cal->eta()) < 1.3) {
1099 if (cal->pt() > 10.) {
1103 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
1105 if (cal->pt() > 10.) {
1109 if (fabs(cal->eta()) > 3.0) {
1111 if (cal->pt() > 10.) {
1130 LeadMass3 = (p4tmp[0] + p4tmp[1]).
mass();
1148 for (
int istep = 0; istep < 100; ++istep) {
1150 float ptStep = (istep * (5000. / 100.));
1152 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1153 if (cal->pt() > ptStep)
1159 for (
int istep = 0; istep < 100; ++istep) {
1161 float ptStep = (istep * (200. / 100.));
1163 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1164 if (cal->pt() > ptStep)
1170 for (
int istep = 0; istep < 100; ++istep) {
1172 float ptStep = (istep * (3000. / 100.));
1174 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal)
1175 if (cal->pt() > ptStep)
1181 for (CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++cal) {
1183 if (allJetInd == 1) {
1185 p4tmp[0] = cal->p4();
1187 if (allJetInd == 2) {
1189 p4tmp[1] = cal->p4();
1191 if ((allJetInd == 1) || (allJetInd == 2)) {
1210 if (fabs(cal->eta()) < 1.3) {
1212 if (cal->pt() > 10.) {
1216 if ((fabs(cal->eta()) > 1.3) && (fabs(cal->eta()) < 3.)) {
1218 if (cal->pt() > 10.) {
1222 if (fabs(cal->eta()) > 3.0) {
1224 if (cal->pt() > 10.) {
1243 LeadMass4 = (p4tmp[0] + p4tmp[1]).
mass();
1259 for (GenJetCollection::const_iterator
gen = genJets1->begin();
gen != genJets1->end(); ++
gen) {
1261 if (allJetInd == 1) {
1262 p4tmp[0] =
gen->p4();
1264 if (allJetInd == 2) {
1265 p4tmp[1] =
gen->p4();
1268 if ((allJetInd == 1) || (allJetInd == 2)) {
1289 LeadMassP1 = (p4tmp[0] + p4tmp[1]).
mass();
1320 for (GenJetCollection::const_iterator
gen = genJets2->begin();
gen != genJets2->end(); ++
gen) {
1322 if (allJetInd == 1) {
1323 p4tmp[0] =
gen->p4();
1325 if (allJetInd == 2) {
1326 p4tmp[1] =
gen->p4();
1328 if ((allJetInd == 1) || (allJetInd == 2)) {
1349 LeadMassP2 = (p4tmp[0] + p4tmp[1]).
mass();
1362 for (GenJetCollection::const_iterator
gen = genJets3->begin();
gen != genJets3->end(); ++
gen) {
1364 if (allJetInd == 1) {
1365 p4tmp[0] =
gen->p4();
1367 if (allJetInd == 2) {
1368 p4tmp[1] =
gen->p4();
1370 if ((allJetInd == 1) || (allJetInd == 2)) {
1391 LeadMassP3 = (p4tmp[0] + p4tmp[1]).
mass();
1417 for (
int i = 0;
i < maxJets; ++
i)
1422 for (GenJetCollection::const_iterator
gen =
genJets->begin();
gen !=
genJets->end() && jetInd < maxJets; ++
gen) {
1423 p4gen[jetInd] =
gen->p4();
1424 dRmin[jetInd] = 1000.0;
1429 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1430 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1432 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1433 dRmin[jetInd] = delR;
1434 p4cal[jetInd] = cal->p4();
1441 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1444 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1447 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1451 if (usedInd != -1) {
1454 if (p4cal[jetInd].
pt() > minJetPt10)
1457 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1460 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1463 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1478 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1479 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1480 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1483 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1486 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1489 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1493 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1495 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1497 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1502 if (((dpt / p4gen[jetInd].
pt()) < -0.5) && (fabs(dpt) > 90.)) {
1503 cout <<
" deltaR min = " <<
dRmin[jetInd] <<
" Ind = " << jetInd <<
" / " << usedInd <<
" / " << used[nj]
1504 <<
" Del pt / frac = " << dpt <<
" / " << dpt / p4gen[jetInd].pt()
1505 <<
" cal/gen pt = " << p4cal[jetInd].pt() <<
" / " << p4gen[jetInd].pt()
1506 <<
" cal/gen eta = " << p4cal[jetInd].eta() <<
" / " << p4gen[jetInd].eta()
1507 <<
" cal/gen phi = " << p4cal[jetInd].phi() <<
" / " << p4gen[jetInd].phi() << endl;
1531 for (
int i = 0;
i < maxJets; ++
i)
1533 for (GenJetCollection::const_iterator
gen =
genJets->begin();
gen !=
genJets->end() && jetInd < maxJets; ++
gen) {
1534 p4gen[jetInd] =
gen->p4();
1535 dRmin[jetInd] = 1000.0;
1540 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1541 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1543 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1544 dRmin[jetInd] = delR;
1545 p4cal[jetInd] = cal->p4();
1551 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1554 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1557 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1561 if (usedInd != -1) {
1564 if (p4cal[jetInd].
pt() > minJetPt10)
1567 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1570 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1573 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1588 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1589 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1590 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1593 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1596 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1599 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1603 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1605 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1607 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1633 for (
int i = 0;
i < maxJets; ++
i)
1635 for (GenJetCollection::const_iterator
gen =
genJets->begin();
gen !=
genJets->end() && jetInd < maxJets; ++
gen) {
1636 p4gen[jetInd] =
gen->p4();
1637 dRmin[jetInd] = 1000.0;
1642 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1643 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1645 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1646 dRmin[jetInd] = delR;
1647 p4cal[jetInd] = cal->p4();
1653 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1656 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1659 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1663 if (usedInd != -1) {
1666 if (p4cal[jetInd].
pt() > minJetPt10)
1669 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1672 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1675 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1690 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1691 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1692 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1695 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1698 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1701 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1706 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1708 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1710 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1731 for (
int i = 0;
i < maxJets; ++
i)
1733 for (GenJetCollection::const_iterator
gen =
genJets->begin();
gen !=
genJets->end() && jetInd < maxJets; ++
gen) {
1734 p4gen[jetInd] =
gen->p4();
1735 dRmin[jetInd] = 1000.0;
1740 for (CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++cal) {
1741 double delR =
deltaR(cal->eta(), cal->phi(),
gen->eta(),
gen->phi());
1743 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
1744 dRmin[jetInd] = delR;
1745 p4cal[jetInd] = cal->p4();
1751 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1754 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1757 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1761 if (usedInd != -1) {
1764 if (p4cal[jetInd].
pt() > minJetPt10)
1767 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1770 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.)) {
1773 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1789 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1790 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1791 if ((p4gen[jetInd].
pt() > 20) && (p4gen[jetInd].
pt() < 40)) {
1794 if ((p4gen[jetInd].
pt() > 40) && (p4gen[jetInd].
pt() < 60)) {
1797 if ((p4gen[jetInd].
pt() > 80) && (p4gen[jetInd].
pt() < 100)) {
1800 if ((p4gen[jetInd].
pt() > 100) && (p4gen[jetInd].
pt() < 120)) {
1805 if ((p4gen[jetInd].
pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3)) {
1807 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1809 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1832 for (
int i = 0;
i < maxJets; ++
i)
1834 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd < maxJets;
1836 p4gen[jetInd] = cal1->p4();
1837 dRmin[jetInd] = 1000.0;
1840 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end(); ++cal2) {
1841 double delR =
deltaR(cal1->eta(), cal1->phi(), cal2->eta(), cal2->phi());
1842 if ((delR <
dRmin[jetInd]) && (used[nj] == 0)) {
1843 dRmin[jetInd] = delR;
1844 p4cal[jetInd] = cal2->p4();
1853 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1855 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1857 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1881 if (
p.numberOfDaughters() != 0) {
1910 for (
int id1 = 0, nd1 =
p.numberOfDaughters();
id1 < nd1; ++
id1) {
1913 if (
abs(
d1->pdgId()) != 32) {
1915 p4Zp[
nPart] = momentum =
d1->p4();
1927 ZpM = (p4Zp[0] + p4Zp[1]).
mass();
1953 for (
int i = 0;
i < maxJets; ++
i)
1955 for (
int i = 0;
i < 2; ++
i) {
1956 dRmin[jetInd] = 1000.0;
1959 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd < maxJets;
1961 double delR =
deltaR(cal1->eta(), cal1->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
1964 if ((delR <
dRmin[jetInd]) && (used[nj] == 0)) {
1965 dRmin[jetInd] = delR;
1966 p4cal[jetInd] = cal1->p4();
1990 if (usedInd != -1) {
1996 ZpMM = (p4cal[0] + p4cal[1]).
mass();
1999 if ((ZpMG != 0) && (EtaOk40 == 2)) {
2019 if ((ZpMG != 0) && (EtaOk10 == 2)) {
2039 if ((ZpMG != 0) && (EtaOk13 == 2)) {
2064 for (
int i = 0;
i < maxJets; ++
i)
2066 for (
int i = 0;
i < 2; ++
i) {
2067 dRmin[jetInd] = 1000.0;
2070 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end() && jetInd < maxJets;
2072 double delR =
deltaR(cal2->eta(), cal2->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
2074 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2075 dRmin[jetInd] = delR;
2076 p4cal[jetInd] = cal2->p4();
2095 if (usedInd != -1) {
2101 ZpMM = (p4cal[0] + p4cal[1]).
mass();
2110 for (
int i = 0;
i < maxJets; ++
i)
2112 for (
int i = 0;
i < 2; ++
i) {
2113 dRmin[jetInd] = 1000.0;
2116 for (CaloJetCollection::const_iterator cal3 = calo3Jets->begin(); cal3 != calo3Jets->end() && jetInd < maxJets;
2118 double delR =
deltaR(cal3->eta(), cal3->phi(), p4Zp[
i].eta(), p4Zp[
i].phi());
2120 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2121 dRmin[jetInd] = delR;
2122 p4cal[jetInd] = cal3->p4();
2141 if (usedInd != -1) {
2147 ZpMM = (p4cal[0] + p4cal[1]).
mass();
2152 cout <<
"Z' (3): nPart = " <<
nPart << endl;
2172 cout <<
"TOP: id = " <<
id <<
" mass = " <<
p.mass() << endl;
2181 for (
size_t id1 = 0, nd1 =
p.numberOfDaughters();
id1 < nd1; ++
id1) {
2185 if (
abs(
d1->pdgId()) == 5) {
2187 p4par[nJet++] = momentum =
d1->p4();
2189 cout <<
"Daughter1: id = " <<
d1->pdgId() <<
" daughters = " <<
d1->numberOfDaughters()
2190 <<
" mother 1 = " << (
d1->mother())->
pdgId() <<
" Momentum " << momentum <<
" GeV/c" << endl;
2192 if ((
d1->mother())->
pdgId() == 6) {
2193 p4part[0] = momentum =
d1->p4();
2194 cout <<
">>> part0 = " << p4part[0] << endl;
2196 if ((
d1->mother())->
pdgId() == -6) {
2197 p4part[3] = momentum =
d1->p4();
2198 cout <<
">>> part3 = " << p4part[3] << endl;
2205 if (
abs(
d1->pdgId()) == 24) {
2206 for (
size_t id2 = 0, nd2 =
d1->numberOfDaughters();
id2 < nd2; ++
id2) {
2212 p4par[nJet++] = momentum = d2->
p4();
2214 if ((
d1->mother())->
pdgId() == 6) {
2215 p4part[
ii] = momentum = d2->
p4();
2216 cout <<
">>> part" <<
ii <<
" = " << p4part[
ii] << endl;
2219 if ((
d1->mother())->
pdgId() == -6) {
2220 p4part[
jj] = momentum = d2->
p4();
2221 cout <<
">>> part" <<
jj <<
" = " << p4part[
jj] << endl;
2226 <<
" mother 2 = " << (d2->
mother())->
pdgId() <<
" Momentum " << momentum <<
" GeV/c" << endl;
2239 double tmass = (p4part[0] + p4part[1] + p4part[2]).
mass();
2240 double tbarmass = (p4part[3] + p4part[4] + p4part[5]).
mass();
2245 cout <<
">>> T Mass = " << tmass <<
" / " << tbarmass << endl;
2247 double mindR = 1000.;
2248 for (
size_t i = 0;
i < 6; ++
i) {
2249 for (
size_t j = 0;
j < 6; ++
j) {
2264 for (
int i = 0;
i < maxJets; ++
i)
2266 for (
int i = 0;
i < 6; ++
i) {
2267 dRmin[jetInd] = 1000.0;
2270 for (CaloJetCollection::const_iterator cal1 = calo1Jets->begin(); cal1 != calo1Jets->end() && jetInd < maxJets;
2272 double delR =
deltaR(cal1->eta(), cal1->phi(), p4par[
i].eta(), p4par[
i].phi());
2274 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2275 dRmin[jetInd] = delR;
2276 p4cal[jetInd] = cal1->p4();
2296 if (usedInd != -1) {
2300 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2302 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2304 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2311 topMass1.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2312 topMass1.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2325 for (
int i = 0;
i < maxJets; ++
i)
2327 for (
int i = 0;
i < 6; ++
i) {
2328 dRmin[jetInd] = 1000.0;
2331 for (CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end() && jetInd < maxJets;
2333 double delR =
deltaR(cal2->eta(), cal2->phi(), p4par[
i].eta(), p4par[
i].phi());
2335 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2336 dRmin[jetInd] = delR;
2337 p4cal[jetInd] = cal2->p4();
2353 if (usedInd != -1) {
2357 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2359 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2361 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2369 topMass2.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2370 topMass2.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2383 for (
int i = 0;
i < maxJets; ++
i)
2385 for (
int i = 0;
i < 6; ++
i) {
2386 dRmin[jetInd] = 1000.0;
2389 for (CaloJetCollection::const_iterator cal3 = calo3Jets->begin(); cal3 != calo3Jets->end() && jetInd < maxJets;
2391 double delR =
deltaR(cal3->eta(), cal3->phi(), p4par[
i].eta(), p4par[
i].phi());
2393 if ((delR <
dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0)) {
2394 dRmin[jetInd] = delR;
2395 p4cal[jetInd] = cal3->p4();
2410 if (usedInd != -1) {
2414 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2416 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2418 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2426 topMass3.Fill((p4cal[0] + p4cal[1] + p4cal[2]).
mass());
2427 topMass3.Fill((p4cal[3] + p4cal[4] + p4cal[5]).
mass());
2437 int nTow1, nTow2, nTow3, nTow4;
2448 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2451 float hadEne = ijet->hadEnergyInHB() + ijet->hadEnergyInHO() + ijet->hadEnergyInHE() + ijet->hadEnergyInHF();
2452 float emEne = ijet->emEnergyInEB() + ijet->emEnergyInEE() + ijet->emEnergyInHF();
2453 float had = ijet->energyFractionHadronic();
2455 float j_et = ijet->et();
2457 if (fabs(ijet->eta()) < 1.3) {
2466 if (ijet->pt() > minJetPt10)
2469 if ((fabs(ijet->eta()) > 1.3) && (fabs(ijet->eta()) < 3.)) {
2478 if (ijet->pt() > minJetPt10)
2481 if (fabs(ijet->eta()) > 3.) {
2490 if (ijet->pt() > minJetPt10)
2504 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2508 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2510 float et = jetCaloRefs[
i]->et();
2530 if ((jjet == 1) && (fabs(ijet->eta()) < 1.3)) {
2534 float t_et = jetCaloRefs[
i]->et();
2535 double delR =
deltaR(ijet->eta(), ijet->phi(), jetCaloRefs[
i]->eta(), jetCaloRefs[
i]->phi());
2544 if ((jjet == 2) && (fabs(ijet->eta()) < 1.3)) {
2555 double SumEtNotJets(0);
2556 double SumEtJets(0);
2557 double SumEtTowers(0);
2562 double sumTowerAllPx(0);
2563 double sumTowerAllPy(0);
2565 double sumTowerAllEx(0);
2566 double sumTowerAllEy(0);
2568 std::vector<CaloTowerPtr> UsedTowerList;
2569 std::vector<CaloTower> TowerUsedInJets;
2570 std::vector<CaloTower> TowerNotUsedInJets;
2578 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2580 double sum_et = 0.0;
2581 double sum_ex = 0.0;
2582 double sum_ey = 0.0;
2600 double phix =
tower->phi();
2609 sum_ex +=
et *
cos(phix);
2610 sum_ey +=
et *
sin(phix);
2614 SumEtTowers +=
tower->et();
2625 MET1.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2626 MET12.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2627 MET13.Fill(
sqrt(sum_ex * sum_ex + sum_ey * sum_ey));
2648 UsedTowerList.clear();
2649 TowerUsedInJets.clear();
2650 TowerNotUsedInJets.clear();
2654 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2655 Double_t
jetPt = ijet->pt();
2656 Double_t
jetPhi = ijet->phi();
2666 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2669 UsedTowerList.push_back(jetCaloRefs[
i]);
2676 int NTowersUsed = UsedTowerList.size();
2685 SumEtTowers +=
tower->et();
2692 for (
int i = 0;
i < NTowersUsed;
i++) {
2693 if (
tower->id() == UsedTowerList[
i]->id()) {
2700 TowerUsedInJets.push_back(
t);
2702 TowerNotUsedInJets.push_back(
t);
2707 int nUsed = TowerUsedInJets.size();
2708 int nNotUsed = TowerNotUsedInJets.size();
2713 for (
int i = 0;
i < nUsed;
i++) {
2714 SumEtJets += TowerUsedInJets[
i].et();
2718 for (
int i = 0;
i < nNotUsed;
i++) {
2719 if (TowerNotUsedInJets[
i].
et() > 0.5)
2720 SumEtNotJets += TowerNotUsedInJets[
i].et();
2729 UsedTowerList.clear();
2730 TowerUsedInJets.clear();
2731 TowerNotUsedInJets.clear();
2735 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2736 Double_t
jetPt = ijet->pt();
2737 Double_t
jetPhi = ijet->phi();
2747 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2750 UsedTowerList.push_back(jetCaloRefs[
i]);
2760 NTowersUsed = UsedTowerList.size();
2770 SumEtTowers +=
tower->et();
2777 for (
int i = 0;
i < NTowersUsed;
i++) {
2778 if (
tower->id() == UsedTowerList[
i]->id()) {
2785 TowerUsedInJets.push_back(
t);
2787 TowerNotUsedInJets.push_back(
t);
2792 nUsed = TowerUsedInJets.size();
2793 nNotUsed = TowerNotUsedInJets.size();
2798 for (
int i = 0;
i < nUsed;
i++) {
2799 SumEtJets += TowerUsedInJets[
i].et();
2803 for (
int i = 0;
i < nNotUsed;
i++) {
2804 if (TowerNotUsedInJets[
i].
et() > 0.5)
2805 SumEtNotJets += TowerNotUsedInJets[
i].et();
2814 UsedTowerList.clear();
2815 TowerUsedInJets.clear();
2816 TowerNotUsedInJets.clear();
2820 for (CaloJetCollection::const_iterator ijet =
jets->begin(); ijet !=
jets->end(); ijet++) {
2821 Double_t
jetPt = ijet->pt();
2822 Double_t
jetPhi = ijet->phi();
2832 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2835 UsedTowerList.push_back(jetCaloRefs[
i]);
2845 NTowersUsed = UsedTowerList.size();
2861 for (
int i = 0;
i < NTowersUsed;
i++) {
2862 if (
tower->id() == UsedTowerList[
i]->id()) {
2869 TowerUsedInJets.push_back(
t);
2871 TowerNotUsedInJets.push_back(
t);
2876 nUsed = TowerUsedInJets.size();
2877 nNotUsed = TowerNotUsedInJets.size();
2882 for (
int i = 0;
i < nUsed;
i++) {
2883 SumEtJets += TowerUsedInJets[
i].et();
2887 for (
int i = 0;
i < nNotUsed;
i++) {
2888 if (TowerNotUsedInJets[
i].
et() > 0.5)
2889 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
#define DEFINE_FWK_MODULE(type)
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)
TH1F dijetMassCor_700_131
void analyze(const edm::Event &, const edm::EventSetup &) override
def gen(fragment, howMuch)
Production test section ####.
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