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" ) )
54 m_file=
new TFile(
"histo.root",
"RECREATE");
56 tMassGen = TH1F(
"tMassGen",
"T Mass Gen",100,0,200);
57 tbarMassGen = TH1F(
"tbarMassGen",
"Tbar Mass Gen",100,0,200);
59 tMass = TH1F(
"tMass",
"T Mass",100,0,200);
60 tbarMass = TH1F(
"tbarMass",
"Tbar Mass",100,0,200);
62 topMassParton = TH1F(
"topMassParton",
"Top Mass Parton",100,0,200);
63 topMass1 = TH1F(
"topMass1",
"Top Mass 1",100,0,200);
64 topMass2 = TH1F(
"topMass2",
"Top Mass 2",100,0,200);
65 topMass3 = TH1F(
"topMass3",
"Top Mass 3",100,0,200);
67 ZpMass = TH1F(
"ZpMass",
"Generated Zp Mass",160,0,8000);
68 ZpMassGen = TH1F(
"ZpMassGen",
"Gen Zp Mass",160,0,8000);
69 ZpMassMatched1 = TH1F(
"ZpMassMatched1",
"Calor Zp Mass 1",160,0,8000);
70 ZpMassMatched2 = TH1F(
"ZpMassMatched2",
"Calor Zp Mass 2",160,0,8000);
71 ZpMassMatched3 = TH1F(
"ZpMassMatched3",
"Calor Zp Mass 3",160,0,8000);
73 ZpMassGen10 = TH1F(
"ZpMassGen10",
"Gen Zp Mass",160,0,8000);
74 ZpMassGen13 = TH1F(
"ZpMassGen13",
"Gen Zp Mass",160,0,8000);
75 ZpMassGen40 = TH1F(
"ZpMassGen40",
"Gen Zp Mass",160,0,8000);
77 ZpMass_700_10 = TH1F(
"ZpMass_700_10",
"Parton Zp Mass",100,0,1000);
78 ZpMass_700_13 = TH1F(
"ZpMass_700_13",
"Parton Zp Mass",100,0,1000);
79 ZpMass_700_40 = TH1F(
"ZpMass_700_40",
"Parton Zp Mass",100,0,1000);
89 ZpMass_2000_10 = TH1F(
"ZpMass_2000_10",
"Parton Zp Mass",100,1500,2500);
90 ZpMass_2000_13 = TH1F(
"ZpMass_2000_13",
"Parton Zp Mass",100,1500,2500);
91 ZpMass_2000_40 = TH1F(
"ZpMass_2000_40",
"Parton Zp Mass",100,1500,2500);
97 ZpMass_5000_10 = TH1F(
"ZpMass_5000_10",
"Parton Zp Mass",150,4000,5500);
98 ZpMass_5000_13 = TH1F(
"ZpMass_5000_13",
"Parton Zp Mass",150,4000,5500);
99 ZpMass_5000_40 = TH1F(
"ZpMass_5000_40",
"Parton Zp Mass",150,4000,5500);
101 ZpMassRes101 = TH1F(
"ZpMassRes101",
"Zp Mass Resolution 1",100,-2,2);
102 ZpMassRes102 = TH1F(
"ZpMassRes102",
"Zp Mass Resolution 2",100,-2,2);
103 ZpMassRes103 = TH1F(
"ZpMassRes103",
"Zp Mass Resolution 3",100,-2,2);
105 ZpMassRes131 = TH1F(
"ZpMassRes131",
"Zp Mass Resolution 1",100,-2,2);
106 ZpMassRes132 = TH1F(
"ZpMassRes132",
"Zp Mass Resolution 2",100,-2,2);
107 ZpMassRes133 = TH1F(
"ZpMassRes133",
"Zp Mass Resolution 3",100,-2,2);
109 ZpMassRes401 = TH1F(
"ZpMassRes401",
"Zp Mass Resolution 1",100,-2,2);
110 ZpMassRes402 = TH1F(
"ZpMassRes402",
"Zp Mass Resolution 2",100,-2,2);
111 ZpMassRes403 = TH1F(
"ZpMassRes403",
"Zp Mass Resolution 3",100,-2,2);
113 ZpMassResL101 = TH1F(
"ZpMassResL101",
"Zp Mass Resolution Leading Jets 1",100,0,2);
114 ZpMassResL102 = TH1F(
"ZpMassResL102",
"Zp Mass Resolution Leading Jets 2",100,0,2);
115 ZpMassResL103 = TH1F(
"ZpMassResL103",
"Zp Mass Resolution Leading Jets 3",100,0,2);
117 ZpMassResRL101 = TH1F(
"ZpMassResRL101",
"Zp Mass Res. Ratio Leading Jets 1",100,0,2);
118 ZpMassResRL102 = TH1F(
"ZpMassResRL102",
"Zp Mass Res. Ratio Leading Jets 2",100,0,2);
119 ZpMassResRL103 = TH1F(
"ZpMassResRL103",
"Zp Mass Res. Ratio Leading Jets 3",100,0,2);
121 ZpMassResRLoP101 = TH1F(
"ZpMassResRLoP101",
"Zp Mass RLoP Ratio Leading Jets 1",100,0,2);
122 ZpMassResRLoP102 = TH1F(
"ZpMassResRLoP102",
"Zp Mass RLoP Ratio Leading Jets 2",100,0,2);
123 ZpMassResRLoP103 = TH1F(
"ZpMassResRLoP103",
"Zp Mass RLoP Ratio Leading Jets 3",100,0,2);
125 ZpMassResPRL101 = TH1F(
"ZpMassResPRL101",
"Zp Mass Res. P Ratio Leading Jets 1",100,0,2);
126 ZpMassResPRL102 = TH1F(
"ZpMassResPRL102",
"Zp Mass Res. P Ratio Leading Jets 2",100,0,2);
127 ZpMassResPRL103 = TH1F(
"ZpMassResPRL103",
"Zp Mass Res. P Ratio Leading Jets 3",100,0,2);
130 ZpMassResL131 = TH1F(
"ZpMassResL131",
"Zp Mass Resolution Leading Jets 1",100,0,2);
131 ZpMassResL132 = TH1F(
"ZpMassResL132",
"Zp Mass Resolution Leading Jets 2",100,0,2);
132 ZpMassResL133 = TH1F(
"ZpMassResL133",
"Zp Mass Resolution Leading Jets 3",100,0,2);
134 ZpMassResRL131 = TH1F(
"ZpMassResRL131",
"Zp Mass Res. Ratio Leading Jets 1",100,0,2);
135 ZpMassResRL132 = TH1F(
"ZpMassResRL132",
"Zp Mass Res. Ratio Leading Jets 2",100,0,2);
136 ZpMassResRL133 = TH1F(
"ZpMassResRL133",
"Zp Mass Res. Ratio Leading Jets 3",100,0,2);
138 ZpMassResRLoP131 = TH1F(
"ZpMassResRLoP131",
"Zp Mass RLoP Ratio Leading Jets 1",100,0,2);
139 ZpMassResRLoP132 = TH1F(
"ZpMassResRLoP132",
"Zp Mass RLoP Ratio Leading Jets 2",100,0,2);
140 ZpMassResRLoP133 = TH1F(
"ZpMassResRLoP133",
"Zp Mass RLoP Ratio Leading Jets 3",100,0,2);
142 ZpMassResPRL131 = TH1F(
"ZpMassResPRL131",
"Zp Mass Res. P Ratio Leading Jets 1",100,0,2);
143 ZpMassResPRL132 = TH1F(
"ZpMassResPRL132",
"Zp Mass Res. P Ratio Leading Jets 2",100,0,2);
144 ZpMassResPRL133 = TH1F(
"ZpMassResPRL133",
"Zp Mass Res. P Ratio Leading Jets 3",100,0,2);
147 ZpMassResL401 = TH1F(
"ZpMassResL401",
"Zp Mass Resolution Leading Jets 1",100,0,2);
148 ZpMassResL402 = TH1F(
"ZpMassResL402",
"Zp Mass Resolution Leading Jets 2",100,0,2);
149 ZpMassResL403 = TH1F(
"ZpMassResL403",
"Zp Mass Resolution Leading Jets 3",100,0,2);
151 ZpMassResRL401 = TH1F(
"ZpMassResRL401",
"Zp Mass Res. Ratio Leading Jets 1",100,0,2);
152 ZpMassResRL402 = TH1F(
"ZpMassResRL402",
"Zp Mass Res. Ratio Leading Jets 2",100,0,2);
153 ZpMassResRL403 = TH1F(
"ZpMassResRL403",
"Zp Mass Res. Ratio Leading Jets 3",100,0,2);
155 ZpMassResRLoP401 = TH1F(
"ZpMassResRLoP401",
"Zp Mass RLoP Ratio Leading Jets 1",100,0,2);
156 ZpMassResRLoP402 = TH1F(
"ZpMassResRLoP402",
"Zp Mass RLoP Ratio Leading Jets 2",100,0,2);
157 ZpMassResRLoP403 = TH1F(
"ZpMassResRLoP403",
"Zp Mass RLoP Ratio Leading Jets 3",100,0,2);
159 ZpMassResPRL401 = TH1F(
"ZpMassResPRL401",
"Zp Mass Res. P Ratio Leading Jets 1",100,0,2);
160 ZpMassResPRL402 = TH1F(
"ZpMassResPRL402",
"Zp Mass Res. P Ratio Leading Jets 2",100,0,2);
161 ZpMassResPRL403 = TH1F(
"ZpMassResPRL403",
"Zp Mass Res. P Ratio Leading Jets 3",100,0,2);
163 dijetMass1 = TH1F(
"dijetMass1",
"DiJet Mass 1",100,0,4000);
164 dijetMass12 = TH1F(
"dijetMass12",
"DiJet Mass 1 2",100,0,6000);
165 dijetMass13 = TH1F(
"dijetMass13",
"DiJet Mass 1 3",100,0,12000);
166 dijetMass2 = TH1F(
"dijetMass2",
"DiJet Mass 2",100,0,4000);
167 dijetMass22 = TH1F(
"dijetMass22",
"DiJet Mass 2 2",100,0,6000);
168 dijetMass23 = TH1F(
"dijetMass23",
"DiJet Mass 2 3",100,0,12000);
169 dijetMass3 = TH1F(
"dijetMass3",
"DiJet Mass 3",100,0,4000);
170 dijetMass32 = TH1F(
"dijetMass32",
"DiJet Mass 3 2",100,0,6000);
171 dijetMass33 = TH1F(
"dijetMass33",
"DiJet Mass 3 3",100,0,12000);
172 dijetMass4 = TH1F(
"dijetMass4",
"DiJet Mass 4",100,0,4000);
173 dijetMass42 = TH1F(
"dijetMass42",
"DiJet Mass 4 2",100,0,6000);
174 dijetMass43 = TH1F(
"dijetMass43",
"DiJet Mass 4 3",100,0,12000);
176 dijetMass101 = TH1F(
"dijetMass101",
"DiJet Mass 1",100,0,6000);
177 dijetMass131 = TH1F(
"dijetMass131",
"DiJet Mass 1",100,0,6000);
178 dijetMass401 = TH1F(
"dijetMass401",
"DiJet Mass 1",100,0,6000);
180 dijetMass102 = TH1F(
"dijetMass102",
"DiJet Mass 2",100,0,6000);
181 dijetMass132 = TH1F(
"dijetMass132",
"DiJet Mass 2",100,0,6000);
182 dijetMass402 = TH1F(
"dijetMass402",
"DiJet Mass 2",100,0,6000);
184 dijetMass103 = TH1F(
"dijetMass103",
"DiJet Mass 3",100,0,10000);
185 dijetMass133 = TH1F(
"dijetMass133",
"DiJet Mass 3",100,0,10000);
186 dijetMass403 = TH1F(
"dijetMass403",
"DiJet Mass 3",100,0,10000);
201 dijetMassCor1 = TH1F(
"dijetMassCor1",
"DiJet Mass 1",160,0,8000);
202 dijetMassCor101 = TH1F(
"dijetMassCor101",
"DiJet Mass Cor 101",160,0,8000);
203 dijetMassCor131 = TH1F(
"dijetMassCor131",
"DiJet Mass Cor 131",160,0,8000);
204 dijetMassCor401 = TH1F(
"dijetMassCor401",
"DiJet Mass Cor 401",160,0,8000);
221 dijetMassP1 = TH1F(
"dijetMassP1",
"DiJet Mass P 1",160,0,8000);
222 dijetMassP2 = TH1F(
"dijetMassP2",
"DiJet Mass P 2",160,0,8000);
223 dijetMassP3 = TH1F(
"dijetMassP3",
"DiJet Mass P 3",160,0,8000);
226 dijetMassP101 = TH1F(
"dijetMassP101",
"DiJet Mass P 1",160,0,8000);
227 dijetMassP131 = TH1F(
"dijetMassP131",
"DiJet Mass P 1",160,0,8000);
228 dijetMassP401 = TH1F(
"dijetMassP401",
"DiJet Mass P 1",160,0,8000);
242 totEneLeadJetEta1_1 = TH1F(
"totEneLeadJetEta1_1",
"Total Energy Lead Jet Eta1 1",100,0,1500);
243 totEneLeadJetEta2_1 = TH1F(
"totEneLeadJetEta2_1",
"Total Energy Lead Jet Eta2 1",100,0,1500);
244 totEneLeadJetEta3_1 = TH1F(
"totEneLeadJetEta3_1",
"Total Energy Lead Jet Eta3 1",100,0,1500);
245 hadEneLeadJetEta1_1 = TH1F(
"hadEneLeadJetEta1_1",
"Hadronic Energy Lead Jet Eta1 1",100,0,1500);
246 hadEneLeadJetEta2_1 = TH1F(
"hadEneLeadJetEta2_1",
"Hadronic Energy Lead Jet Eta2 1",100,0,1500);
247 hadEneLeadJetEta3_1 = TH1F(
"hadEneLeadJetEta3_1",
"Hadronic Energy Lead Jet Eta3 1",100,0,1500);
248 emEneLeadJetEta1_1 = TH1F(
"emEneLeadJetEta1_1",
"EM Energy Lead Jet Eta1 1",100,0,1500);
249 emEneLeadJetEta2_1 = TH1F(
"emEneLeadJetEta2_1",
"EM Energy Lead Jet Eta2 1",100,0,1500);
250 emEneLeadJetEta3_1 = TH1F(
"emEneLeadJetEta3_1",
"EM Energy Lead Jet Eta3 1",100,0,1500);
252 totEneLeadJetEta1_2 = TH1F(
"totEneLeadJetEta1_2",
"Total Energy Lead Jet Eta1 2",100,0,6000);
253 totEneLeadJetEta2_2 = TH1F(
"totEneLeadJetEta2_2",
"Total Energy Lead Jet Eta2 2",100,0,6000);
254 totEneLeadJetEta3_2 = TH1F(
"totEneLeadJetEta3_2",
"Total Energy Lead Jet Eta3 2",100,0,6000);
255 hadEneLeadJetEta1_2 = TH1F(
"hadEneLeadJetEta1_2",
"Hadronic Energy Lead Jet Eta1 2",100,0,6000);
256 hadEneLeadJetEta2_2 = TH1F(
"hadEneLeadJetEta2_2",
"Hadronic Energy Lead Jet Eta2 2",100,0,6000);
257 hadEneLeadJetEta3_2 = TH1F(
"hadEneLeadJetEta3_2",
"Hadronic Energy Lead Jet Eta3 2",100,0,6000);
258 emEneLeadJetEta1_2 = TH1F(
"emEneLeadJetEta1_2",
"EM Energy Lead Jet Eta1 2",100,0,5000);
259 emEneLeadJetEta2_2 = TH1F(
"emEneLeadJetEta2_2",
"EM Energy Lead Jet Eta2 2",100,0,5000);
260 emEneLeadJetEta3_2 = TH1F(
"emEneLeadJetEta3_2",
"EM Energy Lead Jet Eta3 2",100,0,5000);
262 hadEneLeadJet1 = TH1F(
"hadEneLeadJet1",
"Hadronic Energy Lead Jet 1",100,0,3000);
263 hadEneLeadJet12 = TH1F(
"hadEneLeadJet12",
"Hadronic Energy Lead Jet 1 2",100,0,4000);
264 hadEneLeadJet13 = TH1F(
"hadEneLeadJet13",
"Hadronic Energy Lead Jet 1 3",100,0,6000);
265 hadEneLeadJet2 = TH1F(
"hadEneLeadJet2",
"Hadronic Energy Lead Jet 2",100,0,3000);
266 hadEneLeadJet22 = TH1F(
"hadEneLeadJet22",
"Hadronic Energy Lead Jet 2 2",100,0,4000);
267 hadEneLeadJet23 = TH1F(
"hadEneLeadJet23",
"Hadronic Energy Lead Jet 2 3",100,0,6000);
268 hadEneLeadJet3 = TH1F(
"hadEneLeadJet3",
"Hadronic Energy Lead Jet 3",100,0,3000);
269 hadEneLeadJet32 = TH1F(
"hadEneLeadJet32",
"Hadronic Energy Lead Jet 3 2",100,0,4000);
270 hadEneLeadJet33 = TH1F(
"hadEneLeadJet33",
"Hadronic Energy Lead Jet 3 3",100,0,6000);
272 emEneLeadJet1 = TH1F(
"emEneLeadJet1",
"EM Energy Lead Jet 1",100,0,1500);
273 emEneLeadJet12 = TH1F(
"emEneLeadJet12",
"EM Energy Lead Jet 1 2",100,0,3000);
274 emEneLeadJet13 = TH1F(
"emEneLeadJet13",
"EM Energy Lead Jet 1 3",100,0,5000);
275 emEneLeadJet2 = TH1F(
"emEneLeadJet2",
"EM Energy Lead Jet 2",100,0,1500);
276 emEneLeadJet22 = TH1F(
"emEneLeadJet22",
"EM Energy Lead Jet 2 2",100,0,3000);
277 emEneLeadJet23 = TH1F(
"emEneLeadJet23",
"EM Energy Lead Jet 2 3",100,0,5000);
278 emEneLeadJet3 = TH1F(
"emEneLeadJet3",
"EM Energy Lead Jet 3",100,0,1500);
279 emEneLeadJet32 = TH1F(
"emEneLeadJet32",
"EM Energy Lead Jet 3 2",100,0,3000);
280 emEneLeadJet33 = TH1F(
"emEneLeadJet33",
"EM Energy Lead Jet 3 3",100,0,5000);
282 hadFracEta11 = TH1F(
"hadFracEta11",
"Hadronic Fraction Eta1 Jet 1",100,0,1);
283 hadFracEta21 = TH1F(
"hadFracEta21",
"Hadronic Fraction Eta2 Jet 1",100,0,1);
284 hadFracEta31 = TH1F(
"hadFracEta31",
"Hadronic Fraction Eta3 Jet 1",100,0,1);
286 hadFracEta12 = TH1F(
"hadFracEta12",
"Hadronic Fraction Eta1 Jet 2",100,0,1);
287 hadFracEta22 = TH1F(
"hadFracEta22",
"Hadronic Fraction Eta2 Jet 2",100,0,1);
288 hadFracEta32 = TH1F(
"hadFracEta32",
"Hadronic Fraction Eta3 Jet 2",100,0,1);
290 hadFracEta13 = TH1F(
"hadFracEta13",
"Hadronic Fraction Eta1 Jet 3",100,0,1);
291 hadFracEta23 = TH1F(
"hadFracEta23",
"Hadronic Fraction Eta2 Jet 3",100,0,1);
292 hadFracEta33 = TH1F(
"hadFracEta33",
"Hadronic Fraction Eta3 Jet 3",100,0,1);
294 hadFracLeadJet1 = TH1F(
"hadFracLeadJet1",
"Hadronic Fraction Lead Jet 1",100,0,1);
295 hadFracLeadJet2 = TH1F(
"hadFracLeadJet2",
"Hadronic Fraction Lead Jet 2",100,0,1);
296 hadFracLeadJet3 = TH1F(
"hadFracLeadJet3",
"Hadronic Fraction Lead Jet 3",100,0,1);
298 SumEt1 = TH1F(
"SumEt1",
"SumEt 1",100,0,1000);
299 SumEt12 = TH1F(
"SumEt12",
"SumEt 1 2",100,0,4000);
300 SumEt13 = TH1F(
"SumEt13",
"SumEt 1 3",100,0,15000);
302 MET1 = TH1F(
"MET1",
"MET 1",100,0,200);
303 MET12 = TH1F(
"MET12",
"MET 1 2",100,0,1000);
304 MET13 = TH1F(
"MET13",
"MET 1 3",100,0,3000);
306 nTowersLeadJet1 = TH1F(
"nTowersLeadJet1",
"Number of Towers Lead Jet 1",100,0,100);
307 nTowersLeadJet2 = TH1F(
"nTowersLeadJet2",
"Number of Towers Lead Jet 2",100,0,100);
308 nTowersLeadJet3 = TH1F(
"nTowersLeadJet3",
"Number of Towers Lead Jet 3",100,0,100);
310 nTowersSecondJet1 = TH1F(
"nTowersSecondJet1",
"Number of Towers Second Jet 1",100,0,100);
311 nTowersSecondJet2 = TH1F(
"nTowersSecondJet2",
"Number of Towers Second Jet 2",100,0,100);
312 nTowersSecondJet3 = TH1F(
"nTowersSecondJet3",
"Number of Towers Second Jet 3",100,0,100);
314 hf_PtResponse1 = TProfile(
"PtResponse1",
"Pt Response 1", 100, -5, 5, 0, 10);
315 hf_PtResponse2 = TProfile(
"PtResponse2",
"Pt Response 2", 100, -5, 5, 0, 10);
316 hf_PtResponse3 = TProfile(
"PtResponse3",
"Pt Response 3", 100, -5, 5, 0, 10);
317 hf_PtResponse4 = TProfile(
"PtResponse4",
"Pt Response 4", 100, -5, 5, 0, 10);
319 hf_TowerDelR1 = TProfile(
"hf_TowerDelR1",
"Tower Del R 1", 100, 0, 2, 0, 10);
320 hf_TowerDelR12 = TProfile(
"hf_TowerDelR12",
"Tower Del R 1", 80, 0, 0.8, 0, 10);
321 hf_TowerDelR2 = TProfile(
"hf_TowerDelR2",
"Tower Del R 2", 100, 0, 2, 0, 10);
322 hf_TowerDelR22 = TProfile(
"hf_TowerDelR22",
"Tower Del R 2", 80, 0, 0.8, 0, 10);
323 hf_TowerDelR3 = TProfile(
"hf_TowerDelR3",
"Tower Del R 3", 100, 0, 2, 0, 10);
324 hf_TowerDelR32 = TProfile(
"hf_TowerDelR32",
"Tower Del R 3", 80, 0, 0.8, 0, 10);
331 nTowers1 = TH1F(
"nTowers1",
"Number of Towers pt 0.5",100,0,500);
332 nTowers2 = TH1F(
"nTowers2",
"Number of Towers pt 1.0",100,0,500);
333 nTowers3 = TH1F(
"nTowers3",
"Number of Towers pt 1.5",100,0,500);
334 nTowers4 = TH1F(
"nTowers4",
"Number of Towers pt 2.0",100,0,500);
336 nTowersLeadJetPt1 = TH1F(
"nTowersLeadJetPt1",
"Number of Towers in Lead Jet pt 0.5",100,0,200);
337 nTowersLeadJetPt2 = TH1F(
"nTowersLeadJetPt2",
"Number of Towers in Lead Jet pt 1.0",100,0,200);
338 nTowersLeadJetPt3 = TH1F(
"nTowersLeadJetPt3",
"Number of Towers in Lead Jet pt 1.5",100,0,200);
339 nTowersLeadJetPt4 = TH1F(
"nTowersLeadJetPt4",
"Number of Towers in Lead Jet pt 2.0",100,0,200);
341 TowerEtLeadJet1 = TH1F(
"TowerEtLeadJet1",
"Towers Et Lead Jet 1",100,0,2000);
342 TowerEtLeadJet12 = TH1F(
"TowerEtLeadJet12",
"Towers Et Lead Jet 1 2",100,0,6000);
343 TowerEtLeadJet13 = TH1F(
"TowerEtLeadJet13",
"Towers Et Lead Jet 1 3",100,0,300);
344 TowerEtLeadJet2 = TH1F(
"TowerEtLeadJet2",
"Towers Et Lead Jet 2",100,0,2000);
345 TowerEtLeadJet22 = TH1F(
"TowerEtLeadJet22",
"Towers Et Lead Jet 2 2",100,0,6000);
346 TowerEtLeadJet23 = TH1F(
"TowerEtLeadJet23",
"Towers Et Lead Jet 2 3",100,0,300);
347 TowerEtLeadJet3 = TH1F(
"TowerEtLeadJet3",
"Towers Et Lead Jet 3",100,0,2000);
348 TowerEtLeadJet32 = TH1F(
"TowerEtLeadJet32",
"Towers Et Lead Jet 3 2",100,0,6000);
349 TowerEtLeadJet33 = TH1F(
"TowerEtLeadJet33",
"Towers Et Lead Jet 3 3",100,0,300);
351 hf_nJet1 = TProfile(
"hf_nJet1",
"Num Jets 1", 100, 0, 5000, 0, 50);
352 hf_nJet2 = TProfile(
"hf_nJet2",
"Num Jets 2", 100, 0, 5000, 0, 50);
353 hf_nJet3 = TProfile(
"hf_nJet3",
"Num Jets 3", 100, 0, 5000, 0, 50);
354 hf_nJet4 = TProfile(
"hf_nJet4",
"Num Jets 4", 100, 0, 5000, 0, 50);
356 hf_nJet1s = TProfile(
"hf_nJet1s",
"Num Jets 1", 100, 0, 200, 0, 50);
357 hf_nJet2s = TProfile(
"hf_nJet2s",
"Num Jets 2", 100, 0, 200, 0, 50);
358 hf_nJet3s = TProfile(
"hf_nJet3s",
"Num Jets 3", 100, 0, 200, 0, 50);
359 hf_nJet4s = TProfile(
"hf_nJet4s",
"Num Jets 4", 100, 0, 200, 0, 50);
361 hf_nJet11 = TProfile(
"hf_nJet11",
"Num Jets 1 1", 100, 0, 3000, 0, 50);
362 hf_nJet21 = TProfile(
"hf_nJet21",
"Num Jets 2 1", 100, 0, 3000, 0, 50);
363 hf_nJet31 = TProfile(
"hf_nJet31",
"Num Jets 3 1", 100, 0, 3000, 0, 50);
364 hf_nJet41 = TProfile(
"hf_nJet41",
"Num Jets 4 1", 100, 0, 3000, 0, 50);
366 dRPar1 = TH1F(
"dRPar1",
"Parton dR with matched CaloJet1",100,0,0.5);
367 dPhiPar1 = TH1F(
"dPhiPar1",
"Parton dPhi with matched CaloJet1",200,-0.5,0.5);
368 dEtaPar1 = TH1F(
"dEtaPar1",
"Parton dEta with matched CaloJet1",200,-0.5,0.5);
369 dPtPar1 = TH1F(
"dPtPar1",
"Parton dPt with matched CaloJet1",200,-50,50);
371 dRPar2 = TH1F(
"dRPar2",
"Parton dR with matched CaloJet2",100,0,0.5);
372 dPhiPar2 = TH1F(
"dPhiPar2",
"Parton dPhi with matched CaloJet2",200,-0.5,0.5);
373 dEtaPar2 = TH1F(
"dEtaPar2",
"Parton dEta with matched CaloJet2",200,-0.5,0.5);
374 dPtPar2 = TH1F(
"dPtPar2",
"Parton dPt with matched CaloJet2",200,-50,50);
376 dRPar3 = TH1F(
"dRPar3",
"Parton dR with matched CaloJet3",100,0,0.5);
377 dPhiPar3 = TH1F(
"dPhiPar3",
"Parton dPhi with matched CaloJet3",200,-0.5,0.5);
378 dEtaPar3 = TH1F(
"dEtaPar3",
"Parton dEta with matched CaloJet3",200,-0.5,0.5);
379 dPtPar3 = TH1F(
"dPtPar3",
"Parton dPt with matched CaloJet3",200,-50,50);
381 dRPar4 = TH1F(
"dRPar4",
"Parton dR with matched CaloJet4",100,0,0.5);
382 dPhiPar4 = TH1F(
"dPhiPar4",
"Parton dPhi with matched CaloJet4",200,-0.5,0.5);
383 dEtaPar4 = TH1F(
"dEtaPar4",
"Parton dEta with matched CaloJet4",200,-0.5,0.5);
384 dPtPar4 = TH1F(
"dPtPar4",
"Parton dPt with matched CaloJet4",200,-50,50);
386 dRParton = TH1F(
"dRParton",
"dR Parton",100,0,10.0);
387 dRPartonMin = TH1F(
"dRPartonMin",
"Min dR Parton",100,0,2.0);
389 dR1 = TH1F(
"dR1",
"GenJets dR with matched CaloJet",100,0,0.5);
390 dPhi1 = TH1F(
"dPhi1",
"GenJets dPhi with matched CaloJet",200,-0.5,0.5);
391 dEta1 = TH1F(
"dEta1",
"GenJets dEta with matched CaloJet",200,-0.5,0.5);
392 dPt1 = TH1F(
"dPt1",
"GenJets dPt with matched CaloJet",200,-100,100);
393 dPtFrac1 = TH1F(
"dPtFrac1",
"GenJets dPt frac with matched CaloJet",100,-1,1);
394 dPt20Frac1 = TH1F(
"dPt20Frac1",
"GenJets dPt frac with matched CaloJet",100,-1,1);
395 dPt40Frac1 = TH1F(
"dPt40Frac1",
"GenJets dPt frac with matched CaloJet",100,-1,1);
396 dPt80Frac1 = TH1F(
"dPt80Frac1",
"GenJets dPt frac with matched CaloJet",100,-1,1);
397 dPt100Frac1 = TH1F(
"dPt100Frac1",
"GenJets dPt frac with matched CaloJet",100,-1,1);
399 dR2 = TH1F(
"dR2",
"GenJets dR with matched CaloJet",100,0,0.5);
400 dPhi2 = TH1F(
"dPhi2",
"GenJets dPhi with matched CaloJet",200,-0.5,0.5);
401 dEta2 = TH1F(
"dEta2",
"GenJets dEta with matched CaloJet",200,-0.5,0.5);
402 dPt2 = TH1F(
"dPt2",
"GenJets dPt with matched CaloJet",200,-100,100);
403 dPtFrac2 = TH1F(
"dPtFrac2",
"GenJets dPt frac with matched CaloJet",100,-1,1);
404 dPt20Frac2 = TH1F(
"dPt20Frac2",
"GenJets dPt frac with matched CaloJet",100,-1,1);
405 dPt40Frac2 = TH1F(
"dPt40Frac2",
"GenJets dPt frac with matched CaloJet",100,-1,1);
406 dPt80Frac2 = TH1F(
"dPt80Frac2",
"GenJets dPt frac with matched CaloJet",100,-1,1);
407 dPt100Frac2 = TH1F(
"dPt100Frac2",
"GenJets dPt frac with matched CaloJet",100,-1,1);
409 dR3 = TH1F(
"dR3",
"GenJets dR with matched CaloJet",100,0,0.5);
410 dPhi3 = TH1F(
"dPhi3",
"GenJets dPhi with matched CaloJet",200,-0.5,0.5);
411 dEta3 = TH1F(
"dEta3",
"GenJets dEta with matched CaloJet",200,-0.5,0.5);
412 dPt3 = TH1F(
"dPt3",
"GenJets dPt with matched CaloJet",200,-100,100);
413 dPtFrac3 = TH1F(
"dPtFrac3",
"GenJets dPt frac with matched CaloJet",100,-1,1);
414 dPt20Frac3 = TH1F(
"dPt20Frac3",
"GenJets dPt frac with matched CaloJet",100,-1,1);
415 dPt40Frac3 = TH1F(
"dPt40Frac3",
"GenJets dPt frac with matched CaloJet",100,-1,1);
416 dPt80Frac3 = TH1F(
"dPt80Frac3",
"GenJets dPt frac with matched CaloJet",100,-1,1);
417 dPt100Frac3 = TH1F(
"dPt100Frac3",
"GenJets dPt frac with matched CaloJet",100,-1,1);
419 dR4 = TH1F(
"dR4",
"GenJets dR with matched CaloJet",100,0,0.5);
420 dPhi4 = TH1F(
"dPhi4",
"GenJets dPhi with matched CaloJet",200,-0.5,0.5);
421 dEta4 = TH1F(
"dEta4",
"GenJets dEta with matched CaloJet",200,-0.5,0.5);
422 dPt4 = TH1F(
"dPt4",
"GenJets dPt with matched CaloJet",200,-100,100);
423 dPtFrac4 = TH1F(
"dPtFrac4",
"GenJets dPt frac with matched CaloJet",100,-1,1);
424 dPt20Frac4 = TH1F(
"dPt20Frac4",
"GenJets dPt frac with matched CaloJet",100,-1,1);
425 dPt40Frac4 = TH1F(
"dPt40Frac4",
"GenJets dPt frac with matched CaloJet",100,-1,1);
426 dPt80Frac4 = TH1F(
"dPt80Frac4",
"GenJets dPt frac with matched CaloJet",100,-1,1);
427 dPt100Frac4 = TH1F(
"dPt100Frac4",
"GenJets dPt frac with matched CaloJet",100,-1,1);
429 dR12 = TH1F(
"dR12",
"dR MidPoint - SISCone",100,0,0.5);
430 dPhi12 = TH1F(
"dPhi12",
"dPhi MidPoint - SISCone",200,-0.5,0.5);
431 dEta12 = TH1F(
"dEta12",
"dEta MidPoint - SISCone",200,-0.5,0.5);
432 dPt12 = TH1F(
"dPt12",
"dPt MidPoint - SISCone",200,-100,100);
436 h_nCalJets1 = TH1F(
"nCalJets1",
"Number of CalJets1", 20, 0, 20 );
437 h_nCalJets2 = TH1F(
"nCalJets2",
"Number of CalJets2", 20, 0, 20 );
438 h_nCalJets3 = TH1F(
"nCalJets3",
"Number of CalJets3", 20, 0, 20 );
439 h_nCalJets4 = TH1F(
"nCalJets4",
"Number of CalJets4", 20, 0, 20 );
441 h_lowPtCal11 = TH1F(
"lowPtCal11",
"Low p_{T} of CalJet1 Eta1", 100, 0, 100 );
442 h_lowPtCal21 = TH1F(
"lowPtCal21",
"Low p_{T} of CalJet2 Eta1", 100, 0, 100 );
443 h_lowPtCal31 = TH1F(
"lowPtCal31",
"Low p_{T} of CalJet3 Eta1", 100, 0, 100 );
444 h_lowPtCal41 = TH1F(
"lowPtCal41",
"Low p_{T} of CalJet4 Eta1", 100, 0, 100 );
446 h_lowPtCal12 = TH1F(
"lowPtCal12",
"Low p_{T} of CalJet1 Eta2", 100, 0, 100 );
447 h_lowPtCal22 = TH1F(
"lowPtCal22",
"Low p_{T} of CalJet2 Eta2", 100, 0, 100 );
448 h_lowPtCal32 = TH1F(
"lowPtCal32",
"Low p_{T} of CalJet3 Eta2", 100, 0, 100 );
449 h_lowPtCal42 = TH1F(
"lowPtCal42",
"Low p_{T} of CalJet4 Eta2", 100, 0, 100 );
451 h_lowPtCal13 = TH1F(
"lowPtCal13",
"Low p_{T} of CalJet1 Eta3", 100, 0, 100 );
452 h_lowPtCal23 = TH1F(
"lowPtCal23",
"Low p_{T} of CalJet2 Eta3", 100, 0, 100 );
453 h_lowPtCal33 = TH1F(
"lowPtCal33",
"Low p_{T} of CalJet3 Eta3", 100, 0, 100 );
454 h_lowPtCal43 = TH1F(
"lowPtCal43",
"Low p_{T} of CalJet4 Eta3", 100, 0, 100 );
456 h_lowPtCal1c11 = TH1F(
"lowPtCal1c11",
"Low p_{T} of CalJet1 c1 Eta1", 100, 0, 100 );
457 h_lowPtCal2c11 = TH1F(
"lowPtCal2c11",
"Low p_{T} of CalJet2 c1 Eta1", 100, 0, 100 );
458 h_lowPtCal3c11 = TH1F(
"lowPtCal3c11",
"Low p_{T} of CalJet3 c1 Eta1", 100, 0, 100 );
459 h_lowPtCal4c11 = TH1F(
"lowPtCal4c11",
"Low p_{T} of CalJet4 c1 Eta1", 100, 0, 100 );
461 h_lowPtCal1c12 = TH1F(
"lowPtCal1c12",
"Low p_{T} of CalJet1 c1 Eta2", 100, 0, 100 );
462 h_lowPtCal2c12 = TH1F(
"lowPtCal2c12",
"Low p_{T} of CalJet2 c1 Eta2", 100, 0, 100 );
463 h_lowPtCal3c12 = TH1F(
"lowPtCal3c12",
"Low p_{T} of CalJet3 c1 Eta2", 100, 0, 100 );
464 h_lowPtCal4c12 = TH1F(
"lowPtCal4c12",
"Low p_{T} of CalJet4 c1 Eta2", 100, 0, 100 );
466 h_lowPtCal1c13 = TH1F(
"lowPtCal1c13",
"Low p_{T} of CalJet1 c1 Eta3", 100, 0, 100 );
467 h_lowPtCal2c13 = TH1F(
"lowPtCal2c13",
"Low p_{T} of CalJet2 c1 Eta3", 100, 0, 100 );
468 h_lowPtCal3c13 = TH1F(
"lowPtCal3c13",
"Low p_{T} of CalJet3 c1 Eta3", 100, 0, 100 );
469 h_lowPtCal4c13 = TH1F(
"lowPtCal4c13",
"Low p_{T} of CalJet4 c1 Eta3", 100, 0, 100 );
472 matchedAllPt11 = TH1F(
"matchedAllPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250 );
473 matchedAllPt12 = TH1F(
"matchedAllPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250 );
474 matchedAllPt13 = TH1F(
"matchedAllPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250 );
475 matchedPt11 = TH1F(
"matchedPt11",
"p_{T} of CalJet1 Eta1", 50, 0, 250 );
476 matchedPt12 = TH1F(
"matchedPt12",
"p_{T} of CalJet1 Eta2", 50, 0, 250 );
477 matchedPt13 = TH1F(
"matchedPt13",
"p_{T} of CalJet1 Eta3", 50, 0, 250 );
479 matchedAllPt21 = TH1F(
"matchedAllPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250 );
480 matchedAllPt22 = TH1F(
"matchedAllPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250 );
481 matchedAllPt23 = TH1F(
"matchedAllPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250 );
482 matchedPt21 = TH1F(
"matchedPt21",
"p_{T} of CalJet2 Eta1", 50, 0, 250 );
483 matchedPt22 = TH1F(
"matchedPt22",
"p_{T} of CalJet2 Eta2", 50, 0, 250 );
484 matchedPt23 = TH1F(
"matchedPt23",
"p_{T} of CalJet2 Eta3", 50, 0, 250 );
486 matchedAllPt31 = TH1F(
"matchedAllPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250 );
487 matchedAllPt32 = TH1F(
"matchedAllPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250 );
488 matchedAllPt33 = TH1F(
"matchedAllPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250 );
489 matchedPt31 = TH1F(
"matchedPt31",
"p_{T} of CalJet3 Eta1", 50, 0, 250 );
490 matchedPt32 = TH1F(
"matchedPt32",
"p_{T} of CalJet3 Eta2", 50, 0, 250 );
491 matchedPt33 = TH1F(
"matchedPt33",
"p_{T} of CalJet3 Eta3", 50, 0, 250 );
493 matchedAllPt41 = TH1F(
"matchedAllPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250 );
494 matchedAllPt42 = TH1F(
"matchedAllPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250 );
495 matchedAllPt43 = TH1F(
"matchedAllPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250 );
496 matchedPt41 = TH1F(
"matchedPt41",
"p_{T} of CalJet4 Eta1", 50, 0, 250 );
497 matchedPt42 = TH1F(
"matchedPt42",
"p_{T} of CalJet4 Eta2", 50, 0, 250 );
498 matchedPt43 = TH1F(
"matchedPt43",
"p_{T} of CalJet4 Eta3", 50, 0, 250 );
502 h_ptCal1 = TH1F(
"ptCal1",
"p_{T} of CalJet1", 50, 0, 1000 );
503 h_ptCal12 = TH1F(
"ptCal12",
"p_{T} of CalJet1 2", 50, 0, 6000 );
504 h_ptCal13 = TH1F(
"ptCal13",
"p_{T} of CalJet1 2", 50, 0, 300 );
506 h_ptCal2 = TH1F(
"ptCal2",
"p_{T} of CalJet2", 50, 0, 1000 );
507 h_ptCal22 = TH1F(
"ptCal22",
"p_{T} of CalJet2 2", 50, 0, 6000 );
508 h_ptCal23 = TH1F(
"ptCal23",
"p_{T} of CalJet2 2", 50, 0, 300 );
510 h_ptCal3 = TH1F(
"ptCal3",
"p_{T} of CalJet3", 50, 0, 1000 );
511 h_ptCal32 = TH1F(
"ptCal32",
"p_{T} of CalJet3 2", 50, 0, 6000 );
512 h_ptCal33 = TH1F(
"ptCal33",
"p_{T} of CalJet3 2", 50, 0, 300 );
514 h_ptCal4 = TH1F(
"ptCal4",
"p_{T} of CalJet4", 50, 0, 1000 );
515 h_ptCal42 = TH1F(
"ptCal42",
"p_{T} of CalJet4 2", 50, 0, 6000 );
516 h_ptCal43 = TH1F(
"ptCal43",
"p_{T} of CalJet4 2", 50, 0, 300 );
518 h_etaCal1 = TH1F(
"etaCal1",
"#eta of CalJet1", 100, -4, 4 );
519 h_etaCal2 = TH1F(
"etaCal2",
"#eta of CalJet2", 100, -4, 4 );
520 h_etaCal3 = TH1F(
"etaCal3",
"#eta of CalJet3", 100, -4, 4 );
521 h_etaCal4 = TH1F(
"etaCal4",
"#eta of CalJet4", 100, -4, 4 );
528 h_ptCalL1 = TH1F(
"ptCalL1",
"p_{T} of CalJetL1", 50, 0, 300 );
529 h_ptCalL12 = TH1F(
"ptCalL12",
"p_{T} of CalJetL1 2", 50, 0, 1200 );
530 h_ptCalL13 = TH1F(
"ptCalL13",
"p_{T} of CalJetL1 3", 50, 0, 6000 );
531 h_ptCalL2 = TH1F(
"ptCalL2",
"p_{T} of CalJetL2", 50, 0, 300 );
532 h_ptCalL22 = TH1F(
"ptCalL22",
"p_{T} of CalJetL2 2", 50, 0, 1200 );
533 h_ptCalL23 = TH1F(
"ptCalL23",
"p_{T} of CalJetL2 3", 50, 0, 6000 );
534 h_ptCalL3 = TH1F(
"ptCalL3",
"p_{T} of CalJetL3", 50, 0, 300 );
535 h_ptCalL32 = TH1F(
"ptCalL32",
"p_{T} of CalJetL3 2", 50, 0, 1200 );
536 h_ptCalL33 = TH1F(
"ptCalL33",
"p_{T} of CalJetL3 3", 50, 0, 6000 );
537 h_ptCalL4 = TH1F(
"ptCalL4",
"p_{T} of CalJetL4", 50, 0, 300 );
538 h_ptCalL42 = TH1F(
"ptCalL42",
"p_{T} of CalJetL4 2", 50, 0, 1200 );
539 h_ptCalL43 = TH1F(
"ptCalL43",
"p_{T} of CalJetL4 3", 50, 0, 6000 );
542 h_etaCalL1 = TH1F(
"etaCalL1",
"#eta of CalJetL1", 100, -4, 4 );
543 h_etaCalL2 = TH1F(
"etaCalL2",
"#eta of CalJetL2", 100, -4, 4 );
544 h_etaCalL3 = TH1F(
"etaCalL3",
"#eta of CalJetL3", 100, -4, 4 );
545 h_etaCalL4 = TH1F(
"etaCalL4",
"#eta of CalJetL4", 100, -4, 4 );
551 h_nGenJets1 = TH1F(
"nGenJets1",
"Number of GenJets1", 20, 0, 20 );
552 h_nGenJets2 = TH1F(
"nGenJets2",
"Number of GenJets2", 20, 0, 20 );
553 h_nGenJets3 = TH1F(
"nGenJets3",
"Number of GenJets3", 20, 0, 20 );
554 h_nGenJets4 = TH1F(
"nGenJets4",
"Number of GenJets4", 20, 0, 20 );
556 h_ptGen1 = TH1F(
"ptGen1",
"p_{T} of GenJet1", 50, 0, 1000 );
557 h_ptGen12 = TH1F(
"ptGen12",
"p_{T} of GenJet1 2", 50, 0, 6000 );
558 h_ptGen13 = TH1F(
"ptGen13",
"p_{T} of GenJet1 3", 50, 0, 300 );
560 h_ptGen2 = TH1F(
"ptGen2",
"p_{T} of GenJet2", 50, 0, 1000 );
561 h_ptGen22 = TH1F(
"ptGen22",
"p_{T} of GenJet2 2", 50, 0, 6000 );
562 h_ptGen23 = TH1F(
"ptGen23",
"p_{T} of GenJet2 3", 50, 0, 300 );
564 h_ptGen3 = TH1F(
"ptGen3",
"p_{T} of GenJet3", 50, 0, 1000 );
565 h_ptGen32 = TH1F(
"ptGen32",
"p_{T} of GenJet3 2", 50, 0, 6000 );
566 h_ptGen33 = TH1F(
"ptGen33",
"p_{T} of GenJet3 3", 50, 0, 300 );
568 h_ptGen4 = TH1F(
"ptGen4",
"p_{T} of GenJet4", 50, 0, 1000 );
569 h_ptGen42 = TH1F(
"ptGen42",
"p_{T} of GenJet4 2", 50, 0, 6000 );
570 h_ptGen43 = TH1F(
"ptGen43",
"p_{T} of GenJet4 3", 50, 0, 300 );
573 h_etaGen1 = TH1F(
"etaGen1",
"#eta of GenJet1", 100, -4, 4 );
574 h_etaGen2 = TH1F(
"etaGen2",
"#eta of GenJet2", 100, -4, 4 );
575 h_etaGen3 = TH1F(
"etaGen3",
"#eta of GenJet3", 100, -4, 4 );
580 h_ptGenL1 = TH1F(
"ptGenL1",
"p_{T} of GenJetL1", 50, 0, 300 );
581 h_ptGenL12 = TH1F(
"ptGenL12",
"p_{T} of GenJetL1 2", 50, 0, 1200 );
582 h_ptGenL13 = TH1F(
"ptGenL13",
"p_{T} of GenJetL1 3", 50, 0, 6000 );
583 h_ptGenL2 = TH1F(
"ptGenL2",
"p_{T} of GenJetL2", 50, 0, 300 );
584 h_ptGenL22 = TH1F(
"ptGenL22",
"p_{T} of GenJetL2 2", 50, 0, 1200 );
585 h_ptGenL23 = TH1F(
"ptGenL23",
"p_{T} of GenJetL2 3", 50, 0, 6000 );
586 h_ptGenL3 = TH1F(
"ptGenL3",
"p_{T} of GenJetL3", 50, 0, 300 );
587 h_ptGenL32 = TH1F(
"ptGenL32",
"p_{T} of GenJetL32", 50, 0, 1200 );
588 h_ptGenL33 = TH1F(
"ptGenL33",
"p_{T} of GenJetL33", 50, 0, 6000 );
591 h_etaGenL1 = TH1F(
"etaGenL1",
"#eta of GenJetL1", 100, -4, 4 );
592 h_etaGenL2 = TH1F(
"etaGenL2",
"#eta of GenJetL2", 100, -4, 4 );
593 h_etaGenL3 = TH1F(
"etaGenL3",
"#eta of GenJetL3", 100, -4, 4 );
598 h_jetEt1 = TH1F(
"jetEt1",
"Total Jet Et", 100, 0, 3000 );
599 h_jetEt2 = TH1F(
"jetEt2",
"Total Jet Et", 100, 0, 3000 );
600 h_jetEt3 = TH1F(
"jetEt3",
"Total Jet Et", 100, 0, 3000 );
602 h_jet1Pt1 = TH1F(
"jet1Pt1",
"Jet Pt", 100, 0, 3000 );
603 h_jet2Pt1 = TH1F(
"jet2Pt1",
"Jet Pt", 100, 0, 3000 );
604 h_jet3Pt1 = TH1F(
"jet3Pt1",
"Jet Pt", 100, 0, 3000 );
605 h_jet4Pt1 = TH1F(
"jet4Pt1",
"Jet Pt", 100, 0, 3000 );
606 h_jet5Pt1 = TH1F(
"jet5Pt1",
"Jet Pt", 100, 0, 3000 );
607 h_jet6Pt1 = TH1F(
"jet6Pt1",
"Jet Pt", 100, 0, 3000 );
608 h_jet7Pt1 = TH1F(
"jet7Pt1",
"Jet Pt", 100, 0, 3000 );
610 h_jet1Pt2 = TH1F(
"jet1Pt2",
"Jet Pt", 100, 0, 3000 );
611 h_jet2Pt2 = TH1F(
"jet2Pt2",
"Jet Pt", 100, 0, 3000 );
612 h_jet3Pt2 = TH1F(
"jet3Pt2",
"Jet Pt", 100, 0, 3000 );
613 h_jet4Pt2 = TH1F(
"jet4Pt2",
"Jet Pt", 100, 0, 3000 );
614 h_jet5Pt2 = TH1F(
"jet5Pt2",
"Jet Pt", 100, 0, 3000 );
615 h_jet6Pt2 = TH1F(
"jet6Pt2",
"Jet Pt", 100, 0, 3000 );
616 h_jet7Pt2 = TH1F(
"jet7Pt2",
"Jet Pt", 100, 0, 3000 );
618 h_jet1Pt3 = TH1F(
"jet1Pt3",
"Jet Pt", 100, 0, 3000 );
619 h_jet2Pt3 = TH1F(
"jet2Pt3",
"Jet Pt", 100, 0, 3000 );
620 h_jet3Pt3 = TH1F(
"jet3Pt3",
"Jet Pt", 100, 0, 3000 );
621 h_jet4Pt3 = TH1F(
"jet4Pt3",
"Jet Pt", 100, 0, 3000 );
622 h_jet5Pt3 = TH1F(
"jet5Pt3",
"Jet Pt", 100, 0, 3000 );
623 h_jet6Pt3 = TH1F(
"jet6Pt3",
"Jet Pt", 100, 0, 3000 );
624 h_jet7Pt3 = TH1F(
"jet7Pt3",
"Jet Pt", 100, 0, 3000 );
626 h_jet1Pt4 = TH1F(
"jet1Pt4",
"Jet Pt", 100, 0, 3000 );
627 h_jet2Pt4 = TH1F(
"jet2Pt4",
"Jet Pt", 100, 0, 3000 );
628 h_jet3Pt4 = TH1F(
"jet3Pt4",
"Jet Pt", 100, 0, 3000 );
629 h_jet4Pt4 = TH1F(
"jet4Pt4",
"Jet Pt", 100, 0, 3000 );
630 h_jet5Pt4 = TH1F(
"jet5Pt4",
"Jet Pt", 100, 0, 3000 );
631 h_jet6Pt4 = TH1F(
"jet6Pt4",
"Jet Pt", 100, 0, 3000 );
632 h_jet7Pt4 = TH1F(
"jet7Pt4",
"Jet Pt", 100, 0, 3000 );
635 h_totMissEt1 = TH1F(
"totMissEt1",
"Total Unclustered Et", 100, 0, 500 );
636 h_totMissEt2 = TH1F(
"totMissEt2",
"Total Unclustered Et", 100, 0, 500 );
637 h_totMissEt3 = TH1F(
"totMissEt3",
"Total Unclustered Et", 100, 0, 500 );
639 h_missEt1 = TH1F(
"missEt1",
"Unclustered Et", 100, 0, 50 );
640 h_missEt2 = TH1F(
"missEt2",
"Unclustered Et", 100, 0, 50 );
641 h_missEt3 = TH1F(
"missEt3",
"Unclustered Et", 100, 0, 50 );
643 h_missEt1s = TH1F(
"missEt1s",
"Unclustered Et", 100, 0, 2 );
644 h_missEt2s = TH1F(
"missEt2s",
"Unclustered Et", 100, 0, 2 );
645 h_missEt3s = TH1F(
"missEt3s",
"Unclustered Et", 100, 0, 2 );
647 ParMatch1 = TH1F(
"ParMatch1",
"Number of Matched Jets 1", 10, 0, 10 );
648 ParMatch2 = TH1F(
"ParMatch2",
"Number of Matched Jets 2", 10, 0, 10 );
649 ParMatch3 = TH1F(
"ParMatch3",
"Number of Matched Jets 3", 10, 0, 10 );
656 int EtaOk10, EtaOk13, EtaOk40;
658 double ZpM, ZpMG, ZpMM;
659 double LeadMass1, LeadMass2, LeadMass3, LeadMass4;
660 double LeadMassP1, LeadMassP2, LeadMassP3;
663 float minJetPt = 30.;
664 float minJetPt10 = 10.;
665 int jetInd, allJetInd;
668 double matchedDelR = 0.3;
686 for (
int istep = 0; istep < 100; ++istep) {
688 float ptStep = (istep * (5000./100.));
689 for ( CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++ cal ) {
690 if ( cal->pt() > ptStep ) njet++;
697 for (
int istep = 0; istep < 100; ++istep) {
699 float ptStep = (istep * (200./100.));
700 for ( CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++ cal ) {
701 if ( cal->pt() > ptStep ) njet++;
708 for (
int istep = 0; istep < 100; ++istep) {
710 float ptStep = (istep * (3000./100.));
711 for ( CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++ cal ) {
712 if ( cal->pt() > ptStep ) njet++;
736 for( CaloJetCollection::const_iterator cal = caloJets1->begin(); cal != caloJets1->end(); ++ cal ) {
740 double corPt = scale*cal->pt();
744 if (corPt>highestPt) {
746 p4cortmp[1] = p4cortmp[0];
748 p4cortmp[0] = scale*cal->p4();
749 }
else if (corPt>nextPt) {
751 p4cortmp[1] = scale*cal->p4();
764 if (allJetInd == 1) {
766 p4tmp[0] = cal->p4();
767 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
768 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
769 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
771 if (allJetInd == 2) {
773 p4tmp[1] = cal->p4();
774 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
775 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
776 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
778 if ( (allJetInd == 1) || (allJetInd == 2) ) {
788 if (allJetInd == 3)
h_jet3Pt1.Fill( cal->pt() );
789 if (allJetInd == 4)
h_jet4Pt1.Fill( cal->pt() );
790 if (allJetInd == 5)
h_jet5Pt1.Fill( cal->pt() );
791 if (allJetInd == 6)
h_jet6Pt1.Fill( cal->pt() );
792 if (allJetInd == 7)
h_jet7Pt1.Fill( cal->pt() );
794 if ( fabs(cal->eta()) < 1.3) {
796 if ( cal->pt() > 10.) {
800 if ( (fabs(cal->eta())> 1.3) && ( fabs(cal->eta()) < 3.) ) {
802 if ( cal->pt() > 10.) {
806 if ( fabs(cal->eta()) > 3.0) {
808 if ( cal->pt() > 10.) {
815 if ( cal->pt() > minJetPt) {
830 LeadMass1 = (p4tmp[0]+p4tmp[1]).
mass();
859 LeadMass1 = (p4cortmp[0]+p4cortmp[1]).
mass();
914 for (
int istep = 0; istep < 100; ++istep) {
916 float ptStep = (istep * (5000./100.));
918 for ( CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++ cal )
919 if ( cal->pt() > ptStep ) njet++;
924 for (
int istep = 0; istep < 100; ++istep) {
926 float ptStep = (istep * (200./100.));
928 for ( CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++ cal )
929 if ( cal->pt() > ptStep ) njet++;
935 for (
int istep = 0; istep < 100; ++istep) {
937 float ptStep = (istep * (3000./100.));
939 for ( CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++ cal )
940 if ( cal->pt() > ptStep ) njet++;
952 for( CaloJetCollection::const_iterator cal = caloJets2->begin(); cal != caloJets2->end(); ++cal ) {
955 if (allJetInd == 1) {
957 p4tmp[0] = cal->p4();
959 if (allJetInd == 2) {
961 p4tmp[1] = cal->p4();
963 if ( (allJetInd == 1) || (allJetInd == 2) ) {
971 if (allJetInd == 3)
h_jet3Pt2.Fill( cal->pt() );
972 if (allJetInd == 4)
h_jet4Pt2.Fill( cal->pt() );
973 if (allJetInd == 5)
h_jet5Pt2.Fill( cal->pt() );
974 if (allJetInd == 6)
h_jet6Pt2.Fill( cal->pt() );
975 if (allJetInd == 7)
h_jet7Pt2.Fill( cal->pt() );
977 if ( fabs(cal->eta()) < 1.3) {
979 if ( cal->pt() > 10.) {
983 if ( (fabs(cal->eta())> 1.3) && ( fabs(cal->eta()) < 3.) ) {
985 if ( cal->pt() > 10.) {
989 if ( fabs(cal->eta()) > 3.0) {
991 if ( cal->pt() > 10.) {
997 if ( cal->pt() > minJetPt) {
1010 LeadMass2 = (p4tmp[0]+p4tmp[1]).
mass();
1056 for (
int istep = 0; istep < 100; ++istep) {
1058 float ptStep = (istep * (5000./100.));
1060 for ( CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++ cal )
1061 if ( cal->pt() > ptStep ) njet++;
1067 for (
int istep = 0; istep < 100; ++istep) {
1069 float ptStep = (istep * (200./100.));
1071 for ( CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++ cal )
1072 if ( cal->pt() > ptStep ) njet++;
1077 for (
int istep = 0; istep < 100; ++istep) {
1079 float ptStep = (istep * (3000./100.));
1081 for ( CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++ cal )
1082 if ( cal->pt() > ptStep ) njet++;
1088 for( CaloJetCollection::const_iterator cal = caloJets3->begin(); cal != caloJets3->end(); ++ cal ) {
1091 if (allJetInd == 1) {
1093 p4tmp[0] = cal->p4();
1095 if (allJetInd == 2) {
1097 p4tmp[1] = cal->p4();
1099 if ( (allJetInd == 1) || (allJetInd == 2) ) {
1107 if (allJetInd == 3)
h_jet3Pt3.Fill( cal->pt() );
1108 if (allJetInd == 4)
h_jet4Pt3.Fill( cal->pt() );
1109 if (allJetInd == 5)
h_jet5Pt3.Fill( cal->pt() );
1110 if (allJetInd == 6)
h_jet6Pt3.Fill( cal->pt() );
1111 if (allJetInd == 7)
h_jet7Pt3.Fill( cal->pt() );
1114 if ( fabs(cal->eta()) < 1.3) {
1116 if ( cal->pt() > 10.) {
1120 if ( (fabs(cal->eta())> 1.3) && ( fabs(cal->eta()) < 3.) ) {
1122 if ( cal->pt() > 10.) {
1126 if ( fabs(cal->eta()) > 3.0) {
1128 if ( cal->pt() > 10.) {
1135 if ( cal->pt() > minJetPt) {
1149 LeadMass3 = (p4tmp[0]+p4tmp[1]).
mass();
1169 for (
int istep = 0; istep < 100; ++istep) {
1171 float ptStep = (istep * (5000./100.));
1173 for ( CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++ cal )
1174 if ( cal->pt() > ptStep ) njet++;
1180 for (
int istep = 0; istep < 100; ++istep) {
1182 float ptStep = (istep * (200./100.));
1184 for ( CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++ cal )
1185 if ( cal->pt() > ptStep ) njet++;
1190 for (
int istep = 0; istep < 100; ++istep) {
1192 float ptStep = (istep * (3000./100.));
1194 for ( CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++ cal )
1195 if ( cal->pt() > ptStep ) njet++;
1201 for( CaloJetCollection::const_iterator cal = caloJets4->begin(); cal != caloJets4->end(); ++ cal ) {
1204 if (allJetInd == 1) {
1206 p4tmp[0] = cal->p4();
1208 if (allJetInd == 2) {
1210 p4tmp[1] = cal->p4();
1212 if ( (allJetInd == 1) || (allJetInd == 2) ) {
1220 if (allJetInd == 3)
h_jet3Pt4.Fill( cal->pt() );
1221 if (allJetInd == 4)
h_jet4Pt4.Fill( cal->pt() );
1222 if (allJetInd == 5)
h_jet5Pt4.Fill( cal->pt() );
1223 if (allJetInd == 6)
h_jet6Pt4.Fill( cal->pt() );
1224 if (allJetInd == 7)
h_jet7Pt4.Fill( cal->pt() );
1227 if ( fabs(cal->eta()) < 1.3) {
1229 if ( cal->pt() > 10.) {
1233 if ( (fabs(cal->eta())> 1.3) && ( fabs(cal->eta()) < 3.) ) {
1235 if ( cal->pt() > 10.) {
1239 if ( fabs(cal->eta()) > 3.0) {
1241 if ( cal->pt() > 10.) {
1247 if ( cal->pt() > minJetPt) {
1261 LeadMass4 = (p4tmp[0]+p4tmp[1]).
mass();
1281 for( GenJetCollection::const_iterator
gen = genJets1->begin();
gen != genJets1->end(); ++
gen ) {
1283 if (allJetInd == 1) {
1284 p4tmp[0] =
gen->p4();
1286 if (allJetInd == 2) {
1287 p4tmp[1] =
gen->p4();
1290 if ( (allJetInd == 1) || (allJetInd == 2) ) {
1299 if (
gen->pt() > minJetPt) {
1311 LeadMassP1 = (p4tmp[0]+p4tmp[1]).
mass();
1343 for( GenJetCollection::const_iterator
gen = genJets2->begin();
gen != genJets2->end(); ++
gen ) {
1345 if (allJetInd == 1) {
1346 p4tmp[0] =
gen->p4();
1348 if (allJetInd == 2) {
1349 p4tmp[1] =
gen->p4();
1351 if ( (allJetInd == 1) || (allJetInd == 2) ) {
1360 if (
gen->pt() > minJetPt) {
1372 LeadMassP2 = (p4tmp[0]+p4tmp[1]).
mass();
1386 for( GenJetCollection::const_iterator
gen = genJets3->begin();
gen != genJets3->end(); ++
gen ) {
1388 if (allJetInd == 1) {
1389 p4tmp[0] =
gen->p4();
1391 if (allJetInd == 2) {
1392 p4tmp[1] =
gen->p4();
1394 if ( (allJetInd == 1) || (allJetInd == 2) ) {
1403 if (
gen->pt() > minJetPt) {
1415 LeadMassP3 = (p4tmp[0]+p4tmp[1]).
mass();
1445 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
1451 for( GenJetCollection::const_iterator
gen = genJets->begin();
1452 gen != genJets->end() && jetInd<maxJets; ++
gen ) {
1454 p4gen[jetInd] =
gen->p4();
1455 dRmin[jetInd] = 1000.0;
1460 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
1462 double delR =
deltaR( cal->eta(), cal->phi(),
gen->eta(),
gen->phi() );
1464 if ( (delR<dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
1465 dRmin[jetInd] = delR;
1466 p4cal[jetInd] = cal->p4();
1473 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1476 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1479 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1483 if (usedInd != -1) {
1487 if (p4cal[jetInd].pt() > minJetPt10)
1488 hf_PtResponse1.Fill(p4cal[jetInd].
eta(), p4cal[jetInd].pt()/p4gen[jetInd].pt());
1490 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1493 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1496 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1511 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1512 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1513 if ( (p4gen[jetInd].pt() > 20) && (p4gen[jetInd].pt() < 40) ) {
1516 if ( (p4gen[jetInd].pt() > 40) && (p4gen[jetInd].pt() < 60) ) {
1519 if ( (p4gen[jetInd].pt() > 80) && (p4gen[jetInd].pt() < 100) ) {
1522 if ( (p4gen[jetInd].pt() > 100) && (p4gen[jetInd].pt() < 120) ) {
1526 if ( (p4gen[jetInd].pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3) ) {
1528 dR1.Fill(dRmin[jetInd]);
1529 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1531 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1534 dPtFrac1.Fill(dpt/p4gen[jetInd].pt());
1536 if ( ( (dpt/p4gen[jetInd].pt()) < -0.5 ) && ( fabs(dpt) > 90. ) ) {
1538 cout <<
" deltaR min = " << dRmin[jetInd]
1539 <<
" Ind = " << jetInd <<
" / " << usedInd <<
" / " << used[nj]
1540 <<
" Del pt / frac = " << dpt
1541 <<
" / " << dpt/p4gen[jetInd].pt()
1542 <<
" cal/gen pt = " << p4cal[jetInd].pt()
1543 <<
" / " << p4gen[jetInd].pt()
1544 <<
" cal/gen eta = " << p4cal[jetInd].eta()
1545 <<
" / " << p4gen[jetInd].eta()
1546 <<
" cal/gen phi = " << p4cal[jetInd].phi()
1547 <<
" / " << p4gen[jetInd].phi()
1577 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
1578 for( GenJetCollection::const_iterator
gen = genJets->begin();
1579 gen != genJets->end() && jetInd<maxJets; ++
gen ) {
1580 p4gen[jetInd] =
gen->p4();
1581 dRmin[jetInd] = 1000.0;
1586 for( CaloJetCollection::const_iterator cal = caloJets->begin();
1587 cal != caloJets->end(); ++ cal ) {
1588 double delR =
deltaR( cal->eta(), cal->phi(),
gen->eta(),
gen->phi() );
1590 if ( (delR<dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
1591 dRmin[jetInd] = delR;
1592 p4cal[jetInd] = cal->p4();
1598 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1601 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1604 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1609 if (usedInd != -1) {
1613 if (p4cal[jetInd].pt() > minJetPt10)
1614 hf_PtResponse2.Fill(p4cal[jetInd].
eta(), p4cal[jetInd].pt()/p4gen[jetInd].pt());
1616 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1619 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1622 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1638 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1639 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1640 if ( (p4gen[jetInd].pt() > 20) && (p4gen[jetInd].pt() < 40) ) {
1643 if ( (p4gen[jetInd].pt() > 40) && (p4gen[jetInd].pt() < 60) ) {
1646 if ( (p4gen[jetInd].pt() > 80) && (p4gen[jetInd].pt() < 100) ) {
1649 if ( (p4gen[jetInd].pt() > 100) && (p4gen[jetInd].pt() < 120) ) {
1653 if ( (p4gen[jetInd].pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3) ) {
1655 dR2.Fill(dRmin[jetInd]);
1656 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1658 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1661 dPtFrac2.Fill(dpt/p4gen[jetInd].pt());
1686 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
1687 for( GenJetCollection::const_iterator
gen = genJets->begin();
1688 gen != genJets->end() && jetInd<maxJets; ++
gen ) {
1689 p4gen[jetInd] =
gen->p4();
1690 dRmin[jetInd] = 1000.0;
1695 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
1696 double delR =
deltaR( cal->eta(), cal->phi(),
gen->eta(),
gen->phi() );
1698 if ( (delR<dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
1699 dRmin[jetInd] = delR;
1700 p4cal[jetInd] = cal->p4();
1706 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1709 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1712 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1717 if (usedInd != -1) {
1720 if (p4cal[jetInd].pt() > minJetPt10)
1721 hf_PtResponse3.Fill(p4cal[jetInd].
eta(), p4cal[jetInd].pt()/p4gen[jetInd].pt());
1723 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1726 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1729 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1744 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1745 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1746 if ( (p4gen[jetInd].pt() > 20) && (p4gen[jetInd].pt() < 40) ) {
1749 if ( (p4gen[jetInd].pt() > 40) && (p4gen[jetInd].pt() < 60) ) {
1752 if ( (p4gen[jetInd].pt() > 80) && (p4gen[jetInd].pt() < 100) ) {
1755 if ( (p4gen[jetInd].pt() > 100) && (p4gen[jetInd].pt() < 120) ) {
1760 if ( (p4gen[jetInd].pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3) ) {
1762 dR3.Fill(dRmin[jetInd]);
1763 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1765 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1768 dPtFrac3.Fill(dpt/p4gen[jetInd].pt());
1788 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
1789 for( GenJetCollection::const_iterator
gen = genJets->begin();
1790 gen != genJets->end() && jetInd<maxJets; ++
gen ) {
1791 p4gen[jetInd] =
gen->p4();
1792 dRmin[jetInd] = 1000.0;
1797 for( CaloJetCollection::const_iterator cal = caloJets->begin();
1798 cal != caloJets->end(); ++ cal ) {
1799 double delR =
deltaR( cal->eta(), cal->phi(),
gen->eta(),
gen->phi() );
1801 if ( (delR<dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
1802 dRmin[jetInd] = delR;
1803 p4cal[jetInd] = cal->p4();
1809 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1812 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1815 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1820 if (usedInd != -1) {
1824 if (p4cal[jetInd].pt() > minJetPt10)
1825 hf_PtResponse4.Fill(p4cal[jetInd].
eta(), p4cal[jetInd].pt()/p4gen[jetInd].pt());
1827 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1830 if ((fabs(p4gen[jetInd].
eta()) > 1.3) && (fabs(p4gen[jetInd].
eta()) < 3.) ) {
1833 if (fabs(p4gen[jetInd].
eta()) > 3.) {
1850 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1851 if (fabs(p4gen[jetInd].
eta()) < 1.3) {
1852 if ( (p4gen[jetInd].pt() > 20) && (p4gen[jetInd].pt() < 40) ) {
1855 if ( (p4gen[jetInd].pt() > 40) && (p4gen[jetInd].pt() < 60) ) {
1858 if ( (p4gen[jetInd].pt() > 80) && (p4gen[jetInd].pt() < 100) ) {
1861 if ( (p4gen[jetInd].pt() > 100) && (p4gen[jetInd].pt() < 120) ) {
1866 if ( (p4gen[jetInd].pt() > minJetPt10) && (fabs(p4gen[jetInd].
eta()) < 1.3) ) {
1868 dR4.Fill(dRmin[jetInd]);
1869 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1871 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1874 dPtFrac4.Fill(dpt/p4gen[jetInd].pt());
1898 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
1899 for( CaloJetCollection::const_iterator cal1 = calo1Jets->begin();
1900 cal1 != calo1Jets->end() && jetInd<maxJets; ++cal1 ) {
1902 p4gen[jetInd] = cal1->p4();
1903 dRmin[jetInd] = 1000.0;
1906 for( CaloJetCollection::const_iterator cal2 = calo2Jets->begin(); cal2 != calo2Jets->end(); ++cal2 ) {
1908 double delR =
deltaR( cal1->eta(), cal1->phi(), cal2->eta(), cal2->phi() );
1909 if ( (delR<dRmin[jetInd]) && (used[nj] == 0) ) {
1910 dRmin[jetInd] = delR;
1911 p4cal[jetInd] = cal2->p4();
1918 if (p4gen[jetInd].pt() > minJetPt) {
1919 dR12.Fill(dRmin[jetInd]);
1920 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4gen[jetInd].
phi());
1922 double deta = p4cal[jetInd].eta() - p4gen[jetInd].eta();
1924 double dpt = p4cal[jetInd].pt() - p4gen[jetInd].pt();
1936 evt.
getByLabel(
"genParticleCandidates",genParticles);
1943 for (
size_t i =0;
i< genParticles->size();
i++) {
1987 p4Zp[nPart] = momentum=d1->
p4();
2002 ZpM = (p4Zp[0]+p4Zp[1]).
mass();
2028 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2029 for(
int i=0;
i<2; ++
i ) {
2031 dRmin[jetInd] = 1000.0;
2034 for( CaloJetCollection::const_iterator cal1 = calo1Jets->begin();
2035 cal1 != calo1Jets->end() && jetInd<maxJets; ++cal1 ) {
2037 double delR =
deltaR( cal1->eta(), cal1->phi(), p4Zp[
i].eta(), p4Zp[
i].phi() );
2040 if ( (delR < dRmin[jetInd]) && (used[nj] == 0) ) {
2041 dRmin[jetInd] = delR;
2042 p4cal[jetInd] = cal1->p4();
2066 if (usedInd != -1) {
2073 ZpMM = (p4cal[0]+p4cal[1]).
mass();
2076 if ((ZpMG != 0) && (EtaOk40 == 2)) {
2097 if ((ZpMG != 0) && (EtaOk10 == 2)) {
2118 if ((ZpMG != 0) && (EtaOk13 == 2)) {
2146 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2147 for(
int i=0;
i<2; ++
i ) {
2149 dRmin[jetInd] = 1000.0;
2152 for( CaloJetCollection::const_iterator cal2 = calo2Jets->begin();
2153 cal2 != calo2Jets->end() && jetInd<maxJets; ++cal2 ) {
2155 double delR =
deltaR( cal2->eta(), cal2->phi(), p4Zp[
i].eta(), p4Zp[
i].phi() );
2157 if ( (delR < dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
2158 dRmin[jetInd] = delR;
2159 p4cal[jetInd] = cal2->p4();
2178 if (usedInd != -1) {
2185 ZpMM = (p4cal[0]+p4cal[1]).
mass();
2195 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2196 for(
int i=0;
i<2; ++
i ) {
2198 dRmin[jetInd] = 1000.0;
2201 for( CaloJetCollection::const_iterator cal3 = calo3Jets->begin();
2202 cal3 != calo3Jets->end() && jetInd<maxJets; ++cal3 ) {
2204 double delR =
deltaR( cal3->eta(), cal3->phi(), p4Zp[
i].eta(), p4Zp[
i].phi() );
2206 if ( (delR < dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
2207 dRmin[jetInd] = delR;
2208 p4cal[jetInd] = cal3->p4();
2228 if (usedInd != -1) {
2235 ZpMM = (p4cal[0]+p4cal[1]).
mass();
2240 cout <<
"Z' (3): nPart = " << nPart << endl;
2255 for (
size_t i =0;
i< genParticles->size();
i++) {
2264 cout <<
"TOP: id = " <<
id <<
" mass = " << p.
mass() << endl;
2279 p4par[nJet++] = momentum=d1->
p4();
2281 cout <<
"Daughter1: id = " << d1->
pdgId()
2284 <<
" Momentum " << momentum <<
" GeV/c"
2289 p4part[0] = momentum=d1->
p4();
2290 cout <<
">>> part0 = " << p4part[0] << endl;
2293 p4part[3] = momentum=d1->
p4();
2294 cout <<
">>> part3 = " << p4part[3] << endl;
2313 p4par[nJet++] = momentum=d2->
p4();
2316 p4part[ii] = momentum=d2->
p4();
2317 cout <<
">>> part" << ii <<
" = " << p4part[ii] << endl;
2321 p4part[
jj] = momentum=d2->
p4();
2322 cout <<
">>> part" << jj <<
" = " << p4part[
jj] << endl;
2326 cout <<
"Daughter2: id = " << d2->
pdgId()
2329 <<
" Momentum " << momentum <<
" GeV/c"
2346 double tmass = (p4part[0]+p4part[1]+p4part[2]).
mass();
2347 double tbarmass = (p4part[3]+p4part[4]+p4part[5]).
mass();
2352 cout <<
">>> T Mass = " << tmass <<
" / " << tbarmass << endl;
2354 double mindR = 1000.;
2355 for(
size_t i=0;
i<6; ++
i ) {
2356 for(
size_t j=0;
j<6; ++
j ) {
2359 if (delR < mindR) mindR = delR;
2370 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2371 for(
int i=0;
i<6; ++
i ) {
2373 dRmin[jetInd] = 1000.0;
2376 for( CaloJetCollection::const_iterator cal1 = calo1Jets->begin();
2377 cal1 != calo1Jets->end() && jetInd<maxJets; ++cal1 ) {
2379 double delR =
deltaR( cal1->eta(), cal1->phi(), p4par[
i].eta(), p4par[
i].phi() );
2381 if ( (delR < dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
2382 dRmin[jetInd] = delR;
2383 p4cal[jetInd] = cal1->p4();
2405 if (usedInd != -1) {
2408 dRPar1.Fill(dRmin[jetInd]);
2409 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2411 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2413 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2435 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2436 for(
int i=0;
i<6; ++
i ) {
2438 dRmin[jetInd] = 1000.0;
2441 for( CaloJetCollection::const_iterator cal2 = calo2Jets->begin();
2442 cal2 != calo2Jets->end() && jetInd<maxJets; ++cal2 ) {
2444 double delR =
deltaR( cal2->eta(), cal2->phi(), p4par[
i].eta(), p4par[
i].phi() );
2446 if ( (delR < dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
2447 dRmin[jetInd] = delR;
2448 p4cal[jetInd] = cal2->p4();
2464 if (usedInd != -1) {
2467 dRPar2.Fill(dRmin[jetInd]);
2468 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2470 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2472 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2497 for(
int i=0;
i<maxJets; ++
i ) used[
i] = 0;
2498 for(
int i=0;
i<6; ++
i ) {
2500 dRmin[jetInd] = 1000.0;
2503 for( CaloJetCollection::const_iterator cal3 = calo3Jets->begin();
2504 cal3 != calo3Jets->end() && jetInd<maxJets; ++cal3 ) {
2506 double delR =
deltaR( cal3->eta(), cal3->phi(), p4par[
i].eta(), p4par[
i].phi() );
2508 if ( (delR < dRmin[jetInd]) && (delR < matchedDelR) && (used[nj] == 0) ) {
2509 dRmin[jetInd] = delR;
2510 p4cal[jetInd] = cal3->p4();
2525 if (usedInd != -1) {
2528 dRPar3.Fill(dRmin[jetInd]);
2529 double dphi =
deltaPhi(p4cal[jetInd].
phi(), p4par[genInd].
phi());
2531 double deta = p4cal[jetInd].eta() - p4par[genInd].eta();
2533 double dpt = p4cal[jetInd].pt() - p4par[genInd].pt();
2553 int nTow1, nTow2, nTow3, nTow4;
2566 for ( CaloJetCollection::const_iterator ijet=jets->begin(); ijet!=jets->end(); ijet++) {
2569 float hadEne = ijet->hadEnergyInHB() + ijet->hadEnergyInHO() +
2570 ijet->hadEnergyInHE() + ijet->hadEnergyInHF();
2571 float emEne = ijet->emEnergyInEB() + ijet->emEnergyInEE() + ijet->emEnergyInHF();
2572 float had = ijet->energyFractionHadronic();
2574 float j_et = ijet->et();
2576 if (fabs(ijet->eta()) < 1.3) {
2585 if (ijet->pt() > minJetPt10)
2588 if ((fabs(ijet->eta()) > 1.3) && (fabs(ijet->eta()) < 3.) ) {
2598 if (ijet->pt() > minJetPt10)
2601 if (fabs(ijet->eta()) > 3.) {
2611 if (ijet->pt() > minJetPt10)
2626 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2627 int nConstituents = jetCaloRefs.size();
2631 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2632 for (
int i = 0;
i <nConstituents ;
i++){
2634 float et = jetCaloRefs[
i]->et();
2636 if (et > 0.5) nTow1++;
2637 if (et > 1.0) nTow2++;
2638 if (et > 1.5) nTow3++;
2639 if (et > 2.0) nTow4++;
2652 if ( (jjet == 1) && (fabs(ijet->eta()) < 1.3) ) {
2655 for (
int i = 0;
i <nConstituents ;
i++){
2656 float t_et = jetCaloRefs[
i]->et();
2657 double delR =
deltaR( ijet->eta(), ijet->phi(), jetCaloRefs[
i]->eta(), jetCaloRefs[
i]->phi() );
2667 if ( (jjet == 2) && (fabs(ijet->eta()) < 1.3) ) {
2681 double SumEtNotJets(0);
2682 double SumEtJets(0);
2683 double SumEtTowers(0);
2688 double sumTowerAllPx(0);
2689 double sumTowerAllPy(0);
2691 double sumTowerAllEx(0);
2692 double sumTowerAllEy(0);
2694 std::vector<CaloTowerPtr> UsedTowerList;
2695 std::vector<CaloTower> TowerUsedInJets;
2696 std::vector<CaloTower> TowerNotUsedInJets;
2707 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2709 double sum_et = 0.0;
2710 double sum_ex = 0.0;
2711 double sum_ey = 0.0;
2716 tower != caloTowers->end(); tower++) {
2718 Double_t et = tower->et();
2720 if (et > 0.5) nTow1++;
2721 if (et > 1.0) nTow2++;
2722 if (et > 1.5) nTow3++;
2723 if (et > 2.0) nTow4++;
2728 double phix = tower->phi();
2733 double et = tower->et();
2737 sum_ex += et*
cos(phix);
2738 sum_ey += et*
sin(phix);
2741 Double_t
phi = tower->phi();
2742 SumEtTowers += tower->et();
2744 sumTowerAllEx += et*
cos(phi);
2745 sumTowerAllEy += et*
sin(phi);
2755 MET1.Fill(
sqrt( sum_ex*sum_ex + sum_ey*sum_ey));
2756 MET12.Fill(
sqrt( sum_ex*sum_ex + sum_ey*sum_ey));
2757 MET13.Fill(
sqrt( sum_ex*sum_ex + sum_ey*sum_ey));
2780 UsedTowerList.clear();
2781 TowerUsedInJets.clear();
2782 TowerNotUsedInJets.clear();
2786 for ( CaloJetCollection::const_iterator ijet=jets->begin(); ijet!=jets->end(); ijet++) {
2788 Double_t
jetPt = ijet->pt();
2789 Double_t
jetPhi = ijet->phi();
2793 Double_t jetPx = jetPt*
cos(jetPhi);
2794 Double_t jetPy = jetPt*
sin(jetPhi);
2799 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2800 int nConstituents = jetCaloRefs.size();
2801 for (
int i = 0;
i <nConstituents ;
i++){
2802 UsedTowerList.push_back(jetCaloRefs[
i]);
2811 int NTowersUsed = UsedTowerList.size();
2815 tower != caloTowers->end(); tower++) {
2818 Double_t et = tower->et();
2822 Double_t
phi = tower->phi();
2823 SumEtTowers += tower->et();
2825 sumTowerAllPx += et*
cos(phi);
2826 sumTowerAllPy += et*
sin(phi);
2830 for(
int i=0;
i<NTowersUsed;
i++){
2831 if(tower->id() == UsedTowerList[
i]->id()){
2838 TowerUsedInJets.push_back(t);
2840 TowerNotUsedInJets.push_back(t);
2847 int nUsed = TowerUsedInJets.size();
2848 int nNotUsed = TowerNotUsedInJets.size();
2853 for(
int i=0;
i<nUsed;
i++){
2854 SumEtJets += TowerUsedInJets[
i].et();
2858 for(
int i=0;
i<nNotUsed;
i++){
2859 if (TowerNotUsedInJets[
i].et() > 0.5)
2860 SumEtNotJets += TowerNotUsedInJets[
i].et();
2871 UsedTowerList.clear();
2872 TowerUsedInJets.clear();
2873 TowerNotUsedInJets.clear();
2877 for ( CaloJetCollection::const_iterator ijet=jets->begin(); ijet!=jets->end(); ijet++) {
2879 Double_t
jetPt = ijet->pt();
2880 Double_t
jetPhi = ijet->phi();
2884 Double_t jetPx = jetPt*
cos(jetPhi);
2885 Double_t jetPy = jetPt*
sin(jetPhi);
2890 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2891 int nConstituents = jetCaloRefs.size();
2892 for (
int i = 0;
i <nConstituents ;
i++){
2893 UsedTowerList.push_back(jetCaloRefs[
i]);
2905 NTowersUsed = UsedTowerList.size();
2909 tower != caloTowers->end(); tower++) {
2912 Double_t et = tower->et();
2916 Double_t
phi = tower->phi();
2918 SumEtTowers += tower->et();
2920 sumTowerAllPx += et*
cos(phi);
2921 sumTowerAllPy += et*
sin(phi);
2925 for(
int i=0;
i<NTowersUsed;
i++){
2926 if(tower->id() == UsedTowerList[
i]->id()){
2933 TowerUsedInJets.push_back(t);
2935 TowerNotUsedInJets.push_back(t);
2942 nUsed = TowerUsedInJets.size();
2943 nNotUsed = TowerNotUsedInJets.size();
2948 for(
int i=0;
i<nUsed;
i++){
2949 SumEtJets += TowerUsedInJets[
i].et();
2953 for(
int i=0;
i<nNotUsed;
i++){
2954 if (TowerNotUsedInJets[
i].et() > 0.5)
2955 SumEtNotJets += TowerNotUsedInJets[
i].et();
2965 UsedTowerList.clear();
2966 TowerUsedInJets.clear();
2967 TowerNotUsedInJets.clear();
2971 for ( CaloJetCollection::const_iterator ijet=jets->begin(); ijet!=jets->end(); ijet++) {
2973 Double_t
jetPt = ijet->pt();
2974 Double_t
jetPhi = ijet->phi();
2978 Double_t jetPx = jetPt*
cos(jetPhi);
2979 Double_t jetPy = jetPt*
sin(jetPhi);
2984 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2985 int nConstituents = jetCaloRefs.size();
2986 for (
int i = 0;
i <nConstituents ;
i++){
2987 UsedTowerList.push_back(jetCaloRefs[
i]);
2999 NTowersUsed = UsedTowerList.size();
3003 tower != caloTowers->end(); tower++) {
3006 Double_t et = tower->et();
3018 for(
int i=0;
i<NTowersUsed;
i++){
3019 if(tower->id() == UsedTowerList[
i]->id()){
3026 TowerUsedInJets.push_back(t);
3028 TowerNotUsedInJets.push_back(t);
3035 nUsed = TowerUsedInJets.size();
3036 nNotUsed = TowerNotUsedInJets.size();
3041 for(
int i=0;
i<nUsed;
i++){
3042 SumEtJets += TowerUsedInJets[
i].et();
3046 for(
int i=0;
i<nNotUsed;
i++){
3047 if (TowerNotUsedInJets[
i].et() > 0.5)
3048 SumEtNotJets += TowerNotUsedInJets[
i].et();
std::string GenJetAlgorithm3
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
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)
virtual double mass() const =0
mass
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)
void analyze(const edm::Event &, const edm::EventSetup &)
TH1F dijetMassCor_700_131
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double deltaR(double eta1, double eta2, double phi1, double phi2)
virtual int pdgId() const =0
PDG identifier.
TH1F dijetMassCor_5000_401
std::string GenJetAlgorithm4
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
std::string CaloJetAlgorithm2
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector