125 CaloJetAlgorithm( cfg.getParameter<
string>(
"CaloJetAlgorithm" ) ),
126 GenJetAlgorithm( cfg.getParameter<
string>(
"GenJetAlgorithm" ) ),
127 hcalNoiseSummaryTag_(cfg.getParameter<edm::
InputTag>(
"hcalNoiseSummaryTag"))
143 h_pt = fs->
make<TH1F>(
"pt",
"Jet p_{T}", 100, 0, 50 );
144 h_ptRBX = fs->
make<TH1F>(
"ptRBX",
"RBX: Jet p_{T}", 100, 0, 50 );
145 h_ptHPD = fs->
make<TH1F>(
"ptHPD",
"HPD: Jet p_{T}", 100, 0, 50 );
146 h_ptTower = fs->
make<TH1F>(
"ptTower",
"Jet p_{T}", 100, 0, 50 );
147 h_et = fs->
make<TH1F>(
"et",
"Jet E_{T}", 100, 0, 50 );
148 h_eta = fs->
make<TH1F>(
"eta",
"Jet #eta", 100, -5, 5 );
152 hitEtaEt = fs->
make<TH1F>(
"hitEtaEt",
"RecHit #eta", 90, -45, 45 );
153 hitEta = fs->
make<TH1F>(
"hitEta",
"RecHit #eta", 90, -45, 45 );
154 hitPhi = fs->
make<TH1F>(
"hitPhi",
"RecHit #phi", 73, 0, 73 );
156 caloEtaEt = fs->
make<TH1F>(
"caloEtaEt",
"CaloTower #eta", 100, -4, 4 );
157 caloEta = fs->
make<TH1F>(
"caloEta",
"CaloTower #eta", 100, -4, 4 );
160 dijetMass = fs->
make<TH1F>(
"dijetMass",
"DiJet Mass",100,0,100);
174 hadFracEta1 = fs->
make<TH1F>(
"hadFracEta11",
"Hadronic Fraction Eta1 Jet 1",100,0,1);
175 hadFracEta2 = fs->
make<TH1F>(
"hadFracEta21",
"Hadronic Fraction Eta2 Jet 1",100,0,1);
176 hadFracEta3 = fs->
make<TH1F>(
"hadFracEta31",
"Hadronic Fraction Eta3 Jet 1",100,0,1);
178 HFSumEt = fs->
make<TH1F>(
"HFSumEt",
"HFSumEt",100,0,100);
179 HFMET = fs->
make<TH1F>(
"HFMET",
"HFMET",120,0,120);
181 SumEt = fs->
make<TH1F>(
"SumEt",
"SumEt",100,0,100);
182 MET = fs->
make<TH1F>(
"MET",
"MET",120,0,120);
183 OERMET = fs->
make<TH1F>(
"OERMET",
"OERMET",120,0,120);
184 METSig = fs->
make<TH1F>(
"METSig",
"METSig",100,0,50);
185 MEx = fs->
make<TH1F>(
"MEx",
"MEx",100,-20,20);
186 MEy = fs->
make<TH1F>(
"MEy",
"MEy",100,-20,20);
187 METPhi = fs->
make<TH1F>(
"METPhi",
"METPhi",315,0,3.15);
188 MET_RBX = fs->
make<TH1F>(
"MET_RBX",
"MET",100,0,1000);
189 MET_HPD = fs->
make<TH1F>(
"MET_HPD",
"MET",100,0,1000);
192 SiClusters = fs->
make<TH1F>(
"SiClusters",
"SiClusters",150,0,1500);
194 h_Vx = fs->
make<TH1F>(
"Vx",
"Vx",100,-0.5,0.5);
195 h_Vy = fs->
make<TH1F>(
"Vy",
"Vy",100,-0.5,0.5);
196 h_Vz = fs->
make<TH1F>(
"Vz",
"Vz",100,-20,20);
207 ETime = fs->
make<TH1F>(
"ETime",
"Ecal Time",200,-200,200);
208 HTime = fs->
make<TH1F>(
"HTime",
"Hcal Time",200,-200,200);
210 towerHadEnHB = fs->
make<TH1F>(
"towerHadEnHB" ,
"HB: Calo Tower HAD Energy",210,-1,20);
211 towerHadEnHE = fs->
make<TH1F>(
"towerHadEnHE" ,
"HE: Calo Tower HAD Energy",510,-1,50);
212 towerHadEnHF = fs->
make<TH1F>(
"towerHadEnHF" ,
"HF: Calo Tower HAD Energy",510,-1,50);
214 towerEmEnHB = fs->
make<TH1F>(
"towerEmEnHB" ,
"HB: Calo Tower EM Energy",210,-1,20);
215 towerEmEnHE = fs->
make<TH1F>(
"towerEmEnHE" ,
"HE: Calo Tower EM Energy",510,-1,50);
216 towerEmEnHF = fs->
make<TH1F>(
"towerEmEnHF" ,
"HF: Calo Tower EM Energy",510,-1,50);
218 towerHadEn = fs->
make<TH1F>(
"towerHadEn" ,
"Hadronic Energy in Calo Tower",2000,-100,100);
219 towerEmEn = fs->
make<TH1F>(
"towerEmEn" ,
"EM Energy in Calo Tower",2000,-100,100);
220 towerOuterEn = fs->
make<TH1F>(
"towerOuterEn" ,
"HO Energy in Calo Tower",2000,-100,100);
222 towerEmFrac = fs->
make<TH1F>(
"towerEmFrac",
"EM Fraction of Energy in Calo Tower",100,-1.,1.);
224 RBX_et = fs->
make<TH1F>(
"RBX_et",
"ET in RBX",1000,-20,100);
225 RBX_hadEnergy = fs->
make<TH1F>(
"RBX_hadEnergy",
"Hcal Energy in RBX",1000,-20,100);
226 RBX_hcalTime = fs->
make<TH1F>(
"RBX_hcalTime",
"Hcal Time in RBX",200,-200,200);
227 RBX_nTowers = fs->
make<TH1F>(
"RBX_nTowers",
"Number of Towers in RBX",75,0,75);
228 RBX_N = fs->
make<TH1F>(
"RBX_N",
"Number of RBX",10,0,10);
230 HPD_et = fs->
make<TH1F>(
"HPD_et",
"ET in HPD",1000,-20,100);
231 HPD_hadEnergy = fs->
make<TH1F>(
"HPD_hadEnergy",
"Hcal Energy in HPD",1000,-20,100);
232 HPD_hcalTime = fs->
make<TH1F>(
"HPD_hcalTime",
"Hcal Time in HPD",200,-200,200);
233 HPD_nTowers = fs->
make<TH1F>(
"HPD_nTowers",
"Number of Towers in HPD",20,0,20);
234 HPD_N = fs->
make<TH1F>(
"HPD_N",
"Number of HPD",10,0,10);
236 nTowers1 = fs->
make<TH1F>(
"nTowers1",
"Number of Towers pt 0.5",100,0,200);
237 nTowers2 = fs->
make<TH1F>(
"nTowers2",
"Number of Towers pt 1.0",100,0,200);
238 nTowers3 = fs->
make<TH1F>(
"nTowers3",
"Number of Towers pt 1.5",100,0,200);
239 nTowers4 = fs->
make<TH1F>(
"nTowers4",
"Number of Towers pt 2.0",100,0,200);
241 nTowersLeadJetPt1 = fs->
make<TH1F>(
"nTowersLeadJetPt1",
"Number of Towers in Lead Jet pt 0.5",100,0,100);
242 nTowersLeadJetPt2 = fs->
make<TH1F>(
"nTowersLeadJetPt2",
"Number of Towers in Lead Jet pt 1.0",100,0,100);
243 nTowersLeadJetPt3 = fs->
make<TH1F>(
"nTowersLeadJetPt3",
"Number of Towers in Lead Jet pt 1.5",100,0,100);
244 nTowersLeadJetPt4 = fs->
make<TH1F>(
"nTowersLeadJetPt4",
"Number of Towers in Lead Jet pt 2.0",100,0,100);
246 h_nCalJets = fs->
make<TH1F>(
"nCalJets",
"Number of CalJets", 20, 0, 20 );
248 HBEneOOT = fs->
make<TH1F>(
"HBEneOOT",
"HBEneOOT", 200, -5, 10 );
249 HEEneOOT = fs->
make<TH1F>(
"HEEneOOT",
"HEEneOOT", 200, -5, 10 );
250 HFEneOOT = fs->
make<TH1F>(
"HFEneOOT",
"HFEneOOT", 200, -5, 10 );
251 HOEneOOT = fs->
make<TH1F>(
"HOEneOOT",
"HOEneOOT", 200, -5, 10 );
253 HBEneOOTTh = fs->
make<TH1F>(
"HBEneOOTTh",
"HBEneOOTTh", 200, -5, 10 );
254 HEEneOOTTh = fs->
make<TH1F>(
"HEEneOOTTh",
"HEEneOOTTh", 200, -5, 10 );
255 HFEneOOTTh = fs->
make<TH1F>(
"HFEneOOTTh",
"HFEneOOTTh", 200, -5, 10 );
256 HOEneOOTTh = fs->
make<TH1F>(
"HOEneOOTTh",
"HOEneOOTTh", 200, -5, 10 );
258 HBEneOOTTh1 = fs->
make<TH1F>(
"HBEneOOTTh1",
"HBEneOOT", 200, -5, 10 );
259 HEEneOOTTh1 = fs->
make<TH1F>(
"HEEneOOTTh1",
"HEEneOOT", 200, -5, 10 );
260 HFEneOOTTh1 = fs->
make<TH1F>(
"HFEneOOTTh1",
"HFEneOOT", 200, -5, 10 );
261 HOEneOOTTh1 = fs->
make<TH1F>(
"HOEneOOTTh1",
"HOEneOOT", 200, -5, 10 );
263 HBEneTThr = fs->
make<TH1F>(
"HBEneTThr",
"HBEneTThr", 105, -5, 100 );
264 HEEneTThr = fs->
make<TH1F>(
"HEEneTThr",
"HEEneTThr", 105, -5, 100 );
265 HFEneTThr = fs->
make<TH1F>(
"HFEneTThr",
"HFEneTThr", 105, -5, 100 );
268 HBEne = fs->
make<TH1F>(
"HBEne",
"HBEne", 205, -5, 200 );
269 HBEneTh = fs->
make<TH1F>(
"HBEneTh",
"HBEneTh", 205, -5, 200 );
270 HBEneTh1 = fs->
make<TH1F>(
"HBEneTh1",
"HBEneTh1", 205, -5, 200 );
271 HBEneX = fs->
make<TH1F>(
"HBEneX",
"HBEneX", 200, -5, 10 );
272 HBEneY = fs->
make<TH1F>(
"HBEneY",
"HBEnedY", 200, -5, 10 );
273 HBTime = fs->
make<TH1F>(
"HBTime",
"HBTime", 200, -100, 100 );
274 HBTimeTh = fs->
make<TH1F>(
"HBTimeTh",
"HBTimeTh", 200, -100, 100 );
275 HBTimeTh1 = fs->
make<TH1F>(
"HBTimeTh1",
"HBTimeTh1", 200, -100, 100 );
276 HBTimeTh2 = fs->
make<TH1F>(
"HBTimeTh2",
"HBTimeTh2", 200, -100, 100 );
277 HBTimeTh3 = fs->
make<TH1F>(
"HBTimeTh3",
"HBTimeTh3", 200, -100, 100 );
278 HBTimeThR = fs->
make<TH1F>(
"HBTimeThR",
"HBTimeThR", 200, -100, 100 );
279 HBTimeTh1R = fs->
make<TH1F>(
"HBTimeTh1R",
"HBTimeTh1R", 200, -100, 100 );
280 HBTimeTh2R = fs->
make<TH1F>(
"HBTimeTh2R",
"HBTimeTh2R", 200, -100, 100 );
281 HBTimeTh3R = fs->
make<TH1F>(
"HBTimeTh3R",
"HBTimeTh3R", 200, -100, 100 );
283 HBTimeFlagged = fs->
make<TH1F>(
"HBTimeFlagged",
"HBTimeFlagged", 200, -100, 100 );
288 HBTimeFlagged2 = fs->
make<TH1F>(
"HBTimeFlagged2",
"HBTimeFlagged2", 200, -100, 100 );
293 HBTimeX = fs->
make<TH1F>(
"HBTimeX",
"HBTimeX", 200, -100, 100 );
294 HBTimeY = fs->
make<TH1F>(
"HBTimeY",
"HBTimeY", 200, -100, 100 );
295 HEEne = fs->
make<TH1F>(
"HEEne",
"HEEne", 205, -5, 200 );
296 HEEneTh = fs->
make<TH1F>(
"HEEneTh",
"HEEneTh", 205, -5, 200 );
297 HEEneTh1 = fs->
make<TH1F>(
"HEEneTh1",
"HEEneTh1", 205, -5, 200 );
298 HEEneX = fs->
make<TH1F>(
"HEEneX",
"HEEneX", 200, -5, 10 );
299 HEEneY = fs->
make<TH1F>(
"HEEneY",
"HEEneY", 200, -5, 10 );
300 HEposEne = fs->
make<TH1F>(
"HEposEne",
"HEposEne", 200, -5, 10 );
301 HEnegEne = fs->
make<TH1F>(
"HEnegEne",
"HEnegEne", 200, -5, 10 );
302 HETime = fs->
make<TH1F>(
"HETime",
"HETime", 200, -100, 100 );
303 HETimeTh = fs->
make<TH1F>(
"HETimeTh",
"HETimeTh", 200, -100, 100 );
304 HETimeTh1 = fs->
make<TH1F>(
"HETimeTh1",
"HETimeTh1", 200, -100, 100 );
305 HETimeTh2 = fs->
make<TH1F>(
"HETimeTh2",
"HETimeTh2", 200, -100, 100 );
306 HETimeTh3 = fs->
make<TH1F>(
"HETimeTh3",
"HETimeTh3", 200, -100, 100 );
307 HETimeThR = fs->
make<TH1F>(
"HETimeThR",
"HETimeThR", 200, -100, 100 );
308 HETimeTh1R = fs->
make<TH1F>(
"HETimeTh1R",
"HETimeTh1R", 200, -100, 100 );
309 HETimeTh2R = fs->
make<TH1F>(
"HETimeTh2R",
"HETimeTh2R", 200, -100, 100 );
310 HETimeTh3R = fs->
make<TH1F>(
"HETimeTh3R",
"HETimeTh3R", 200, -100, 100 );
312 HETimeFlagged = fs->
make<TH1F>(
"HETimeFlagged",
"HETimeFlagged", 200, -100, 100 );
317 HETimeFlagged2 = fs->
make<TH1F>(
"HETimeFlagged2",
"HETimeFlagged2", 200, -100, 100 );
322 HETimeX = fs->
make<TH1F>(
"HETimeX",
"HETimeX", 200, -100, 100 );
323 HETimeY = fs->
make<TH1F>(
"HETimeY",
"HETimeY", 200, -100, 100 );
324 HEposTime = fs->
make<TH1F>(
"HEposTime",
"HEposTime", 200, -100, 100 );
325 HEnegTime = fs->
make<TH1F>(
"HEnegTime",
"HEnegTime", 200, -100, 100 );
326 HOEne = fs->
make<TH1F>(
"HOEne",
"HOEne", 200, -5, 10 );
327 HOEneTh = fs->
make<TH1F>(
"HOEneTh",
"HOEneTh", 200, -5, 10 );
328 HOEneTh1 = fs->
make<TH1F>(
"HOEneTh1",
"HOEneTh1", 200, -5, 10 );
329 HOTime = fs->
make<TH1F>(
"HOTime",
"HOTime", 200, -100, 100 );
330 HOTimeTh = fs->
make<TH1F>(
"HOTimeTh",
"HOTimeTh", 200, -100, 100 );
333 HOSEne = fs->
make<TH1F>(
"HOSEne",
"HOSEne", 12000, -20, 100 );
334 HOSTime = fs->
make<TH1F>(
"HOSTime",
"HOSTime", 200, -100, 100 );
335 HOHEne = fs->
make<TH1F>(
"HOHEne",
"HOHEne", 12000, -20, 100 );
336 HOHTime = fs->
make<TH1F>(
"HOHTime",
"HOHTime", 200, -100, 100 );
338 HOHr0Ene = fs->
make<TH1F>(
"HOHr0Ene" ,
"HOHr0Ene", 12000, -20 , 100 );
339 HOHr0Time = fs->
make<TH1F>(
"HOHr0Time" ,
"HOHr0Time", 200, -200, 200 );
340 HOHrm1Ene = fs->
make<TH1F>(
"HOHrm1Ene" ,
"HOHrm1Ene", 12000, -20 , 100 );
341 HOHrm1Time = fs->
make<TH1F>(
"HOHrm1Time",
"HOHrm1Time", 200, -200, 200 );
342 HOHrm2Ene = fs->
make<TH1F>(
"HOHrm2Ene" ,
"HOHrm2Ene", 12000, -20 , 100 );
343 HOHrm2Time = fs->
make<TH1F>(
"HOHrm2Time",
"HOHrm2Time", 200, -200, 200 );
344 HOHrp1Ene = fs->
make<TH1F>(
"HOHrp1Ene" ,
"HOHrp1Ene", 12000, -20 , 100 );
345 HOHrp1Time = fs->
make<TH1F>(
"HOHrp1Time",
"HOHrp1Time", 200, -200, 200 );
346 HOHrp2Ene = fs->
make<TH1F>(
"HOHrp2Ene" ,
"HOHrp2Ene", 12000, -20 , 100 );
347 HOHrp2Time = fs->
make<TH1F>(
"HOHrp2Time",
"HOHrp2Time", 200, -200, 200 );
349 HBTvsE = fs->
make<TH2F>(
"HBTvsE",
"HBTvsE",305, -5, 300, 100, -100, 100);
350 HETvsE = fs->
make<TH2F>(
"HETvsE",
"HETvsE",305, -5, 300, 100, -100, 100);
352 HFTvsE = fs->
make<TH2F>(
"HFTvsE",
"HFTvsE",305, -5, 300, 100, -100, 100);
353 HFTvsEFlagged = fs->
make<TH2F>(
"HFTvsEFlagged",
"HFTvsEFlagged",305, -5, 300, 100, -100, 100);
354 HFTvsEFlagged2 = fs->
make<TH2F>(
"HFTvsEFlagged2",
"HFTvsEFlagged2",305, -5, 300, 100, -100, 100);
356 HFTvsEThr = fs->
make<TH2F>(
"HFTvsEThr",
"HFTvsEThr",305, -5, 300, 100, -100, 100);
357 HFTvsEFlaggedThr = fs->
make<TH2F>(
"HFTvsEFlaggedThr",
"HFTvsEFlaggedThr",305, -5, 300, 100, -100, 100);
358 HFTvsEFlagged2Thr = fs->
make<TH2F>(
"HFTvsEFlagged2Thr",
"HFTvsEFlagged2Thr",305, -5, 300, 100, -100, 100);
360 HOTvsE = fs->
make<TH2F>(
"HOTvsE",
"HOTvsE",305, -5, 300, 100, -100, 100);
362 HFvsZ = fs->
make<TH2F>(
"HFvsZ",
"HFvsZ",100,-50,50,100,-50,50);
366 HOocc = fs->
make<TH2F>(
"HOocc",
"HOocc",85,-42.5,42.5,70,0.5,70.5);
367 HBocc = fs->
make<TH2F>(
"HBocc",
"HBocc",85,-42.5,42.5,70,0.5,70.5);
368 HEocc = fs->
make<TH2F>(
"HEocc",
"HEocc",85,-42.5,42.5,70,0.5,70.5);
369 HFocc = fs->
make<TH2F>(
"HFocc",
"HFocc",85,-42.5,42.5,70,0.5,70.5);
370 HFoccTime = fs->
make<TH2F>(
"HFoccTime",
"HFoccTime",85,-42.5,42.5,70,0.5,70.5);
371 HFoccFlagged = fs->
make<TH2F>(
"HFoccFlagged",
"HFoccFlagged",85,-42.5,42.5,70,0.5,70.5);
372 HFoccFlagged2 = fs->
make<TH2F>(
"HFoccFlagged2",
"HFoccFlagged2",85,-42.5,42.5,70,0.5,70.5);
374 HFEtaPhiNFlagged = fs->
make<TH2F>(
"HFEtaPhiNFlagged",
"HFEtaPhiNFlagged",85,-42.5,42.5,70,0.5,70.5);
377 HFEtaFlagged = fs->
make<TH1F>(
"HFEtaFlagged",
"HFEtaFlagged",85,-42.5,42.5);
383 HFEtaNFlagged = fs->
make<TProfile>(
"HFEtaNFlagged",
"HFEtaNFlagged",85,-42.5,42.5,0, 10000);
385 HOoccOOT = fs->
make<TH2F>(
"HOoccOOT",
"HOoccOOT",85,-42.5,42.5,70,0.5,70.5);
386 HBoccOOT = fs->
make<TH2F>(
"HBoccOOT",
"HBoccOOT",85,-42.5,42.5,70,0.5,70.5);
387 HEoccOOT = fs->
make<TH2F>(
"HEoccOOT",
"HEoccOOT",85,-42.5,42.5,70,0.5,70.5);
388 HFoccOOT = fs->
make<TH2F>(
"HFoccOOT",
"HFoccOOT",85,-42.5,42.5,70,0.5,70.5);
390 HFEnePMT0 = fs->
make<TH1F>(
"HFEnePMT0",
"HFEnePMT0", 210, -10, 200 );
391 HFEnePMT1 = fs->
make<TH1F>(
"HFEnePMT1",
"HFEnePMT1", 210, -10, 200 );
392 HFEnePMT2 = fs->
make<TH1F>(
"HFEnePMT2",
"HFEnePMT2", 210, -10, 200 );
393 HFTimePMT0 = fs->
make<TH1F>(
"HFTimePMT0",
"HFTimePMT0", 200, -100, 100 );
394 HFTimePMT1 = fs->
make<TH1F>(
"HFTimePMT1",
"HFTimePMT1", 200, -100, 100 );
395 HFTimePMT2 = fs->
make<TH1F>(
"HFTimePMT2",
"HFTimePMT2", 200, -100, 100 );
397 HFEne = fs->
make<TH1F>(
"HFEne",
"HFEne", 210, -10, 200 );
398 HFEneFlagged = fs->
make<TH1F>(
"HFEneFlagged",
"HFEneFlagged", 210, -10, 200 );
399 HFEneFlagged2 = fs->
make<TH1F>(
"HFEneFlagged2",
"HFEneFlagged2", 210, -10, 200 );
400 HFEneTh = fs->
make<TH1F>(
"HFEneTh",
"HFEneTh", 210, -10, 200 );
401 HFEneTh1 = fs->
make<TH1F>(
"HFEneTh1",
"HFEneTh1", 210, -10, 200 );
402 HFEneP = fs->
make<TH1F>(
"HFEneP",
"HFEneP", 200, -5, 10 );
403 HFEneM = fs->
make<TH1F>(
"HFEneM",
"HFEneM", 200, -5, 10 );
404 HFTime = fs->
make<TH1F>(
"HFTime",
"HFTime", 200, -100, 100 );
405 PMTHits = fs->
make<TH1F>(
"PMTHits",
"PMTHits", 10, 0, 10 );
406 HFTimeFlagged = fs->
make<TH1F>(
"HFTimeFlagged",
"HFTimeFlagged", 200, -100, 100 );
408 HFTimeFlagged2 = fs->
make<TH1F>(
"HFTimeFlagged2",
"HFTimeFlagged2", 200, -100, 100 );
414 HFTimeFlagged3 = fs->
make<TH1F>(
"HFTimeFlagged3",
"HFTimeFlagged3", 200, -100, 100 );
436 HFTimeTh = fs->
make<TH1F>(
"HFTimeTh",
"HFTimeTh", 200, -100, 100 );
437 HFTimeTh1 = fs->
make<TH1F>(
"HFTimeTh1",
"HFTimeTh1", 200, -100, 100 );
438 HFTimeTh2 = fs->
make<TH1F>(
"HFTimeTh2",
"HFTimeTh2", 200, -100, 100 );
439 HFTimeTh3 = fs->
make<TH1F>(
"HFTimeTh3",
"HFTimeTh3", 200, -100, 100 );
440 HFTimeThR = fs->
make<TH1F>(
"HFTimeThR",
"HFTimeThR", 200, -100, 100 );
441 HFTimeTh1R = fs->
make<TH1F>(
"HFTimeTh1R",
"HFTimeTh1R", 200, -100, 100 );
442 HFTimeTh2R = fs->
make<TH1F>(
"HFTimeTh2R",
"HFTimeTh2R", 200, -100, 100 );
443 HFTimeTh3R = fs->
make<TH1F>(
"HFTimeTh3R",
"HFTimeTh3R", 200, -100, 100 );
444 HFTimeP = fs->
make<TH1F>(
"HFTimeP",
"HFTimeP", 100, -100, 50 );
445 HFTimeM = fs->
make<TH1F>(
"HFTimeM",
"HFTimeM", 100, -100, 50 );
446 HFTimePMa = fs->
make<TH1F>(
"HFTimePMa",
"HFTimePMa", 100, -100, 100 );
447 HFTimePM = fs->
make<TH1F>(
"HFTimePM",
"HFTimePM", 100, -100, 100 );
450 HFLEneAll = fs->
make<TH1F>(
"HFLEneAll",
"HFLEneAll", 210, -10, 200 );
451 HFLEneAllF = fs->
make<TH1F>(
"HFLEneAllF",
"HFLEneAllF", 210, -10, 200 );
452 HFSEneAll = fs->
make<TH1F>(
"HFSEneAll",
"HFSEneAll", 210, -10, 200 );
453 HFSEneAllF = fs->
make<TH1F>(
"HFSEneAllF",
"HFSEneAllF", 210, -10, 200 );
454 HFLEne = fs->
make<TH1F>(
"HFLEne",
"HFLEne", 200, -5, 10 );
455 HFLTime = fs->
make<TH1F>(
"HFLTime",
"HFLTime", 200, -100, 100 );
456 HFSEne = fs->
make<TH1F>(
"HFSEne",
"HFSEne", 200, -5, 10 );
457 HFSTime = fs->
make<TH1F>(
"HFSTime",
"HFSTime", 200, -100, 100 );
458 HFLSRatio = fs->
make<TH1F>(
"HFLSRatio",
"HFLSRatio", 220, -1.1, 1.1 );
460 HFOERatio = fs->
make<TH1F>(
"HFOERatio",
"HFOERatio", 2200, -1.1, 1.1 );
462 HFLvsS = fs->
make<TH2F>(
"HFLvsS",
"HFLvsS",220,-20,200,220,-20,200);
463 HFLEneNoS = fs->
make<TH1F>(
"HFLEneNoS",
"HFLEneNoS", 205, -5, 200 );
464 HFSEneNoL = fs->
make<TH1F>(
"HFSEneNoL",
"HFSEneNoL", 205, -5, 200 );
471 EBEne = fs->
make<TH1F>(
"EBEne",
"EBEne", 200, -5, 10 );
472 EBEneTh = fs->
make<TH1F>(
"EBEneTh",
"EBEneTh", 200, -5, 10 );
473 EBEneX = fs->
make<TH1F>(
"EBEneX",
"EBEneX", 200, -5, 10 );
474 EBEneY = fs->
make<TH1F>(
"EBEneY",
"EBEneY", 200, -5, 10 );
475 EBTime = fs->
make<TH1F>(
"EBTime",
"EBTime", 200, -100, 100 );
476 EBTimeTh = fs->
make<TH1F>(
"EBTimeTh",
"EBTimeTh", 200, -100, 100 );
477 EBTimeX = fs->
make<TH1F>(
"EBTimeX",
"EBTimeX", 200, -100, 100 );
478 EBTimeY = fs->
make<TH1F>(
"EBTimeY",
"EBTimeY", 200, -100, 100 );
479 EEEne = fs->
make<TH1F>(
"EEEne",
"EEEne", 200, -5, 10 );
480 EEEneTh = fs->
make<TH1F>(
"EEEneTh",
"EEEneTh", 200, -5, 10 );
481 EEEneX = fs->
make<TH1F>(
"EEEneX",
"EEEneX", 200, -5, 10 );
482 EEEneY = fs->
make<TH1F>(
"EEEneY",
"EEEneY", 200, -5, 10 );
483 EEnegEne = fs->
make<TH1F>(
"EEnegEne",
"EEnegEne", 200, -5, 10 );
484 EEposEne = fs->
make<TH1F>(
"EEposEne",
"EEposEne", 200, -5, 10 );
485 EETime = fs->
make<TH1F>(
"EETime",
"EETime", 200, -100, 100 );
486 EETimeTh = fs->
make<TH1F>(
"EETimeTh",
"EETimeTh", 200, -100, 100 );
487 EETimeX = fs->
make<TH1F>(
"EETimeX",
"EETimeX", 200, -100, 100 );
488 EETimeY = fs->
make<TH1F>(
"EETimeY",
"EETimeY", 200, -100, 100 );
489 EEnegTime = fs->
make<TH1F>(
"EEnegTime",
"EEnegTime", 200, -100, 100 );
490 EEposTime = fs->
make<TH1F>(
"EEposTime",
"EEposTime", 200, -100, 100 );
492 h_nTowersCal = fs->
make<TH1F>(
"nTowersCal",
"N Towers in Jet", 100, 0, 50 );
493 h_EMFracCal = fs->
make<TH1F>(
"EMFracCal",
"EM Fraction in Jet", 100, -1.1, 1.1 );
494 h_ptCal = fs->
make<TH1F>(
"ptCal",
"p_{T} of CalJet", 100, 0, 50 );
495 h_etaCal = fs->
make<TH1F>(
"etaCal",
"#eta of CalJet", 100, -4, 4 );
498 h_nGenJets = fs->
make<TH1F>(
"nGenJets",
"Number of GenJets", 20, 0, 20 );
500 h_ptGen = fs->
make<TH1F>(
"ptGen",
"p_{T} of GenJet", 100, 0, 50 );
501 h_etaGen = fs->
make<TH1F>(
"etaGen",
"#eta of GenJet", 100, -4, 4 );
504 h_ptGenL = fs->
make<TH1F>(
"ptGenL",
"p_{T} of GenJetL", 100, 0, 50 );
505 h_etaGenL = fs->
make<TH1F>(
"etaGenL",
"#eta of GenJetL", 100, -4, 4 );
508 h_jetEt = fs->
make<TH1F>(
"jetEt",
"Total Jet Et", 100, 0, 3000 );
510 h_jet1Pt = fs->
make<TH1F>(
"jet1Pt",
"Jet1 Pt", 100, 0, 1000 );
511 h_jet2Pt = fs->
make<TH1F>(
"jet2Pt",
"Jet2 Pt", 100, 0, 1000 );
512 h_jet1Eta = fs->
make<TH1F>(
"jet1Eta",
"Jet1 Eta", 50, -5, 5 );
513 h_jet2Eta = fs->
make<TH1F>(
"jet2Eta",
"Jet2 Eta", 50, -5, 5 );
514 h_jet1PtHLT = fs->
make<TH1F>(
"jet1PtHLT",
"Jet1 Pt HLT", 100, 0, 1000 );
525 jetHOEne = fs->
make<TH1F>(
"jetHOEne" ,
"HO Energy in Jet",100, 0,100);
526 jetEMFraction = fs->
make<TH1F>(
"jetEMFraction",
"Jet EM Fraction", 100, -1.1, 1.1 );
527 NTowers = fs->
make<TH1F>(
"NTowers",
"Number of Towers", 100, 0, 100 );
530 h_EmEnergy = fs->
make<TH2F>(
"EmEnergy",
"Em Energy", 90, -45, 45, 73, 0, 73 );
531 h_HadEnergy = fs->
make<TH2F>(
"HadEnergy",
"Had Energy", 90, -45, 45, 73, 0, 73 );
533 st_Pt = fs->
make<TH1F>(
"st_Pt",
"Pt", 200, 0, 200 );
535 st_Energy = fs->
make<TH1F>(
"st_Energy",
"Tower Energy", 200, 0, 200 );
536 st_EmEnergy = fs->
make<TH1F>(
"st_EmEnergy",
"Tower EmEnergy", 200, 0, 200 );
537 st_HadEnergy = fs->
make<TH1F>(
"st_HadEnergy",
"Tower HadEnergy", 200, 0, 200 );
538 st_OuterEnergy = fs->
make<TH1F>(
"st_OuterEnergy",
"Tower OuterEnergy", 200, 0, 200 );
539 st_Eta = fs->
make<TH1F>(
"st_Eta",
"Eta", 100, -4, 4 );
541 st_iEta = fs->
make<TH1F>(
"st_iEta",
"iEta", 60, -30, 30 );
542 st_iPhi = fs->
make<TH1F>(
"st_iPhi",
"iPhi", 80, 0, 80 );
543 st_Frac = fs->
make<TH1F>(
"st_Frac",
"Frac", 100, 0, 1 );
546 EBvHB = fs->
make<TH2F>(
"EBvHB",
"EB vs HB",1000,0,4500000.,1000,0,1000000.);
547 EEvHE = fs->
make<TH2F>(
"EEvHE",
"EE vs HE",1000,0,4500000.,1000,0,200000.);
549 ECALvHCAL = fs->
make<TH2F>(
"ECALvHCAL",
"ECAL vs HCAL",100,0,20000000.,100,-500000,500000.);
550 ECALvHCALEta1 = fs->
make<TH2F>(
"ECALvHCALEta1",
"ECAL vs HCALEta1",100,0,20000000.,100,-500000,500000.);
551 ECALvHCALEta2 = fs->
make<TH2F>(
"ECALvHCALEta2",
"ECAL vs HCALEta2",100,0,20000000.,100,-500000,500000.);
552 ECALvHCALEta3 = fs->
make<TH2F>(
"ECALvHCALEta3",
"ECAL vs HCALEta3",100,0,20000000.,100,-500000,500000.);
554 EMF_Eta = fs->
make<TProfile>(
"EMF_Eta",
"EMF Eta", 100, -50, 50, 0, 10);
555 EMF_Phi = fs->
make<TProfile>(
"EMF_Phi",
"EMF Phi", 100, 0, 100, 0, 10);
556 EMF_EtaX = fs->
make<TProfile>(
"EMF_EtaX",
"EMF EtaX", 100, -50, 50, 0, 10);
557 EMF_PhiX = fs->
make<TProfile>(
"EMF_PhiX",
"EMF PhiX", 100, 0, 100, 0, 10);
559 HFTimeVsiEtaP = fs->
make<TProfile>(
"HFTimeVsiEtaP",
"HFTimeVsiEtaP", 13, 28.5, 41.5, -100, 100);
560 HFTimeVsiEtaM = fs->
make<TProfile>(
"HFTimeVsiEtaM",
"HFTimeVsiEtaM", 13, -41.5, -28.5, -100, 100);
562 HFTimeVsiEtaP5 = fs->
make<TProfile>(
"HFTimeVsiEtaP5",
"HFTimeVsiEtaP5", 13, 28.5, 41.5, -100, 100);
563 HFTimeVsiEtaM5 = fs->
make<TProfile>(
"HFTimeVsiEtaM5",
"HFTimeVsiEtaM5", 13, -41.5, -28.5, -100, 100);
565 HFTimeVsiEtaP20 = fs->
make<TProfile>(
"HFTimeVsiEtaP20",
"HFTimeVsiEtaP20", 13, 28.5, 41.5, -100, 100);
566 HFTimeVsiEtaM20 = fs->
make<TProfile>(
"HFTimeVsiEtaM20",
"HFTimeVsiEtaM20", 13, -41.5, -28.5, -100, 100);
568 NPass = fs->
make<TH1F>(
"NPass",
"NPass", 3, -1, 1 );
569 NTotal = fs->
make<TH1F>(
"NTotal",
"NTotal", 3, -1, 1 );
570 NTime = fs->
make<TH1F>(
"NTime",
"NTime", 10, 0, 10 );
573 HFRecHitEne = fs->
make<TH1F>(
"HFRecHitEne",
"HFRecHitEne", 300, 0, 3000 );
575 HFRecHitTime = fs->
make<TH1F>(
"HFRecHitTime",
"HFRecHitTime", 120, -60, 60 );
586 HFDigiTimeEne = fs->
make<TH1F>(
"HFDigiTimeEne",
"HFDigiTimeEne", 300, 0, 3000 );
592 for (
int i=0;
i<4000;
i++)
nBNC[
i] = 0;
602 bool Pass, Pass_HFTime, Pass_DiJet, Pass_BunchCrossing, Pass_Vertex;
604 int EtaOk10, EtaOk13, EtaOk40;
609 int HFRecHitFlag[100][100][2];
611 double towerEtCut, towerECut, towerE;
616 unsigned int StableRun = 123732;
618 double HBHEThreshold = 2.0;
619 double HFThreshold = 2.0;
620 double HOThreshold = 2.0;
621 double EBEEThreshold = 2.0;
623 double HBHEThreshold1 = 4.0;
624 double HFThreshold1 = 4.0;
625 double HOThreshold1 = 4.0;
628 double HBHEThreshold2 = 10.0;
629 double HFThreshold2 = 10.0;
633 double HBHEThreshold3 = 40.0;
634 double HFThreshold3 = 40.0;
639 float minJetPt10 = 10.;
640 int jetInd, allJetInd;
696 for (
unsigned int i=0;
i!=
n;
i++) {
729 edm::LogInfo(
"myJetAna") <<
"TriggerResults::HLT not found, "
730 "automatically select events";
750 if (evt.
id().
run() == 122294)
753 if (evt.
id().
run() == 122314)
756 if (evt.
id().
run() == 123575)
758 if (evt.
id().
run() == 123596)
762 if (evt.
id().
run() == 124009) {
770 if (evt.
id().
run() == 124020) {
778 if (evt.
id().
run() == 124024) {
792 Pass_BunchCrossing =
true;
794 Pass_BunchCrossing =
false;
802 double HFM_ETime, HFP_ETime;
811 for (
int i=0;
i<100;
i++) {
812 for (
int j=0;
j<100;
j++) {
815 HFRecHitFlag[
i][
j][0] = 0;
816 HFRecHitFlag[
i][
j][1] = 0;
822 int NHFLongShortHits;
824 NHFLongShortHits = 0;
830 std::vector<edm::Handle<HFRecHitCollection> > colls;
833 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
834 for (i=colls.begin(); i!=colls.end(); i++) {
867 float en =
j->energy();
868 float time =
j->time();
869 if ((en > 20.) && (time>20.)) {
874 int ieta =
id.
ieta();
875 int iphi =
id.iphi();
876 int depth =
id.depth();
881 HFRecHit[ieta+41][iphi][depth-1] = en;
882 HFRecHitFlag[ieta+41][iphi][depth-1] =
j->flagField(0);
890 if (
j->id().ieta()<0) {
891 if (
j->energy() > HFThreshold) {
892 HFM_ETime +=
j->energy()*
j->time();
893 HFM_E +=
j->energy();
896 if (
j->energy() > HFThreshold) {
897 HFP_ETime +=
j->energy()*
j->time();
898 HFP_E +=
j->energy();
907 cout <<
"No HF RecHits." << endl;
910 cout <<
"N HF Hits" << NHFLongShortHits <<
" " << NHFDigiTimeHits << endl;
916 double OER = 0, OddEne, EvenEne;
919 for (
int iphi=0; iphi<100; iphi++) {
920 OddEne = EvenEne = 0.;
923 for (
int ieta=0; ieta<100; ieta++) {
924 if (
HFRecHit[ieta][iphi][0] > 1.0) {
933 if (
HFRecHit[ieta][iphi][1] > 1.0) {
943 if (((OddEne + EvenEne) > 10.) && (nOdd > 1) && (nEven > 1)) {
944 OER = (OddEne - EvenEne) / (OddEne + EvenEne);
949 if ((HFP_E > 0.) && (HFM_E > 0.)) {
950 HF_PMM = (HFP_ETime / HFP_E) - (HFM_ETime / HFM_E);
957 if (fabs(HF_PMM) < 10.) {
980 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
983 if (nJet == 0) p4tmp[0] = cal->p4();
984 if (nJet == 1) p4tmp[1] = cal->p4();
986 if ( (cal->pt() > 3.) &&
987 (fabs(cal->eta()) < 3.0) ) {
1017 for (reco::VertexCollection::const_iterator vertex=vC.begin(); vertex!=vC.end(); vertex++){
1021 if ( (fabs(VTX) < 20.) && (nVTX > 0) ){
1024 Pass_Vertex =
false;
1050 evt.
getByLabel(
"siPixelClusters", hClusterColl);
1051 auto const & clustColl = *(hClusterColl.product());
1063 if (evt.
id().
run() == 1) {
1064 if ( (Pass_DiJet) &&
1073 if ( (Pass_BunchCrossing) &&
1098 if ((tC.size() > 100) && (clustColl.size() > 1000))
Pass =
true;
1115 if(!summary_h.isValid()) {
1122 bool Pass_NoiseSummary;
1123 Pass_NoiseSummary =
true;
1124 if(
summary.minE2Over10TS()<0.7) {
1125 Pass_NoiseSummary =
false;
1127 if(
summary.maxE2Over10TS()>0.96) {
1128 Pass_NoiseSummary =
false;
1130 if(
summary.maxHPDHits()>=17) {
1131 Pass_NoiseSummary =
false;
1133 if(
summary.maxRBXHits()>=999) {
1134 Pass_NoiseSummary =
false;
1136 if(
summary.maxHPDNoOtherHits()>=10) {
1137 Pass_NoiseSummary =
false;
1140 Pass_NoiseSummary =
false;
1142 if(
summary.min25GeVHitTime()<-9999.0) {
1143 Pass_NoiseSummary =
false;
1145 if(
summary.max25GeVHitTime()>9999.0) {
1146 Pass_NoiseSummary =
false;
1148 if(
summary.minRBXEMF()<0.01) {
1151 if (Pass_NoiseSummary) {
1171 for (
int i=0;
i<36;
i++) {
1179 for (
int i=0;
i<144;
i++) {
1188 double ETotal, emFrac;
1189 double HCALTotalCaloTowerE, ECALTotalCaloTowerE;
1190 double HCALTotalCaloTowerE_Eta1, ECALTotalCaloTowerE_Eta1;
1191 double HCALTotalCaloTowerE_Eta2, ECALTotalCaloTowerE_Eta2;
1192 double HCALTotalCaloTowerE_Eta3, ECALTotalCaloTowerE_Eta3;
1197 HCALTotalCaloTowerE = 0;
1198 ECALTotalCaloTowerE = 0;
1199 HCALTotalCaloTowerE_Eta1 = 0.;
1200 ECALTotalCaloTowerE_Eta1 = 0.;
1201 HCALTotalCaloTowerE_Eta2 = 0.;
1202 ECALTotalCaloTowerE_Eta2 = 0.;
1203 HCALTotalCaloTowerE_Eta3 = 0.;
1204 ECALTotalCaloTowerE_Eta3 = 0.;
1207 tower != caloTowers->end(); tower++) {
1208 ETotal += tower->hadEnergy();
1209 ETotal += tower->emEnergy();
1213 tower != caloTowers->end(); tower++) {
1216 if (
abs(tower->ieta()) < 100)
EMF_Eta->Fill(tower->ieta(), emFrac);
1218 if (
abs(tower->ieta()) < 15) {
1222 if ( (
abs(tower->ieta()) > 17) && ((
abs(tower->ieta()) < 30)) ){
1226 if (
abs(tower->ieta()) > 29) {
1239 if ((tower->emEnergy()+tower->hadEnergy()) != 0) {
1240 emFrac = tower->emEnergy()/(tower->emEnergy()+tower->hadEnergy());
1255 if (
abs(tower->iphi()) < 100)
EMF_Phi->Fill(tower->iphi(), emFrac);
1256 if (
abs(tower->ieta()) < 100)
EMF_Eta->Fill(tower->ieta(), emFrac);
1257 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1262 if (
abs(tower->iphi()) < 100)
EMF_PhiX->Fill(tower->iphi(), emFrac);
1263 if (
abs(tower->ieta()) < 100)
EMF_EtaX->Fill(tower->ieta(), emFrac);
1266 HCALTotalCaloTowerE += tower->hadEnergy();
1267 ECALTotalCaloTowerE += tower->emEnergy();
1269 towerE = tower->hadEnergy() + tower->emEnergy();
1270 if (tower->et() > towerEtCut)
caloEtaEt->Fill(tower->eta());
1271 if (towerE > towerECut)
caloEta->Fill(tower->eta());
1274 if (fabs(tower->eta()) < 1.3) {
1275 HCALTotalCaloTowerE_Eta1 += tower->hadEnergy();
1276 ECALTotalCaloTowerE_Eta1 += tower->emEnergy();
1278 if ((fabs(tower->eta()) >= 1.3) && (fabs(tower->eta()) < 2.5)) {
1279 HCALTotalCaloTowerE_Eta2 += tower->hadEnergy();
1280 ECALTotalCaloTowerE_Eta2 += tower->emEnergy();
1282 if (fabs(tower->eta()) > 2.5) {
1283 HCALTotalCaloTowerE_Eta3 += tower->hadEnergy();
1284 ECALTotalCaloTowerE_Eta3 += tower->emEnergy();
1295 if ((tower->hadEnergy() + tower->emEnergy()) > 2.0) {
1297 int iRBX = tower->iphi();
1299 if (iRBX == 0) iRBX = 17;
1300 if (iRBX == -1) iRBX = 18;
1303 if (tower->ieta() < 0) iRBX += 18;
1318 int iHPD = tower->iphi();
1319 if (tower->ieta() < 0) iHPD = iHPD + 72;
1339 ECALvHCAL->Fill(HCALTotalCaloTowerE, ECALTotalCaloTowerE);
1340 ECALvHCALEta1->Fill(HCALTotalCaloTowerE_Eta1, ECALTotalCaloTowerE_Eta1);
1341 ECALvHCALEta2->Fill(HCALTotalCaloTowerE_Eta2, ECALTotalCaloTowerE_Eta2);
1342 ECALvHCALEta3->Fill(HCALTotalCaloTowerE_Eta3, ECALTotalCaloTowerE_Eta3);
1366 for (
int i=0;
i<36;
i++) {
1377 if ( (nRBX == 1) && (nTowers > 24) ) {
1383 for (
int i=0;
i<144;
i++) {
1394 if ( (nHPD == 1) && (nTowers > 6) ) {
1396 cout <<
" nHPD = " << nHPD
1397 <<
" Towers = " << nTowers
1398 <<
" Type = " << evtType
1410 Int_t JetLoPass = 0;
1412 if (triggerResults.
isValid()) {
1416 unsigned int n = triggerResults->size();
1417 for (
unsigned int i=0;
i!=
n;
i++) {
1441 triggerResults = (*tr);
1448 edm::LogInfo(
"myJetAna") <<
"TriggerResults::HLT not found, "
1449 "automatically select events";
1489 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
1493 double corPt = scale*cal->pt();
1497 if (corPt>highestPt) {
1499 p4cortmp[1] = p4cortmp[0];
1501 p4cortmp[0] = scale*cal->p4();
1502 }
else if (corPt>nextPt) {
1504 p4cortmp[1] = scale*cal->p4();
1508 if (allJetInd == 1) {
1511 if (JetLoPass != 0)
h_jet1PtHLT->Fill( cal->pt() );
1512 p4tmp[0] = cal->p4();
1513 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
1514 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
1515 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
1517 if (allJetInd == 2) {
1520 p4tmp[1] = cal->p4();
1521 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
1522 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
1523 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
1527 const std::vector<CaloTowerPtr> jetCaloRefs = cal->getCaloConstituents();
1528 int nConstituents = jetCaloRefs.size();
1541 LeadMass = (p4tmp[0]+p4tmp[1]).
mass();
1550 int nTow1, nTow2, nTow3, nTow4;
1557 for ( CaloJetCollection::const_iterator ijet=caloJets->begin(); ijet!=caloJets->end(); ijet++) {
1560 float hadEne = ijet->hadEnergyInHB() + ijet->hadEnergyInHO() +
1561 ijet->hadEnergyInHE() + ijet->hadEnergyInHF();
1562 float emEne = ijet->emEnergyInEB() + ijet->emEnergyInEE() + ijet->emEnergyInHF();
1563 float had = ijet->energyFractionHadronic();
1564 float j_et = ijet->et();
1567 if (fabs(ijet->eta()) < 1.3) {
1571 if (ijet->pt() > minJetPt10)
hadFracEta1->Fill(had);
1575 if ((fabs(ijet->eta()) > 1.3) && (fabs(ijet->eta()) < 3.) ) {
1579 if (ijet->pt() > minJetPt10)
hadFracEta2->Fill(had);
1583 if (fabs(ijet->eta()) > 3.) {
1587 if (ijet->pt() > minJetPt10)
hadFracEta3->Fill(had);
1591 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
1592 int nConstituents = jetCaloRefs.size();
1597 nTow1 = nTow2 = nTow3 = nTow4 = 0;
1598 for (
int i = 0;
i <nConstituents ;
i++){
1600 float et = jetCaloRefs[
i]->et();
1602 if (et > 0.5) nTow1++;
1603 if (et > 1.0) nTow2++;
1604 if (et > 1.5) nTow3++;
1605 if (et > 2.0) nTow4++;
1627 double SumEtNotJets(0);
1628 double SumEtJets(0);
1629 double SumEtTowers(0);
1630 double TotalClusteredE(0);
1631 double TotalUnclusteredE(0);
1636 double sumTowerAllPx(0);
1637 double sumTowerAllPy(0);
1639 double sumTowerAllEx(0);
1640 double sumTowerAllEy(0);
1643 double HBTotalE, HETotalE, HOTotalE, HFTotalE;
1645 double EBTotalE, EETotalE;
1647 std::vector<CaloTowerPtr> UsedTowerList;
1648 std::vector<CaloTower> TowerUsedInJets;
1649 std::vector<CaloTower> TowerNotUsedInJets;
1658 HBTotalE = HETotalE = HOTotalE = HFTotalE = 0.;
1660 std::vector<edm::Handle<HBHERecHitCollection> > colls;
1662 std::vector<edm::Handle<HBHERecHitCollection> >::iterator
i;
1663 for (i=colls.begin(); i!=colls.end(); i++) {
1669 HBEne->Fill(
j->energy());
1673 HBTvsE->Fill(
j->energy(),
j->time());
1675 if (
j->time() > 20.)
HBEneTThr->Fill(
j->energy());
1677 if ((
j->time()<-25.) || (
j->time()>75.)) {
1679 if (
j->energy() > HBHEThreshold)
HBEneOOTTh->Fill(
j->energy());
1680 if (
j->energy() > HBHEThreshold1)
HBEneOOTTh1->Fill(
j->energy());
1682 if (
j->energy() > HBHEThreshold) {
1689 HBTotalE +=
j->energy();
1690 HBocc->Fill(
j->id().ieta(),
j->id().iphi());
1694 if (
j->energy() > HBHEThreshold1) {
1701 if ((
j->time()<-25.) || (
j->time()>75.)) {
1702 HBoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1705 if (
j->energy() > HBHEThreshold2) {
1712 if (
j->energy() > HBHEThreshold3) {
1716 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1718 if (
j->energy() > HBHEThreshold)
HBTimeX->Fill(
j->time());
1720 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
1722 if (
j->energy() > HBHEThreshold)
HBTimeY->Fill(
j->time());
1726 HEEne->Fill(
j->energy());
1730 HETvsE->Fill(
j->energy(),
j->time());
1732 if (
j->time() > 20.)
HEEneTThr->Fill(
j->energy());
1734 if ((
j->time()<-25.) || (
j->time()>75.)) {
1736 if (
j->energy() > HBHEThreshold)
HEEneOOTTh->Fill(
j->energy());
1737 if (
j->energy() > HBHEThreshold1)
HEEneOOTTh1->Fill(
j->energy());
1740 if (
j->energy() > HBHEThreshold) {
1747 HETotalE +=
j->energy();
1748 HEocc->Fill(
j->id().ieta(),
j->id().iphi());
1752 if (
j->energy() > HBHEThreshold1) {
1758 if ((
j->time()<-25.) || (
j->time()>75.)) {
1759 HEoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1762 if (
j->energy() > HBHEThreshold2) {
1768 if (
j->energy() > HBHEThreshold3) {
1773 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1775 if (
j->energy() > HBHEThreshold)
HETimeX->Fill(
j->time());
1777 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
1779 if (
j->energy() > HBHEThreshold)
HETimeY->Fill(
j->time());
1783 if (
j->id().ieta()<0) {
1785 if (
j->energy() > HBHEThreshold) {
1790 if (
j->energy() > HBHEThreshold) {
1809 cout <<
"No HB/HE RecHits." << endl;
1821 std::vector<edm::Handle<HFRecHitCollection> > colls;
1823 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
1824 for (i=colls.begin(); i!=colls.end(); i++) {
1834 cout <<
"No HF RecHits." << endl;
1841 std::vector<edm::Handle<HFRecHitCollection> > colls;
1843 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
1844 for (i=colls.begin(); i!=colls.end(); i++) {
1859 if (NPMTHits == 1) {
1870 if (
j->energy() > 20.) {
1871 if (NPMTHits == 0) {
1875 if (NPMTHits == 1) {
1894 if (
j->energy() > 5.) {
1899 if (
j->energy() > 20.) {
1904 HFEne->Fill(
j->energy());
1906 HFTvsE->Fill(
j->energy(),
j->time());
1908 if (
j->time() > 20.)
HFEneTThr->Fill(
j->energy());
1910 if (
j->energy() > 10.)
HFTvsEThr->Fill(
j->energy(),
j->time());
1937 if (
j->energy() > HFThreshold) {
1952 if (evt.
id().
run() >= StableRun) {
1961 HFTotalE +=
j->energy();
1962 HFocc->Fill(
j->id().ieta(),
j->id().iphi());
1967 if (
j->energy() > HFThreshold1) {
1973 if ((
j->time()<-20.) || (
j->time()>20.)) {
1974 HFoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1977 if (
j->energy() > HFThreshold2) {
1983 if (
j->energy() > HFThreshold3) {
1990 if (
j->id().ieta()<0) {
1991 if (
j->energy() > HFThreshold) {
1994 HFM_ETime +=
j->energy()*
j->time();
1995 HFM_E +=
j->energy();
1998 if (
j->energy() > HFThreshold) {
2001 HFP_ETime +=
j->energy()*
j->time();
2002 HFP_E +=
j->energy();
2007 if (
j->id().depth() == 1){
2009 if (
j->energy() > HFThreshold)
HFLTime->Fill(
j->time());
2012 if (
j->energy() > HFThreshold)
HFSTime->Fill(
j->time());
2021 cout <<
"No HF RecHits." << endl;
2026 for (
int ieta=0; ieta<100; ieta++) {
2027 for (
int iphi=0; iphi<100; iphi++) {
2028 double longF, shortF;
2029 if (
HFRecHit[ieta][iphi][0] == -10.) {
2034 if (
HFRecHit[ieta][iphi][1] == -10.) {
2042 if (shortF > 0.)
HFSEneAll->Fill(shortF);
2045 if ((longF > 20.) || (shortF > 20.)) {
2046 double R = (longF-shortF)/(longF+shortF);
2048 if (fabs(R) > 0.995) {
2052 if (longF > (162.4-10.19*
abs(ieta-41)+.21*
abs(ieta-41)*
abs(ieta-41)) ) {
2061 if (shortF > (129.9-6.61*
abs(ieta-41)+0.1153*
abs(ieta-41)*
abs(ieta-41)) ) {
2079 if ( (
HFRecHit[ieta][iphi][1] == -10.) && (
HFRecHit[ieta][iphi][0] != -10.) ) {
2083 if ( (
HFRecHit[ieta][iphi][0] == -10.) && (
HFRecHit[ieta][iphi][1] != -10.) ) {
2091 if (HFP_E > 0.)
HFTimeP->Fill(HFP_ETime / HFP_E);
2092 if (HFM_E > 0.)
HFTimeM->Fill(HFM_ETime / HFM_E);
2094 if ((HFP_E > 0.) && (HFM_E > 0.)) {
2095 HF_PMM = (HFP_ETime / HFP_E) - (HFM_ETime / HFM_E);
2104 std::vector<edm::Handle<HORecHitCollection> > colls;
2106 std::vector<edm::Handle<HORecHitCollection> >::iterator
i;
2107 for (i=colls.begin(); i!=colls.end(); i++) {
2110 HOEne->Fill(
j->energy());
2112 HOTvsE->Fill(
j->energy(),
j->time());
2113 if (
j->energy() > HOThreshold1) {
2116 if (
j->energy() > HOThreshold) {
2119 HOTotalE +=
j->energy();
2120 HOocc->Fill(
j->id().ieta(),
j->id().iphi());
2124 if (((
j->id().iphi()>=59 &&
j->id().iphi()<=70 &&
2125 j->id().ieta()>=11 &&
j->id().ieta()<=15) ||
2126 (
j->id().iphi()>=47 &&
j->id().iphi()<=58 &&
2127 j->id().ieta()>=5 &&
j->id().ieta()<=10)))
2130 if (
j->energy() > HOThreshold)
HOSTime->Fill(
j->time());
2131 }
else if ((
j->id().iphi()<59 ||
j->id().iphi()>70 ||
2132 j->id().ieta()<11 ||
j->id().ieta()>15) &&
2133 (
j->id().iphi()<47 ||
j->id().iphi()>58 ||
2134 j->id().ieta()<5 ||
j->id().ieta()>10))
2137 if (
j->energy() > HOThreshold)
HOHTime->Fill(
j->time());
2139 if (
j->id().ieta()<= -11){
2141 if (
j->energy() > HOThreshold)
HOHrm2Time->Fill(
j->time());
2142 }
else if (
j->id().ieta()>= -10 &&
j->id().ieta() <= -5) {
2144 if (
j->energy() > HOThreshold)
HOHrm1Time->Fill(
j->time());
2145 }
else if (
j->id().ieta()>= -4 &&
j->id().ieta() <= 4) {
2147 if (
j->energy() > HOThreshold)
HOHr0Time->Fill(
j->time());
2148 }
else if (
j->id().ieta()>= 5 &&
j->id().ieta() <= 10) {
2150 if (
j->energy() > HOThreshold)
HOHrp1Time->Fill(
j->time());
2151 }
else if (
j->id().ieta()>= 11) {
2153 if (
j->energy() > HOThreshold)
HOHrp2Time->Fill(
j->time());
2155 std::cout <<
"Finding events that are in no ring !?!" << std::endl;
2156 std::cout <<
"eta = " <<
j->id().ieta() << std::endl;
2160 std::cout <<
"Finding events that are neither SiPM nor HPD!?" << std::endl;
2170 cout <<
"No HO RecHits." << endl;
2175 EBTotalE = EETotalE = 0.;
2179 std::vector<edm::Handle<EcalRecHitCollection> > colls;
2181 std::vector<edm::Handle<EcalRecHitCollection> >::iterator
i;
2182 for (i=colls.begin(); i!=colls.end(); i++) {
2185 EBEne->Fill(
j->energy());
2187 if (
j->energy() > EBEEThreshold) {
2191 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
2195 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
2199 EBTotalE +=
j->energy();
2202 EEEne->Fill(
j->energy());
2204 if (
j->energy() > EBEEThreshold) {
2208 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
2212 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457 ) ) {
2216 EETotalE +=
j->energy();
2223 cout <<
"No ECAL RecHits." << endl;
2226 EBvHB->Fill(HBTotalE, EBTotalE);
2227 EEvHE->Fill(HETotalE, EETotalE);
2281 if ( (EBTotalE > 320000) && (EBTotalE < 330000) &&
2282 (HBTotalE > 2700000) && (HBTotalE < 2800000) ) {
2305 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2307 double sum_et = 0.0;
2308 double sum_ex = 0.0;
2309 double sum_ey = 0.0;
2311 double HFsum_et = 0.0;
2312 double HFsum_ex = 0.0;
2313 double HFsum_ey = 0.0;
2320 tower != caloTowers->end(); tower++) {
2322 Double_t et = tower->et();
2323 Double_t phix = tower->phi();
2325 if (et > 0.5) nTow1++;
2326 if (et > 1.0) nTow2++;
2327 if (et > 1.5) nTow3++;
2328 if (et > 2.0) nTow4++;
2334 if (tower->emEnergy() > 2.0) {
2335 h_EmEnergy->Fill (tower->ieta(), tower->iphi(), tower->emEnergy());
2337 if (tower->hadEnergy() > 2.0) {
2338 h_HadEnergy->Fill (tower->ieta(), tower->iphi(), tower->hadEnergy());
2341 if (fabs(tower->ieta()) > 29) {
2343 HFsum_ex += et*
cos(phix);
2344 HFsum_ey += et*
sin(phix);
2350 ETime->Fill(tower->ecalTime());
2351 HTime->Fill(tower->hcalTime());
2360 sum_ex += et*
cos(phix);
2361 sum_ey += et*
sin(phix);
2364 Double_t
phi = tower->phi();
2365 SumEtTowers += tower->et();
2367 sumTowerAllEx += et*
cos(phi);
2368 sumTowerAllEy += et*
sin(phi);
2378 HFMET->Fill(
sqrt( HFsum_ex*HFsum_ex + HFsum_ey*HFsum_ey));
2392 UsedTowerList.clear();
2393 TowerUsedInJets.clear();
2394 TowerNotUsedInJets.clear();
2398 for ( CaloJetCollection::const_iterator ijet=caloJets->begin(); ijet!=caloJets->end(); ijet++) {
2400 Double_t
jetPt = ijet->pt();
2401 Double_t
jetEta = ijet->eta();
2402 Double_t
jetPhi = ijet->phi();
2406 Double_t jetPx = jetPt*
cos(jetPhi);
2407 Double_t jetPy = jetPt*
sin(jetPhi);
2412 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2413 int nConstituents = jetCaloRefs.size();
2414 for (
int i = 0;
i <nConstituents ;
i++){
2416 UsedTowerList.push_back(jetCaloRefs[
i]);
2423 if ( (jetPt>80.0) && (fabs(jetEta) < 1.3) ){
2424 st_Pt->Fill( jetPt );
2425 int nConstituents = ijet->getCaloConstituents().size();
2431 for(
unsigned twr=0; twr<ijet->getCaloConstituents().size(); ++twr){
2432 CaloTowerPtr tower = (ijet->getCaloConstituents())[twr];
2434 if( tower->et()>0. ){
2436 if (tower->energy() > maxEne) maxEne = tower->energy();
2437 totEne += tower->energy();
2444 st_Eta->Fill( tower->eta() );
2445 st_Phi->Fill( tower->phi() );
2447 st_iEta->Fill( tower->ieta() );
2448 st_iPhi->Fill( tower->iphi() );
2466 st_Frac->Fill( maxEne / totEne );
2472 int NTowersUsed = UsedTowerList.size();
2476 tower != caloTowers->end(); tower++) {
2479 Double_t et = tower->et();
2483 Double_t
phi = tower->phi();
2484 SumEtTowers += tower->et();
2486 sumTowerAllPx += et*
cos(phi);
2487 sumTowerAllPy += et*
sin(phi);
2491 for(
int i=0;
i<NTowersUsed;
i++){
2492 if(tower->id() == UsedTowerList[
i]->id()){
2499 TowerUsedInJets.push_back(t);
2501 TowerNotUsedInJets.push_back(t);
2506 int nUsed = TowerUsedInJets.size();
2507 int nNotUsed = TowerNotUsedInJets.size();
2511 TotalClusteredE = 0;
2512 TotalUnclusteredE = 0;
2514 for(
int i=0;
i<nUsed;
i++){
2515 SumEtJets += TowerUsedInJets[
i].et();
2517 if (TowerUsedInJets[
i].
energy() > 1.0)
2518 TotalClusteredE += TowerUsedInJets[
i].energy();
2522 for(
int i=0;
i<nNotUsed;
i++){
2523 if (TowerNotUsedInJets[
i].et() > 0.5)
2524 SumEtNotJets += TowerNotUsedInJets[
i].et();
2528 if (TowerNotUsedInJets[
i].
energy() > 1.0)
2529 TotalUnclusteredE += TowerNotUsedInJets[
i].energy();
2545 calomet = &(calometcol->front());
2547 double caloSumET = calomet->
sumEt();
2548 double caloMET = calomet->
pt();
2549 double caloMETSig = calomet->
mEtSig();
2550 double caloMEx = calomet->
px();
2551 double caloMEy = calomet->
py();
2552 double caloMETPhi = calomet->
phi();
2554 SumEt->Fill(caloSumET);
2558 if (evtType == 0)
MET_Tower->Fill(caloMET);
2559 if (evtType == 1)
MET_RBX->Fill(caloMET);
2560 if (evtType == 2)
MET_HPD->Fill(caloMET);
2561 METSig->Fill(caloMETSig);
2564 METPhi->Fill(caloMETPhi);
2591 evt.
getByLabel(
"offlinePrimaryVertices", vertexCollection);
2597 for (reco::VertexCollection::const_iterator vertex=vC.begin(); vertex!=vC.end(); vertex++){
2599 h_Vx->Fill(vertex->x());
2600 h_Vy->Fill(vertex->y());
2601 h_Vz->Fill(vertex->z());
2608 if ((HF_PMM !=
INVALID) || (nVTX > 0)) {
2609 HFvsZ->Fill(HF_PMM,VTX);
2666 for (reco::TrackCollection::const_iterator track=tC.begin(); track!=tC.end(); track++){
2725 for( CaloJetCollection::const_iterator ijet = caloJets->begin(); ijet != caloJets->end(); ++ ijet ) {
2739 h_pt->Fill(ijet->pt());
2740 if (evtType == 0)
h_ptTower->Fill(ijet->pt());
2741 if (evtType == 1)
h_ptRBX->Fill(ijet->pt());
2742 if (evtType == 2)
h_ptHPD->Fill(ijet->pt());
2743 h_et->Fill(ijet->et());
2744 h_eta->Fill(ijet->eta());
2745 h_phi->Fill(ijet->phi());
2747 jetHOEne->Fill(ijet->hadEnergyInHO());
2800 for (
int i=0;
i<4000;
i++) {
TProfile * HFTimeVsiEtaM20
void getManyByType(std::vector< Handle< PROD > > &results) const
T getParameter(std::string const &) const
EventNumber_t event() const
TProfile * HFTimeVsiEtaP20
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
std::vector< HFRecHit >::const_iterator const_iterator
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
virtual double phi() const final
momentum azimuthal angle
std::vector< Vertex > VertexCollection
collection of Vertex objects
TH1F * h_TotalUnclusteredE
T * make(const Args &...args) const
make new ROOT object
void analyze(const edm::Event &, const edm::EventSetup &)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::string CaloJetAlgorithm
TH1F * h_TotalUnclusteredEt
edm::InputTag theTriggerResultsLabel
Cos< T >::type cos(const T &t)
int ieta() const
get the cell ieta
Abs< T >::type abs(const T &t)
virtual double py() const final
y coordinate of momentum vector
static std::string const triggerResults
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
TProfile * HFTimeVsiEtaM5
edm::InputTag hcalNoiseSummaryTag_
virtual double px() const final
x coordinate of momentum vector
myJetAna(const edm::ParameterSet &)
TProfile * HFTimeVsiEtaP5
virtual double pt() const final
transverse momentum