126 CaloJetAlgorithm( cfg.getParameter<
string>(
"CaloJetAlgorithm" ) ),
127 GenJetAlgorithm( cfg.getParameter<
string>(
"GenJetAlgorithm" ) ),
128 hcalNoiseSummaryTag_(cfg.getParameter<edm::
InputTag>(
"hcalNoiseSummaryTag"))
144 h_pt = fs->
make<TH1F>(
"pt",
"Jet p_{T}", 100, 0, 50 );
145 h_ptRBX = fs->
make<TH1F>(
"ptRBX",
"RBX: Jet p_{T}", 100, 0, 50 );
146 h_ptHPD = fs->
make<TH1F>(
"ptHPD",
"HPD: Jet p_{T}", 100, 0, 50 );
147 h_ptTower = fs->
make<TH1F>(
"ptTower",
"Jet p_{T}", 100, 0, 50 );
148 h_et = fs->
make<TH1F>(
"et",
"Jet E_{T}", 100, 0, 50 );
149 h_eta = fs->
make<TH1F>(
"eta",
"Jet #eta", 100, -5, 5 );
153 hitEtaEt = fs->
make<TH1F>(
"hitEtaEt",
"RecHit #eta", 90, -45, 45 );
154 hitEta = fs->
make<TH1F>(
"hitEta",
"RecHit #eta", 90, -45, 45 );
155 hitPhi = fs->
make<TH1F>(
"hitPhi",
"RecHit #phi", 73, 0, 73 );
157 caloEtaEt = fs->
make<TH1F>(
"caloEtaEt",
"CaloTower #eta", 100, -4, 4 );
158 caloEta = fs->
make<TH1F>(
"caloEta",
"CaloTower #eta", 100, -4, 4 );
161 dijetMass = fs->
make<TH1F>(
"dijetMass",
"DiJet Mass",100,0,100);
175 hadFracEta1 = fs->
make<TH1F>(
"hadFracEta11",
"Hadronic Fraction Eta1 Jet 1",100,0,1);
176 hadFracEta2 = fs->
make<TH1F>(
"hadFracEta21",
"Hadronic Fraction Eta2 Jet 1",100,0,1);
177 hadFracEta3 = fs->
make<TH1F>(
"hadFracEta31",
"Hadronic Fraction Eta3 Jet 1",100,0,1);
179 HFSumEt = fs->
make<TH1F>(
"HFSumEt",
"HFSumEt",100,0,100);
180 HFMET = fs->
make<TH1F>(
"HFMET",
"HFMET",120,0,120);
182 SumEt = fs->
make<TH1F>(
"SumEt",
"SumEt",100,0,100);
183 MET = fs->
make<TH1F>(
"MET",
"MET",120,0,120);
184 OERMET = fs->
make<TH1F>(
"OERMET",
"OERMET",120,0,120);
185 METSig = fs->
make<TH1F>(
"METSig",
"METSig",100,0,50);
186 MEx = fs->
make<TH1F>(
"MEx",
"MEx",100,-20,20);
187 MEy = fs->
make<TH1F>(
"MEy",
"MEy",100,-20,20);
188 METPhi = fs->
make<TH1F>(
"METPhi",
"METPhi",315,0,3.15);
189 MET_RBX = fs->
make<TH1F>(
"MET_RBX",
"MET",100,0,1000);
190 MET_HPD = fs->
make<TH1F>(
"MET_HPD",
"MET",100,0,1000);
193 SiClusters = fs->
make<TH1F>(
"SiClusters",
"SiClusters",150,0,1500);
195 h_Vx = fs->
make<TH1F>(
"Vx",
"Vx",100,-0.5,0.5);
196 h_Vy = fs->
make<TH1F>(
"Vy",
"Vy",100,-0.5,0.5);
197 h_Vz = fs->
make<TH1F>(
"Vz",
"Vz",100,-20,20);
208 ETime = fs->
make<TH1F>(
"ETime",
"Ecal Time",200,-200,200);
209 HTime = fs->
make<TH1F>(
"HTime",
"Hcal Time",200,-200,200);
211 towerHadEnHB = fs->
make<TH1F>(
"towerHadEnHB" ,
"HB: Calo Tower HAD Energy",210,-1,20);
212 towerHadEnHE = fs->
make<TH1F>(
"towerHadEnHE" ,
"HE: Calo Tower HAD Energy",510,-1,50);
213 towerHadEnHF = fs->
make<TH1F>(
"towerHadEnHF" ,
"HF: Calo Tower HAD Energy",510,-1,50);
215 towerEmEnHB = fs->
make<TH1F>(
"towerEmEnHB" ,
"HB: Calo Tower EM Energy",210,-1,20);
216 towerEmEnHE = fs->
make<TH1F>(
"towerEmEnHE" ,
"HE: Calo Tower EM Energy",510,-1,50);
217 towerEmEnHF = fs->
make<TH1F>(
"towerEmEnHF" ,
"HF: Calo Tower EM Energy",510,-1,50);
219 towerHadEn = fs->
make<TH1F>(
"towerHadEn" ,
"Hadronic Energy in Calo Tower",2000,-100,100);
220 towerEmEn = fs->
make<TH1F>(
"towerEmEn" ,
"EM Energy in Calo Tower",2000,-100,100);
221 towerOuterEn = fs->
make<TH1F>(
"towerOuterEn" ,
"HO Energy in Calo Tower",2000,-100,100);
223 towerEmFrac = fs->
make<TH1F>(
"towerEmFrac",
"EM Fraction of Energy in Calo Tower",100,-1.,1.);
225 RBX_et = fs->
make<TH1F>(
"RBX_et",
"ET in RBX",1000,-20,100);
226 RBX_hadEnergy = fs->
make<TH1F>(
"RBX_hadEnergy",
"Hcal Energy in RBX",1000,-20,100);
227 RBX_hcalTime = fs->
make<TH1F>(
"RBX_hcalTime",
"Hcal Time in RBX",200,-200,200);
228 RBX_nTowers = fs->
make<TH1F>(
"RBX_nTowers",
"Number of Towers in RBX",75,0,75);
229 RBX_N = fs->
make<TH1F>(
"RBX_N",
"Number of RBX",10,0,10);
231 HPD_et = fs->
make<TH1F>(
"HPD_et",
"ET in HPD",1000,-20,100);
232 HPD_hadEnergy = fs->
make<TH1F>(
"HPD_hadEnergy",
"Hcal Energy in HPD",1000,-20,100);
233 HPD_hcalTime = fs->
make<TH1F>(
"HPD_hcalTime",
"Hcal Time in HPD",200,-200,200);
234 HPD_nTowers = fs->
make<TH1F>(
"HPD_nTowers",
"Number of Towers in HPD",20,0,20);
235 HPD_N = fs->
make<TH1F>(
"HPD_N",
"Number of HPD",10,0,10);
237 nTowers1 = fs->
make<TH1F>(
"nTowers1",
"Number of Towers pt 0.5",100,0,200);
238 nTowers2 = fs->
make<TH1F>(
"nTowers2",
"Number of Towers pt 1.0",100,0,200);
239 nTowers3 = fs->
make<TH1F>(
"nTowers3",
"Number of Towers pt 1.5",100,0,200);
240 nTowers4 = fs->
make<TH1F>(
"nTowers4",
"Number of Towers pt 2.0",100,0,200);
242 nTowersLeadJetPt1 = fs->
make<TH1F>(
"nTowersLeadJetPt1",
"Number of Towers in Lead Jet pt 0.5",100,0,100);
243 nTowersLeadJetPt2 = fs->
make<TH1F>(
"nTowersLeadJetPt2",
"Number of Towers in Lead Jet pt 1.0",100,0,100);
244 nTowersLeadJetPt3 = fs->
make<TH1F>(
"nTowersLeadJetPt3",
"Number of Towers in Lead Jet pt 1.5",100,0,100);
245 nTowersLeadJetPt4 = fs->
make<TH1F>(
"nTowersLeadJetPt4",
"Number of Towers in Lead Jet pt 2.0",100,0,100);
247 h_nCalJets = fs->
make<TH1F>(
"nCalJets",
"Number of CalJets", 20, 0, 20 );
249 HBEneOOT = fs->
make<TH1F>(
"HBEneOOT",
"HBEneOOT", 200, -5, 10 );
250 HEEneOOT = fs->
make<TH1F>(
"HEEneOOT",
"HEEneOOT", 200, -5, 10 );
251 HFEneOOT = fs->
make<TH1F>(
"HFEneOOT",
"HFEneOOT", 200, -5, 10 );
252 HOEneOOT = fs->
make<TH1F>(
"HOEneOOT",
"HOEneOOT", 200, -5, 10 );
254 HBEneOOTTh = fs->
make<TH1F>(
"HBEneOOTTh",
"HBEneOOTTh", 200, -5, 10 );
255 HEEneOOTTh = fs->
make<TH1F>(
"HEEneOOTTh",
"HEEneOOTTh", 200, -5, 10 );
256 HFEneOOTTh = fs->
make<TH1F>(
"HFEneOOTTh",
"HFEneOOTTh", 200, -5, 10 );
257 HOEneOOTTh = fs->
make<TH1F>(
"HOEneOOTTh",
"HOEneOOTTh", 200, -5, 10 );
259 HBEneOOTTh1 = fs->
make<TH1F>(
"HBEneOOTTh1",
"HBEneOOT", 200, -5, 10 );
260 HEEneOOTTh1 = fs->
make<TH1F>(
"HEEneOOTTh1",
"HEEneOOT", 200, -5, 10 );
261 HFEneOOTTh1 = fs->
make<TH1F>(
"HFEneOOTTh1",
"HFEneOOT", 200, -5, 10 );
262 HOEneOOTTh1 = fs->
make<TH1F>(
"HOEneOOTTh1",
"HOEneOOT", 200, -5, 10 );
264 HBEneTThr = fs->
make<TH1F>(
"HBEneTThr",
"HBEneTThr", 105, -5, 100 );
265 HEEneTThr = fs->
make<TH1F>(
"HEEneTThr",
"HEEneTThr", 105, -5, 100 );
266 HFEneTThr = fs->
make<TH1F>(
"HFEneTThr",
"HFEneTThr", 105, -5, 100 );
269 HBEne = fs->
make<TH1F>(
"HBEne",
"HBEne", 205, -5, 200 );
270 HBEneTh = fs->
make<TH1F>(
"HBEneTh",
"HBEneTh", 205, -5, 200 );
271 HBEneTh1 = fs->
make<TH1F>(
"HBEneTh1",
"HBEneTh1", 205, -5, 200 );
272 HBEneX = fs->
make<TH1F>(
"HBEneX",
"HBEneX", 200, -5, 10 );
273 HBEneY = fs->
make<TH1F>(
"HBEneY",
"HBEnedY", 200, -5, 10 );
274 HBTime = fs->
make<TH1F>(
"HBTime",
"HBTime", 200, -100, 100 );
275 HBTimeTh = fs->
make<TH1F>(
"HBTimeTh",
"HBTimeTh", 200, -100, 100 );
276 HBTimeTh1 = fs->
make<TH1F>(
"HBTimeTh1",
"HBTimeTh1", 200, -100, 100 );
277 HBTimeTh2 = fs->
make<TH1F>(
"HBTimeTh2",
"HBTimeTh2", 200, -100, 100 );
278 HBTimeTh3 = fs->
make<TH1F>(
"HBTimeTh3",
"HBTimeTh3", 200, -100, 100 );
279 HBTimeThR = fs->
make<TH1F>(
"HBTimeThR",
"HBTimeThR", 200, -100, 100 );
280 HBTimeTh1R = fs->
make<TH1F>(
"HBTimeTh1R",
"HBTimeTh1R", 200, -100, 100 );
281 HBTimeTh2R = fs->
make<TH1F>(
"HBTimeTh2R",
"HBTimeTh2R", 200, -100, 100 );
282 HBTimeTh3R = fs->
make<TH1F>(
"HBTimeTh3R",
"HBTimeTh3R", 200, -100, 100 );
284 HBTimeFlagged = fs->
make<TH1F>(
"HBTimeFlagged",
"HBTimeFlagged", 200, -100, 100 );
289 HBTimeFlagged2 = fs->
make<TH1F>(
"HBTimeFlagged2",
"HBTimeFlagged2", 200, -100, 100 );
294 HBTimeX = fs->
make<TH1F>(
"HBTimeX",
"HBTimeX", 200, -100, 100 );
295 HBTimeY = fs->
make<TH1F>(
"HBTimeY",
"HBTimeY", 200, -100, 100 );
296 HEEne = fs->
make<TH1F>(
"HEEne",
"HEEne", 205, -5, 200 );
297 HEEneTh = fs->
make<TH1F>(
"HEEneTh",
"HEEneTh", 205, -5, 200 );
298 HEEneTh1 = fs->
make<TH1F>(
"HEEneTh1",
"HEEneTh1", 205, -5, 200 );
299 HEEneX = fs->
make<TH1F>(
"HEEneX",
"HEEneX", 200, -5, 10 );
300 HEEneY = fs->
make<TH1F>(
"HEEneY",
"HEEneY", 200, -5, 10 );
301 HEposEne = fs->
make<TH1F>(
"HEposEne",
"HEposEne", 200, -5, 10 );
302 HEnegEne = fs->
make<TH1F>(
"HEnegEne",
"HEnegEne", 200, -5, 10 );
303 HETime = fs->
make<TH1F>(
"HETime",
"HETime", 200, -100, 100 );
304 HETimeTh = fs->
make<TH1F>(
"HETimeTh",
"HETimeTh", 200, -100, 100 );
305 HETimeTh1 = fs->
make<TH1F>(
"HETimeTh1",
"HETimeTh1", 200, -100, 100 );
306 HETimeTh2 = fs->
make<TH1F>(
"HETimeTh2",
"HETimeTh2", 200, -100, 100 );
307 HETimeTh3 = fs->
make<TH1F>(
"HETimeTh3",
"HETimeTh3", 200, -100, 100 );
308 HETimeThR = fs->
make<TH1F>(
"HETimeThR",
"HETimeThR", 200, -100, 100 );
309 HETimeTh1R = fs->
make<TH1F>(
"HETimeTh1R",
"HETimeTh1R", 200, -100, 100 );
310 HETimeTh2R = fs->
make<TH1F>(
"HETimeTh2R",
"HETimeTh2R", 200, -100, 100 );
311 HETimeTh3R = fs->
make<TH1F>(
"HETimeTh3R",
"HETimeTh3R", 200, -100, 100 );
313 HETimeFlagged = fs->
make<TH1F>(
"HETimeFlagged",
"HETimeFlagged", 200, -100, 100 );
318 HETimeFlagged2 = fs->
make<TH1F>(
"HETimeFlagged2",
"HETimeFlagged2", 200, -100, 100 );
323 HETimeX = fs->
make<TH1F>(
"HETimeX",
"HETimeX", 200, -100, 100 );
324 HETimeY = fs->
make<TH1F>(
"HETimeY",
"HETimeY", 200, -100, 100 );
325 HEposTime = fs->
make<TH1F>(
"HEposTime",
"HEposTime", 200, -100, 100 );
326 HEnegTime = fs->
make<TH1F>(
"HEnegTime",
"HEnegTime", 200, -100, 100 );
327 HOEne = fs->
make<TH1F>(
"HOEne",
"HOEne", 200, -5, 10 );
328 HOEneTh = fs->
make<TH1F>(
"HOEneTh",
"HOEneTh", 200, -5, 10 );
329 HOEneTh1 = fs->
make<TH1F>(
"HOEneTh1",
"HOEneTh1", 200, -5, 10 );
330 HOTime = fs->
make<TH1F>(
"HOTime",
"HOTime", 200, -100, 100 );
331 HOTimeTh = fs->
make<TH1F>(
"HOTimeTh",
"HOTimeTh", 200, -100, 100 );
334 HOSEne = fs->
make<TH1F>(
"HOSEne",
"HOSEne", 12000, -20, 100 );
335 HOSTime = fs->
make<TH1F>(
"HOSTime",
"HOSTime", 200, -100, 100 );
336 HOHEne = fs->
make<TH1F>(
"HOHEne",
"HOHEne", 12000, -20, 100 );
337 HOHTime = fs->
make<TH1F>(
"HOHTime",
"HOHTime", 200, -100, 100 );
339 HOHr0Ene = fs->
make<TH1F>(
"HOHr0Ene" ,
"HOHr0Ene", 12000, -20 , 100 );
340 HOHr0Time = fs->
make<TH1F>(
"HOHr0Time" ,
"HOHr0Time", 200, -200, 200 );
341 HOHrm1Ene = fs->
make<TH1F>(
"HOHrm1Ene" ,
"HOHrm1Ene", 12000, -20 , 100 );
342 HOHrm1Time = fs->
make<TH1F>(
"HOHrm1Time",
"HOHrm1Time", 200, -200, 200 );
343 HOHrm2Ene = fs->
make<TH1F>(
"HOHrm2Ene" ,
"HOHrm2Ene", 12000, -20 , 100 );
344 HOHrm2Time = fs->
make<TH1F>(
"HOHrm2Time",
"HOHrm2Time", 200, -200, 200 );
345 HOHrp1Ene = fs->
make<TH1F>(
"HOHrp1Ene" ,
"HOHrp1Ene", 12000, -20 , 100 );
346 HOHrp1Time = fs->
make<TH1F>(
"HOHrp1Time",
"HOHrp1Time", 200, -200, 200 );
347 HOHrp2Ene = fs->
make<TH1F>(
"HOHrp2Ene" ,
"HOHrp2Ene", 12000, -20 , 100 );
348 HOHrp2Time = fs->
make<TH1F>(
"HOHrp2Time",
"HOHrp2Time", 200, -200, 200 );
350 HBTvsE = fs->
make<TH2F>(
"HBTvsE",
"HBTvsE",305, -5, 300, 100, -100, 100);
351 HETvsE = fs->
make<TH2F>(
"HETvsE",
"HETvsE",305, -5, 300, 100, -100, 100);
353 HFTvsE = fs->
make<TH2F>(
"HFTvsE",
"HFTvsE",305, -5, 300, 100, -100, 100);
354 HFTvsEFlagged = fs->
make<TH2F>(
"HFTvsEFlagged",
"HFTvsEFlagged",305, -5, 300, 100, -100, 100);
355 HFTvsEFlagged2 = fs->
make<TH2F>(
"HFTvsEFlagged2",
"HFTvsEFlagged2",305, -5, 300, 100, -100, 100);
357 HFTvsEThr = fs->
make<TH2F>(
"HFTvsEThr",
"HFTvsEThr",305, -5, 300, 100, -100, 100);
358 HFTvsEFlaggedThr = fs->
make<TH2F>(
"HFTvsEFlaggedThr",
"HFTvsEFlaggedThr",305, -5, 300, 100, -100, 100);
359 HFTvsEFlagged2Thr = fs->
make<TH2F>(
"HFTvsEFlagged2Thr",
"HFTvsEFlagged2Thr",305, -5, 300, 100, -100, 100);
361 HOTvsE = fs->
make<TH2F>(
"HOTvsE",
"HOTvsE",305, -5, 300, 100, -100, 100);
363 HFvsZ = fs->
make<TH2F>(
"HFvsZ",
"HFvsZ",100,-50,50,100,-50,50);
367 HOocc = fs->
make<TH2F>(
"HOocc",
"HOocc",85,-42.5,42.5,70,0.5,70.5);
368 HBocc = fs->
make<TH2F>(
"HBocc",
"HBocc",85,-42.5,42.5,70,0.5,70.5);
369 HEocc = fs->
make<TH2F>(
"HEocc",
"HEocc",85,-42.5,42.5,70,0.5,70.5);
370 HFocc = fs->
make<TH2F>(
"HFocc",
"HFocc",85,-42.5,42.5,70,0.5,70.5);
371 HFoccTime = fs->
make<TH2F>(
"HFoccTime",
"HFoccTime",85,-42.5,42.5,70,0.5,70.5);
372 HFoccFlagged = fs->
make<TH2F>(
"HFoccFlagged",
"HFoccFlagged",85,-42.5,42.5,70,0.5,70.5);
373 HFoccFlagged2 = fs->
make<TH2F>(
"HFoccFlagged2",
"HFoccFlagged2",85,-42.5,42.5,70,0.5,70.5);
375 HFEtaPhiNFlagged = fs->
make<TH2F>(
"HFEtaPhiNFlagged",
"HFEtaPhiNFlagged",85,-42.5,42.5,70,0.5,70.5);
378 HFEtaFlagged = fs->
make<TH1F>(
"HFEtaFlagged",
"HFEtaFlagged",85,-42.5,42.5);
384 HFEtaNFlagged = fs->
make<TProfile>(
"HFEtaNFlagged",
"HFEtaNFlagged",85,-42.5,42.5,0, 10000);
386 HOoccOOT = fs->
make<TH2F>(
"HOoccOOT",
"HOoccOOT",85,-42.5,42.5,70,0.5,70.5);
387 HBoccOOT = fs->
make<TH2F>(
"HBoccOOT",
"HBoccOOT",85,-42.5,42.5,70,0.5,70.5);
388 HEoccOOT = fs->
make<TH2F>(
"HEoccOOT",
"HEoccOOT",85,-42.5,42.5,70,0.5,70.5);
389 HFoccOOT = fs->
make<TH2F>(
"HFoccOOT",
"HFoccOOT",85,-42.5,42.5,70,0.5,70.5);
391 HFEnePMT0 = fs->
make<TH1F>(
"HFEnePMT0",
"HFEnePMT0", 210, -10, 200 );
392 HFEnePMT1 = fs->
make<TH1F>(
"HFEnePMT1",
"HFEnePMT1", 210, -10, 200 );
393 HFEnePMT2 = fs->
make<TH1F>(
"HFEnePMT2",
"HFEnePMT2", 210, -10, 200 );
394 HFTimePMT0 = fs->
make<TH1F>(
"HFTimePMT0",
"HFTimePMT0", 200, -100, 100 );
395 HFTimePMT1 = fs->
make<TH1F>(
"HFTimePMT1",
"HFTimePMT1", 200, -100, 100 );
396 HFTimePMT2 = fs->
make<TH1F>(
"HFTimePMT2",
"HFTimePMT2", 200, -100, 100 );
398 HFEne = fs->
make<TH1F>(
"HFEne",
"HFEne", 210, -10, 200 );
399 HFEneFlagged = fs->
make<TH1F>(
"HFEneFlagged",
"HFEneFlagged", 210, -10, 200 );
400 HFEneFlagged2 = fs->
make<TH1F>(
"HFEneFlagged2",
"HFEneFlagged2", 210, -10, 200 );
401 HFEneTh = fs->
make<TH1F>(
"HFEneTh",
"HFEneTh", 210, -10, 200 );
402 HFEneTh1 = fs->
make<TH1F>(
"HFEneTh1",
"HFEneTh1", 210, -10, 200 );
403 HFEneP = fs->
make<TH1F>(
"HFEneP",
"HFEneP", 200, -5, 10 );
404 HFEneM = fs->
make<TH1F>(
"HFEneM",
"HFEneM", 200, -5, 10 );
405 HFTime = fs->
make<TH1F>(
"HFTime",
"HFTime", 200, -100, 100 );
406 PMTHits = fs->
make<TH1F>(
"PMTHits",
"PMTHits", 10, 0, 10 );
407 HFTimeFlagged = fs->
make<TH1F>(
"HFTimeFlagged",
"HFTimeFlagged", 200, -100, 100 );
409 HFTimeFlagged2 = fs->
make<TH1F>(
"HFTimeFlagged2",
"HFTimeFlagged2", 200, -100, 100 );
415 HFTimeFlagged3 = fs->
make<TH1F>(
"HFTimeFlagged3",
"HFTimeFlagged3", 200, -100, 100 );
437 HFTimeTh = fs->
make<TH1F>(
"HFTimeTh",
"HFTimeTh", 200, -100, 100 );
438 HFTimeTh1 = fs->
make<TH1F>(
"HFTimeTh1",
"HFTimeTh1", 200, -100, 100 );
439 HFTimeTh2 = fs->
make<TH1F>(
"HFTimeTh2",
"HFTimeTh2", 200, -100, 100 );
440 HFTimeTh3 = fs->
make<TH1F>(
"HFTimeTh3",
"HFTimeTh3", 200, -100, 100 );
441 HFTimeThR = fs->
make<TH1F>(
"HFTimeThR",
"HFTimeThR", 200, -100, 100 );
442 HFTimeTh1R = fs->
make<TH1F>(
"HFTimeTh1R",
"HFTimeTh1R", 200, -100, 100 );
443 HFTimeTh2R = fs->
make<TH1F>(
"HFTimeTh2R",
"HFTimeTh2R", 200, -100, 100 );
444 HFTimeTh3R = fs->
make<TH1F>(
"HFTimeTh3R",
"HFTimeTh3R", 200, -100, 100 );
445 HFTimeP = fs->
make<TH1F>(
"HFTimeP",
"HFTimeP", 100, -100, 50 );
446 HFTimeM = fs->
make<TH1F>(
"HFTimeM",
"HFTimeM", 100, -100, 50 );
447 HFTimePMa = fs->
make<TH1F>(
"HFTimePMa",
"HFTimePMa", 100, -100, 100 );
448 HFTimePM = fs->
make<TH1F>(
"HFTimePM",
"HFTimePM", 100, -100, 100 );
451 HFLEneAll = fs->
make<TH1F>(
"HFLEneAll",
"HFLEneAll", 210, -10, 200 );
452 HFLEneAllF = fs->
make<TH1F>(
"HFLEneAllF",
"HFLEneAllF", 210, -10, 200 );
453 HFSEneAll = fs->
make<TH1F>(
"HFSEneAll",
"HFSEneAll", 210, -10, 200 );
454 HFSEneAllF = fs->
make<TH1F>(
"HFSEneAllF",
"HFSEneAllF", 210, -10, 200 );
455 HFLEne = fs->
make<TH1F>(
"HFLEne",
"HFLEne", 200, -5, 10 );
456 HFLTime = fs->
make<TH1F>(
"HFLTime",
"HFLTime", 200, -100, 100 );
457 HFSEne = fs->
make<TH1F>(
"HFSEne",
"HFSEne", 200, -5, 10 );
458 HFSTime = fs->
make<TH1F>(
"HFSTime",
"HFSTime", 200, -100, 100 );
459 HFLSRatio = fs->
make<TH1F>(
"HFLSRatio",
"HFLSRatio", 220, -1.1, 1.1 );
461 HFOERatio = fs->
make<TH1F>(
"HFOERatio",
"HFOERatio", 2200, -1.1, 1.1 );
463 HFLvsS = fs->
make<TH2F>(
"HFLvsS",
"HFLvsS",220,-20,200,220,-20,200);
464 HFLEneNoS = fs->
make<TH1F>(
"HFLEneNoS",
"HFLEneNoS", 205, -5, 200 );
465 HFSEneNoL = fs->
make<TH1F>(
"HFSEneNoL",
"HFSEneNoL", 205, -5, 200 );
472 EBEne = fs->
make<TH1F>(
"EBEne",
"EBEne", 200, -5, 10 );
473 EBEneTh = fs->
make<TH1F>(
"EBEneTh",
"EBEneTh", 200, -5, 10 );
474 EBEneX = fs->
make<TH1F>(
"EBEneX",
"EBEneX", 200, -5, 10 );
475 EBEneY = fs->
make<TH1F>(
"EBEneY",
"EBEneY", 200, -5, 10 );
476 EBTime = fs->
make<TH1F>(
"EBTime",
"EBTime", 200, -100, 100 );
477 EBTimeTh = fs->
make<TH1F>(
"EBTimeTh",
"EBTimeTh", 200, -100, 100 );
478 EBTimeX = fs->
make<TH1F>(
"EBTimeX",
"EBTimeX", 200, -100, 100 );
479 EBTimeY = fs->
make<TH1F>(
"EBTimeY",
"EBTimeY", 200, -100, 100 );
480 EEEne = fs->
make<TH1F>(
"EEEne",
"EEEne", 200, -5, 10 );
481 EEEneTh = fs->
make<TH1F>(
"EEEneTh",
"EEEneTh", 200, -5, 10 );
482 EEEneX = fs->
make<TH1F>(
"EEEneX",
"EEEneX", 200, -5, 10 );
483 EEEneY = fs->
make<TH1F>(
"EEEneY",
"EEEneY", 200, -5, 10 );
484 EEnegEne = fs->
make<TH1F>(
"EEnegEne",
"EEnegEne", 200, -5, 10 );
485 EEposEne = fs->
make<TH1F>(
"EEposEne",
"EEposEne", 200, -5, 10 );
486 EETime = fs->
make<TH1F>(
"EETime",
"EETime", 200, -100, 100 );
487 EETimeTh = fs->
make<TH1F>(
"EETimeTh",
"EETimeTh", 200, -100, 100 );
488 EETimeX = fs->
make<TH1F>(
"EETimeX",
"EETimeX", 200, -100, 100 );
489 EETimeY = fs->
make<TH1F>(
"EETimeY",
"EETimeY", 200, -100, 100 );
490 EEnegTime = fs->
make<TH1F>(
"EEnegTime",
"EEnegTime", 200, -100, 100 );
491 EEposTime = fs->
make<TH1F>(
"EEposTime",
"EEposTime", 200, -100, 100 );
493 h_nTowersCal = fs->
make<TH1F>(
"nTowersCal",
"N Towers in Jet", 100, 0, 50 );
494 h_EMFracCal = fs->
make<TH1F>(
"EMFracCal",
"EM Fraction in Jet", 100, -1.1, 1.1 );
495 h_ptCal = fs->
make<TH1F>(
"ptCal",
"p_{T} of CalJet", 100, 0, 50 );
496 h_etaCal = fs->
make<TH1F>(
"etaCal",
"#eta of CalJet", 100, -4, 4 );
499 h_nGenJets = fs->
make<TH1F>(
"nGenJets",
"Number of GenJets", 20, 0, 20 );
501 h_ptGen = fs->
make<TH1F>(
"ptGen",
"p_{T} of GenJet", 100, 0, 50 );
502 h_etaGen = fs->
make<TH1F>(
"etaGen",
"#eta of GenJet", 100, -4, 4 );
505 h_ptGenL = fs->
make<TH1F>(
"ptGenL",
"p_{T} of GenJetL", 100, 0, 50 );
506 h_etaGenL = fs->
make<TH1F>(
"etaGenL",
"#eta of GenJetL", 100, -4, 4 );
509 h_jetEt = fs->
make<TH1F>(
"jetEt",
"Total Jet Et", 100, 0, 3000 );
511 h_jet1Pt = fs->
make<TH1F>(
"jet1Pt",
"Jet1 Pt", 100, 0, 1000 );
512 h_jet2Pt = fs->
make<TH1F>(
"jet2Pt",
"Jet2 Pt", 100, 0, 1000 );
513 h_jet1Eta = fs->
make<TH1F>(
"jet1Eta",
"Jet1 Eta", 50, -5, 5 );
514 h_jet2Eta = fs->
make<TH1F>(
"jet2Eta",
"Jet2 Eta", 50, -5, 5 );
515 h_jet1PtHLT = fs->
make<TH1F>(
"jet1PtHLT",
"Jet1 Pt HLT", 100, 0, 1000 );
526 jetHOEne = fs->
make<TH1F>(
"jetHOEne" ,
"HO Energy in Jet",100, 0,100);
527 jetEMFraction = fs->
make<TH1F>(
"jetEMFraction",
"Jet EM Fraction", 100, -1.1, 1.1 );
528 NTowers = fs->
make<TH1F>(
"NTowers",
"Number of Towers", 100, 0, 100 );
531 h_EmEnergy = fs->
make<TH2F>(
"EmEnergy",
"Em Energy", 90, -45, 45, 73, 0, 73 );
532 h_HadEnergy = fs->
make<TH2F>(
"HadEnergy",
"Had Energy", 90, -45, 45, 73, 0, 73 );
534 st_Pt = fs->
make<TH1F>(
"st_Pt",
"Pt", 200, 0, 200 );
536 st_Energy = fs->
make<TH1F>(
"st_Energy",
"Tower Energy", 200, 0, 200 );
537 st_EmEnergy = fs->
make<TH1F>(
"st_EmEnergy",
"Tower EmEnergy", 200, 0, 200 );
538 st_HadEnergy = fs->
make<TH1F>(
"st_HadEnergy",
"Tower HadEnergy", 200, 0, 200 );
539 st_OuterEnergy = fs->
make<TH1F>(
"st_OuterEnergy",
"Tower OuterEnergy", 200, 0, 200 );
540 st_Eta = fs->
make<TH1F>(
"st_Eta",
"Eta", 100, -4, 4 );
542 st_iEta = fs->
make<TH1F>(
"st_iEta",
"iEta", 60, -30, 30 );
543 st_iPhi = fs->
make<TH1F>(
"st_iPhi",
"iPhi", 80, 0, 80 );
544 st_Frac = fs->
make<TH1F>(
"st_Frac",
"Frac", 100, 0, 1 );
547 EBvHB = fs->
make<TH2F>(
"EBvHB",
"EB vs HB",1000,0,4500000.,1000,0,1000000.);
548 EEvHE = fs->
make<TH2F>(
"EEvHE",
"EE vs HE",1000,0,4500000.,1000,0,200000.);
550 ECALvHCAL = fs->
make<TH2F>(
"ECALvHCAL",
"ECAL vs HCAL",100,0,20000000.,100,-500000,500000.);
551 ECALvHCALEta1 = fs->
make<TH2F>(
"ECALvHCALEta1",
"ECAL vs HCALEta1",100,0,20000000.,100,-500000,500000.);
552 ECALvHCALEta2 = fs->
make<TH2F>(
"ECALvHCALEta2",
"ECAL vs HCALEta2",100,0,20000000.,100,-500000,500000.);
553 ECALvHCALEta3 = fs->
make<TH2F>(
"ECALvHCALEta3",
"ECAL vs HCALEta3",100,0,20000000.,100,-500000,500000.);
555 EMF_Eta = fs->
make<TProfile>(
"EMF_Eta",
"EMF Eta", 100, -50, 50, 0, 10);
556 EMF_Phi = fs->
make<TProfile>(
"EMF_Phi",
"EMF Phi", 100, 0, 100, 0, 10);
557 EMF_EtaX = fs->
make<TProfile>(
"EMF_EtaX",
"EMF EtaX", 100, -50, 50, 0, 10);
558 EMF_PhiX = fs->
make<TProfile>(
"EMF_PhiX",
"EMF PhiX", 100, 0, 100, 0, 10);
560 HFTimeVsiEtaP = fs->
make<TProfile>(
"HFTimeVsiEtaP",
"HFTimeVsiEtaP", 13, 28.5, 41.5, -100, 100);
561 HFTimeVsiEtaM = fs->
make<TProfile>(
"HFTimeVsiEtaM",
"HFTimeVsiEtaM", 13, -41.5, -28.5, -100, 100);
563 HFTimeVsiEtaP5 = fs->
make<TProfile>(
"HFTimeVsiEtaP5",
"HFTimeVsiEtaP5", 13, 28.5, 41.5, -100, 100);
564 HFTimeVsiEtaM5 = fs->
make<TProfile>(
"HFTimeVsiEtaM5",
"HFTimeVsiEtaM5", 13, -41.5, -28.5, -100, 100);
566 HFTimeVsiEtaP20 = fs->
make<TProfile>(
"HFTimeVsiEtaP20",
"HFTimeVsiEtaP20", 13, 28.5, 41.5, -100, 100);
567 HFTimeVsiEtaM20 = fs->
make<TProfile>(
"HFTimeVsiEtaM20",
"HFTimeVsiEtaM20", 13, -41.5, -28.5, -100, 100);
569 NPass = fs->
make<TH1F>(
"NPass",
"NPass", 3, -1, 1 );
570 NTotal = fs->
make<TH1F>(
"NTotal",
"NTotal", 3, -1, 1 );
571 NTime = fs->
make<TH1F>(
"NTime",
"NTime", 10, 0, 10 );
574 HFRecHitEne = fs->
make<TH1F>(
"HFRecHitEne",
"HFRecHitEne", 300, 0, 3000 );
576 HFRecHitTime = fs->
make<TH1F>(
"HFRecHitTime",
"HFRecHitTime", 120, -60, 60 );
587 HFDigiTimeEne = fs->
make<TH1F>(
"HFDigiTimeEne",
"HFDigiTimeEne", 300, 0, 3000 );
593 for (
int i=0;
i<4000;
i++)
nBNC[
i] = 0;
603 bool Pass, Pass_HFTime, Pass_DiJet, Pass_BunchCrossing, Pass_Vertex;
605 int EtaOk10, EtaOk13, EtaOk40;
610 int HFRecHitFlag[100][100][2];
612 double towerEtCut, towerECut, towerE;
617 unsigned int StableRun = 123732;
619 double HBHEThreshold = 2.0;
620 double HFThreshold = 2.0;
621 double HOThreshold = 2.0;
622 double EBEEThreshold = 2.0;
624 double HBHEThreshold1 = 4.0;
625 double HFThreshold1 = 4.0;
626 double HOThreshold1 = 4.0;
629 double HBHEThreshold2 = 10.0;
630 double HFThreshold2 = 10.0;
634 double HBHEThreshold3 = 40.0;
635 double HFThreshold3 = 40.0;
639 float minJetPt = 20.;
640 float minJetPt10 = 10.;
641 int jetInd, allJetInd;
697 for (
unsigned int i=0;
i!=
n;
i++) {
730 edm::LogInfo(
"myJetAna") <<
"TriggerResults::HLT not found, "
731 "automatically select events";
751 if (evt.
id().
run() == 122294)
754 if (evt.
id().
run() == 122314)
757 if (evt.
id().
run() == 123575)
759 if (evt.
id().
run() == 123596)
763 if (evt.
id().
run() == 124009) {
771 if (evt.
id().
run() == 124020) {
779 if (evt.
id().
run() == 124024) {
793 Pass_BunchCrossing =
true;
795 Pass_BunchCrossing =
false;
803 double HFM_ETime, HFP_ETime;
812 for (
int i=0;
i<100;
i++) {
813 for (
int j=0;
j<100;
j++) {
816 HFRecHitFlag[
i][
j][0] = 0;
817 HFRecHitFlag[
i][
j][1] = 0;
823 int NHFLongShortHits;
825 NHFLongShortHits = 0;
831 std::vector<edm::Handle<HFRecHitCollection> > colls;
834 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
835 for (i=colls.begin(); i!=colls.end(); i++) {
868 float en =
j->energy();
869 float time =
j->time();
870 if ((en > 20.) && (time>20.)) {
875 int ieta =
id.
ieta();
876 int iphi =
id.iphi();
877 int depth =
id.depth();
882 HFRecHit[ieta+41][iphi][depth-1] = en;
883 HFRecHitFlag[ieta+41][iphi][depth-1] =
j->flagField(0);
891 if (
j->id().ieta()<0) {
892 if (
j->energy() > HFThreshold) {
893 HFM_ETime +=
j->energy()*
j->time();
894 HFM_E +=
j->energy();
897 if (
j->energy() > HFThreshold) {
898 HFP_ETime +=
j->energy()*
j->time();
899 HFP_E +=
j->energy();
908 cout <<
"No HF RecHits." << endl;
911 cout <<
"N HF Hits" << NHFLongShortHits <<
" " << NHFDigiTimeHits << endl;
917 double OER = 0, OddEne, EvenEne;
920 for (
int iphi=0; iphi<100; iphi++) {
921 OddEne = EvenEne = 0.;
924 for (
int ieta=0; ieta<100; ieta++) {
925 if (
HFRecHit[ieta][iphi][0] > 1.0) {
934 if (
HFRecHit[ieta][iphi][1] > 1.0) {
944 if (((OddEne + EvenEne) > 10.) && (nOdd > 1) && (nEven > 1)) {
945 OER = (OddEne - EvenEne) / (OddEne + EvenEne);
950 if ((HFP_E > 0.) && (HFM_E > 0.)) {
951 HF_PMM = (HFP_ETime / HFP_E) - (HFM_ETime / HFM_E);
958 if (fabs(HF_PMM) < 10.) {
981 for( CaloJetCollection::const_iterator cal =
caloJets->begin(); cal !=
caloJets->end(); ++ cal ) {
984 if (nJet == 0) p4tmp[0] = cal->p4();
985 if (nJet == 1) p4tmp[1] = cal->p4();
987 if ( (cal->pt() > 3.) &&
988 (fabs(cal->eta()) < 3.0) ) {
1018 for (reco::VertexCollection::const_iterator vertex=vC.begin(); vertex!=vC.end(); vertex++){
1022 if ( (fabs(VTX) < 20.) && (nVTX > 0) ){
1025 Pass_Vertex =
false;
1051 evt.
getByLabel(
"siPixelClusters", hClusterColl);
1055 evt.
getByLabel(
"generalTracks", trackCollection);
1064 if (evt.
id().
run() == 1) {
1065 if ( (Pass_DiJet) &&
1074 if ( (Pass_BunchCrossing) &&
1099 if ((tC.size() > 100) && (clustColl.size() > 1000))
Pass =
true;
1116 if(!summary_h.isValid()) {
1123 bool Pass_NoiseSummary;
1124 Pass_NoiseSummary =
true;
1125 if(
summary.minE2Over10TS()<0.7) {
1126 Pass_NoiseSummary =
false;
1128 if(
summary.maxE2Over10TS()>0.96) {
1129 Pass_NoiseSummary =
false;
1131 if(
summary.maxHPDHits()>=17) {
1132 Pass_NoiseSummary =
false;
1134 if(
summary.maxRBXHits()>=999) {
1135 Pass_NoiseSummary =
false;
1137 if(
summary.maxHPDNoOtherHits()>=10) {
1138 Pass_NoiseSummary =
false;
1141 Pass_NoiseSummary =
false;
1143 if(
summary.min25GeVHitTime()<-9999.0) {
1144 Pass_NoiseSummary =
false;
1146 if(
summary.max25GeVHitTime()>9999.0) {
1147 Pass_NoiseSummary =
false;
1149 if(
summary.minRBXEMF()<0.01) {
1152 if (Pass_NoiseSummary) {
1172 for (
int i=0;
i<36;
i++) {
1180 for (
int i=0;
i<144;
i++) {
1189 double ETotal, emFrac;
1190 double HCALTotalCaloTowerE, ECALTotalCaloTowerE;
1191 double HCALTotalCaloTowerE_Eta1, ECALTotalCaloTowerE_Eta1;
1192 double HCALTotalCaloTowerE_Eta2, ECALTotalCaloTowerE_Eta2;
1193 double HCALTotalCaloTowerE_Eta3, ECALTotalCaloTowerE_Eta3;
1198 HCALTotalCaloTowerE = 0;
1199 ECALTotalCaloTowerE = 0;
1200 HCALTotalCaloTowerE_Eta1 = 0.;
1201 ECALTotalCaloTowerE_Eta1 = 0.;
1202 HCALTotalCaloTowerE_Eta2 = 0.;
1203 ECALTotalCaloTowerE_Eta2 = 0.;
1204 HCALTotalCaloTowerE_Eta3 = 0.;
1205 ECALTotalCaloTowerE_Eta3 = 0.;
1208 tower != caloTowers->end(); tower++) {
1209 ETotal += tower->hadEnergy();
1210 ETotal += tower->emEnergy();
1214 tower != caloTowers->end(); tower++) {
1217 if (
abs(tower->ieta()) < 100)
EMF_Eta->Fill(tower->ieta(), emFrac);
1219 if (
abs(tower->ieta()) < 15) {
1223 if ( (
abs(tower->ieta()) > 17) && ((
abs(tower->ieta()) < 30)) ){
1227 if (
abs(tower->ieta()) > 29) {
1240 if ((tower->emEnergy()+tower->hadEnergy()) != 0) {
1241 emFrac = tower->emEnergy()/(tower->emEnergy()+tower->hadEnergy());
1256 if (
abs(tower->iphi()) < 100)
EMF_Phi->Fill(tower->iphi(), emFrac);
1257 if (
abs(tower->ieta()) < 100)
EMF_Eta->Fill(tower->ieta(), emFrac);
1258 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1263 if (
abs(tower->iphi()) < 100)
EMF_PhiX->Fill(tower->iphi(), emFrac);
1264 if (
abs(tower->ieta()) < 100)
EMF_EtaX->Fill(tower->ieta(), emFrac);
1267 HCALTotalCaloTowerE += tower->hadEnergy();
1268 ECALTotalCaloTowerE += tower->emEnergy();
1270 towerE = tower->hadEnergy() + tower->emEnergy();
1271 if (tower->et() > towerEtCut)
caloEtaEt->Fill(tower->eta());
1272 if (towerE > towerECut)
caloEta->Fill(tower->eta());
1275 if (fabs(tower->eta()) < 1.3) {
1276 HCALTotalCaloTowerE_Eta1 += tower->hadEnergy();
1277 ECALTotalCaloTowerE_Eta1 += tower->emEnergy();
1279 if ((fabs(tower->eta()) >= 1.3) && (fabs(tower->eta()) < 2.5)) {
1280 HCALTotalCaloTowerE_Eta2 += tower->hadEnergy();
1281 ECALTotalCaloTowerE_Eta2 += tower->emEnergy();
1283 if (fabs(tower->eta()) > 2.5) {
1284 HCALTotalCaloTowerE_Eta3 += tower->hadEnergy();
1285 ECALTotalCaloTowerE_Eta3 += tower->emEnergy();
1296 if ((tower->hadEnergy() + tower->emEnergy()) > 2.0) {
1298 int iRBX = tower->iphi();
1300 if (iRBX == 0) iRBX = 17;
1301 if (iRBX == -1) iRBX = 18;
1304 if (tower->ieta() < 0) iRBX += 18;
1319 int iHPD = tower->iphi();
1320 if (tower->ieta() < 0) iHPD = iHPD + 72;
1340 ECALvHCAL->Fill(HCALTotalCaloTowerE, ECALTotalCaloTowerE);
1341 ECALvHCALEta1->Fill(HCALTotalCaloTowerE_Eta1, ECALTotalCaloTowerE_Eta1);
1342 ECALvHCALEta2->Fill(HCALTotalCaloTowerE_Eta2, ECALTotalCaloTowerE_Eta2);
1343 ECALvHCALEta3->Fill(HCALTotalCaloTowerE_Eta3, ECALTotalCaloTowerE_Eta3);
1367 for (
int i=0;
i<36;
i++) {
1378 if ( (nRBX == 1) && (nTowers > 24) ) {
1384 for (
int i=0;
i<144;
i++) {
1395 if ( (nHPD == 1) && (nTowers > 6) ) {
1397 cout <<
" nHPD = " << nHPD
1398 <<
" Towers = " << nTowers
1399 <<
" Type = " << evtType
1411 Int_t JetLoPass = 0;
1413 if (triggerResults.
isValid()) {
1417 unsigned int n = triggerResults->size();
1418 for (
unsigned int i=0;
i!=
n;
i++) {
1442 triggerResults = (*tr);
1449 edm::LogInfo(
"myJetAna") <<
"TriggerResults::HLT not found, "
1450 "automatically select events";
1490 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
1494 double corPt = scale*cal->pt();
1498 if (corPt>highestPt) {
1500 p4cortmp[1] = p4cortmp[0];
1502 p4cortmp[0] = scale*cal->p4();
1503 }
else if (corPt>nextPt) {
1505 p4cortmp[1] = scale*cal->p4();
1509 if (allJetInd == 1) {
1512 if (JetLoPass != 0)
h_jet1PtHLT->Fill( cal->pt() );
1513 p4tmp[0] = cal->p4();
1514 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
1515 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
1516 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
1518 if (allJetInd == 2) {
1521 p4tmp[1] = cal->p4();
1522 if ( fabs(cal->eta()) < 1.0) EtaOk10++;
1523 if ( fabs(cal->eta()) < 1.3) EtaOk13++;
1524 if ( fabs(cal->eta()) < 4.0) EtaOk40++;
1527 if ( cal->pt() > minJetPt) {
1528 const std::vector<CaloTowerPtr> jetCaloRefs = cal->getCaloConstituents();
1529 int nConstituents = jetCaloRefs.size();
1542 LeadMass = (p4tmp[0]+p4tmp[1]).mass();
1551 int nTow1, nTow2, nTow3, nTow4;
1558 for ( CaloJetCollection::const_iterator ijet=caloJets->begin(); ijet!=caloJets->end(); ijet++) {
1561 float hadEne = ijet->hadEnergyInHB() + ijet->hadEnergyInHO() +
1562 ijet->hadEnergyInHE() + ijet->hadEnergyInHF();
1563 float emEne = ijet->emEnergyInEB() + ijet->emEnergyInEE() + ijet->emEnergyInHF();
1564 float had = ijet->energyFractionHadronic();
1565 float j_et = ijet->et();
1568 if (fabs(ijet->eta()) < 1.3) {
1572 if (ijet->pt() > minJetPt10)
hadFracEta1->Fill(had);
1576 if ((fabs(ijet->eta()) > 1.3) && (fabs(ijet->eta()) < 3.) ) {
1580 if (ijet->pt() > minJetPt10)
hadFracEta2->Fill(had);
1584 if (fabs(ijet->eta()) > 3.) {
1588 if (ijet->pt() > minJetPt10)
hadFracEta3->Fill(had);
1592 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
1593 int nConstituents = jetCaloRefs.size();
1598 nTow1 = nTow2 = nTow3 = nTow4 = 0;
1599 for (
int i = 0;
i <nConstituents ;
i++){
1601 float et = jetCaloRefs[
i]->et();
1603 if (et > 0.5) nTow1++;
1604 if (et > 1.0) nTow2++;
1605 if (et > 1.5) nTow3++;
1606 if (et > 2.0) nTow4++;
1628 double SumEtNotJets(0);
1629 double SumEtJets(0);
1630 double SumEtTowers(0);
1631 double TotalClusteredE(0);
1632 double TotalUnclusteredE(0);
1637 double sumTowerAllPx(0);
1638 double sumTowerAllPy(0);
1640 double sumTowerAllEx(0);
1641 double sumTowerAllEy(0);
1644 double HBTotalE, HETotalE, HOTotalE, HFTotalE;
1646 double EBTotalE, EETotalE;
1648 std::vector<CaloTowerPtr> UsedTowerList;
1649 std::vector<CaloTower> TowerUsedInJets;
1650 std::vector<CaloTower> TowerNotUsedInJets;
1659 HBTotalE = HETotalE = HOTotalE = HFTotalE = 0.;
1661 std::vector<edm::Handle<HBHERecHitCollection> > colls;
1663 std::vector<edm::Handle<HBHERecHitCollection> >::iterator
i;
1664 for (i=colls.begin(); i!=colls.end(); i++) {
1670 HBEne->Fill(
j->energy());
1674 HBTvsE->Fill(
j->energy(),
j->time());
1676 if (
j->time() > 20.)
HBEneTThr->Fill(
j->energy());
1678 if ((
j->time()<-25.) || (
j->time()>75.)) {
1680 if (
j->energy() > HBHEThreshold)
HBEneOOTTh->Fill(
j->energy());
1681 if (
j->energy() > HBHEThreshold1)
HBEneOOTTh1->Fill(
j->energy());
1683 if (
j->energy() > HBHEThreshold) {
1690 HBTotalE +=
j->energy();
1691 HBocc->Fill(
j->id().ieta(),
j->id().iphi());
1695 if (
j->energy() > HBHEThreshold1) {
1702 if ((
j->time()<-25.) || (
j->time()>75.)) {
1703 HBoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1706 if (
j->energy() > HBHEThreshold2) {
1713 if (
j->energy() > HBHEThreshold3) {
1717 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1719 if (
j->energy() > HBHEThreshold)
HBTimeX->Fill(
j->time());
1721 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
1723 if (
j->energy() > HBHEThreshold)
HBTimeY->Fill(
j->time());
1727 HEEne->Fill(
j->energy());
1731 HETvsE->Fill(
j->energy(),
j->time());
1733 if (
j->time() > 20.)
HEEneTThr->Fill(
j->energy());
1735 if ((
j->time()<-25.) || (
j->time()>75.)) {
1737 if (
j->energy() > HBHEThreshold)
HEEneOOTTh->Fill(
j->energy());
1738 if (
j->energy() > HBHEThreshold1)
HEEneOOTTh1->Fill(
j->energy());
1741 if (
j->energy() > HBHEThreshold) {
1748 HETotalE +=
j->energy();
1749 HEocc->Fill(
j->id().ieta(),
j->id().iphi());
1753 if (
j->energy() > HBHEThreshold1) {
1759 if ((
j->time()<-25.) || (
j->time()>75.)) {
1760 HEoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1763 if (
j->energy() > HBHEThreshold2) {
1769 if (
j->energy() > HBHEThreshold3) {
1774 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
1776 if (
j->energy() > HBHEThreshold)
HETimeX->Fill(
j->time());
1778 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
1780 if (
j->energy() > HBHEThreshold)
HETimeY->Fill(
j->time());
1784 if (
j->id().ieta()<0) {
1786 if (
j->energy() > HBHEThreshold) {
1791 if (
j->energy() > HBHEThreshold) {
1810 cout <<
"No HB/HE RecHits." << endl;
1822 std::vector<edm::Handle<HFRecHitCollection> > colls;
1824 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
1825 for (i=colls.begin(); i!=colls.end(); i++) {
1835 cout <<
"No HF RecHits." << endl;
1842 std::vector<edm::Handle<HFRecHitCollection> > colls;
1844 std::vector<edm::Handle<HFRecHitCollection> >::iterator
i;
1845 for (i=colls.begin(); i!=colls.end(); i++) {
1860 if (NPMTHits == 1) {
1871 if (
j->energy() > 20.) {
1872 if (NPMTHits == 0) {
1876 if (NPMTHits == 1) {
1895 if (
j->energy() > 5.) {
1900 if (
j->energy() > 20.) {
1905 HFEne->Fill(
j->energy());
1907 HFTvsE->Fill(
j->energy(),
j->time());
1909 if (
j->time() > 20.)
HFEneTThr->Fill(
j->energy());
1911 if (
j->energy() > 10.)
HFTvsEThr->Fill(
j->energy(),
j->time());
1938 if (
j->energy() > HFThreshold) {
1953 if (evt.
id().
run() >= StableRun) {
1962 HFTotalE +=
j->energy();
1963 HFocc->Fill(
j->id().ieta(),
j->id().iphi());
1968 if (
j->energy() > HFThreshold1) {
1974 if ((
j->time()<-20.) || (
j->time()>20.)) {
1975 HFoccOOT->Fill(
j->id().ieta(),
j->id().iphi());
1978 if (
j->energy() > HFThreshold2) {
1984 if (
j->energy() > HFThreshold3) {
1991 if (
j->id().ieta()<0) {
1992 if (
j->energy() > HFThreshold) {
1995 HFM_ETime +=
j->energy()*
j->time();
1996 HFM_E +=
j->energy();
1999 if (
j->energy() > HFThreshold) {
2002 HFP_ETime +=
j->energy()*
j->time();
2003 HFP_E +=
j->energy();
2008 if (
j->id().depth() == 1){
2010 if (
j->energy() > HFThreshold)
HFLTime->Fill(
j->time());
2013 if (
j->energy() > HFThreshold)
HFSTime->Fill(
j->time());
2022 cout <<
"No HF RecHits." << endl;
2027 for (
int ieta=0; ieta<100; ieta++) {
2028 for (
int iphi=0; iphi<100; iphi++) {
2029 double longF, shortF;
2030 if (
HFRecHit[ieta][iphi][0] == -10.) {
2035 if (
HFRecHit[ieta][iphi][1] == -10.) {
2043 if (shortF > 0.)
HFSEneAll->Fill(shortF);
2046 if ((longF > 20.) || (shortF > 20.)) {
2047 double R = (longF-shortF)/(longF+shortF);
2049 if (fabs(R) > 0.995) {
2053 if (longF > (162.4-10.19*
abs(ieta-41)+.21*
abs(ieta-41)*
abs(ieta-41)) ) {
2062 if (shortF > (129.9-6.61*
abs(ieta-41)+0.1153*
abs(ieta-41)*
abs(ieta-41)) ) {
2080 if ( (
HFRecHit[ieta][iphi][1] == -10.) && (
HFRecHit[ieta][iphi][0] != -10.) ) {
2084 if ( (
HFRecHit[ieta][iphi][0] == -10.) && (
HFRecHit[ieta][iphi][1] != -10.) ) {
2092 if (HFP_E > 0.)
HFTimeP->Fill(HFP_ETime / HFP_E);
2093 if (HFM_E > 0.)
HFTimeM->Fill(HFM_ETime / HFM_E);
2095 if ((HFP_E > 0.) && (HFM_E > 0.)) {
2096 HF_PMM = (HFP_ETime / HFP_E) - (HFM_ETime / HFM_E);
2105 std::vector<edm::Handle<HORecHitCollection> > colls;
2107 std::vector<edm::Handle<HORecHitCollection> >::iterator
i;
2108 for (i=colls.begin(); i!=colls.end(); i++) {
2111 HOEne->Fill(
j->energy());
2113 HOTvsE->Fill(
j->energy(),
j->time());
2114 if (
j->energy() > HOThreshold1) {
2117 if (
j->energy() > HOThreshold) {
2120 HOTotalE +=
j->energy();
2121 HOocc->Fill(
j->id().ieta(),
j->id().iphi());
2125 if (((
j->id().iphi()>=59 &&
j->id().iphi()<=70 &&
2126 j->id().ieta()>=11 &&
j->id().ieta()<=15) ||
2127 (
j->id().iphi()>=47 &&
j->id().iphi()<=58 &&
2128 j->id().ieta()>=5 &&
j->id().ieta()<=10)))
2131 if (
j->energy() > HOThreshold)
HOSTime->Fill(
j->time());
2132 }
else if ((
j->id().iphi()<59 ||
j->id().iphi()>70 ||
2133 j->id().ieta()<11 ||
j->id().ieta()>15) &&
2134 (
j->id().iphi()<47 ||
j->id().iphi()>58 ||
2135 j->id().ieta()<5 ||
j->id().ieta()>10))
2138 if (
j->energy() > HOThreshold)
HOHTime->Fill(
j->time());
2140 if (
j->id().ieta()<= -11){
2142 if (
j->energy() > HOThreshold)
HOHrm2Time->Fill(
j->time());
2143 }
else if (
j->id().ieta()>= -10 &&
j->id().ieta() <= -5) {
2145 if (
j->energy() > HOThreshold)
HOHrm1Time->Fill(
j->time());
2146 }
else if (
j->id().ieta()>= -4 &&
j->id().ieta() <= 4) {
2148 if (
j->energy() > HOThreshold)
HOHr0Time->Fill(
j->time());
2149 }
else if (
j->id().ieta()>= 5 &&
j->id().ieta() <= 10) {
2151 if (
j->energy() > HOThreshold)
HOHrp1Time->Fill(
j->time());
2152 }
else if (
j->id().ieta()>= 11) {
2154 if (
j->energy() > HOThreshold)
HOHrp2Time->Fill(
j->time());
2156 std::cout <<
"Finding events that are in no ring !?!" << std::endl;
2157 std::cout <<
"eta = " <<
j->id().ieta() << std::endl;
2161 std::cout <<
"Finding events that are neither SiPM nor HPD!?" << std::endl;
2171 cout <<
"No HO RecHits." << endl;
2176 EBTotalE = EETotalE = 0.;
2180 std::vector<edm::Handle<EcalRecHitCollection> > colls;
2182 std::vector<edm::Handle<EcalRecHitCollection> >::iterator
i;
2183 for (i=colls.begin(); i!=colls.end(); i++) {
2186 EBEne->Fill(
j->energy());
2188 if (
j->energy() > EBEEThreshold) {
2192 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
2196 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457) ) {
2200 EBTotalE +=
j->energy();
2203 EEEne->Fill(
j->energy());
2205 if (
j->energy() > EBEEThreshold) {
2209 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 453) ) {
2213 if ( (evt.
id().
run() == 120020) && (evt.
id().
event() == 457 ) ) {
2217 EETotalE +=
j->energy();
2224 cout <<
"No ECAL RecHits." << endl;
2227 EBvHB->Fill(HBTotalE, EBTotalE);
2228 EEvHE->Fill(HETotalE, EETotalE);
2282 if ( (EBTotalE > 320000) && (EBTotalE < 330000) &&
2283 (HBTotalE > 2700000) && (HBTotalE < 2800000) ) {
2306 nTow1 = nTow2 = nTow3 = nTow4 = 0;
2308 double sum_et = 0.0;
2309 double sum_ex = 0.0;
2310 double sum_ey = 0.0;
2312 double HFsum_et = 0.0;
2313 double HFsum_ex = 0.0;
2314 double HFsum_ey = 0.0;
2321 tower != caloTowers->end(); tower++) {
2323 Double_t et = tower->et();
2324 Double_t phix = tower->phi();
2326 if (et > 0.5) nTow1++;
2327 if (et > 1.0) nTow2++;
2328 if (et > 1.5) nTow3++;
2329 if (et > 2.0) nTow4++;
2335 if (tower->emEnergy() > 2.0) {
2336 h_EmEnergy->Fill (tower->ieta(), tower->iphi(), tower->emEnergy());
2338 if (tower->hadEnergy() > 2.0) {
2339 h_HadEnergy->Fill (tower->ieta(), tower->iphi(), tower->hadEnergy());
2342 if (fabs(tower->ieta()) > 29) {
2344 HFsum_ex += et*
cos(phix);
2345 HFsum_ey += et*
sin(phix);
2351 ETime->Fill(tower->ecalTime());
2352 HTime->Fill(tower->hcalTime());
2361 sum_ex += et*
cos(phix);
2362 sum_ey += et*
sin(phix);
2365 Double_t
phi = tower->phi();
2366 SumEtTowers += tower->et();
2368 sumTowerAllEx += et*
cos(phi);
2369 sumTowerAllEy += et*
sin(phi);
2379 HFMET->Fill(
sqrt( HFsum_ex*HFsum_ex + HFsum_ey*HFsum_ey));
2393 UsedTowerList.clear();
2394 TowerUsedInJets.clear();
2395 TowerNotUsedInJets.clear();
2399 for ( CaloJetCollection::const_iterator ijet=caloJets->begin(); ijet!=caloJets->end(); ijet++) {
2401 Double_t
jetPt = ijet->pt();
2402 Double_t
jetEta = ijet->eta();
2403 Double_t
jetPhi = ijet->phi();
2407 Double_t jetPx = jetPt*
cos(jetPhi);
2408 Double_t jetPy = jetPt*
sin(jetPhi);
2413 const std::vector<CaloTowerPtr> jetCaloRefs = ijet->getCaloConstituents();
2414 int nConstituents = jetCaloRefs.size();
2415 for (
int i = 0;
i <nConstituents ;
i++){
2417 UsedTowerList.push_back(jetCaloRefs[
i]);
2424 if ( (jetPt>80.0) && (fabs(jetEta) < 1.3) ){
2425 st_Pt->Fill( jetPt );
2426 int nConstituents = ijet->getCaloConstituents().size();
2432 for(
unsigned twr=0; twr<ijet->getCaloConstituents().size(); ++twr){
2433 CaloTowerPtr tower = (ijet->getCaloConstituents())[twr];
2435 if( tower->et()>0. ){
2437 if (tower->energy() > maxEne) maxEne = tower->energy();
2438 totEne += tower->energy();
2445 st_Eta->Fill( tower->eta() );
2446 st_Phi->Fill( tower->phi() );
2448 st_iEta->Fill( tower->ieta() );
2449 st_iPhi->Fill( tower->iphi() );
2467 st_Frac->Fill( maxEne / totEne );
2473 int NTowersUsed = UsedTowerList.size();
2477 tower != caloTowers->end(); tower++) {
2480 Double_t et = tower->et();
2484 Double_t
phi = tower->phi();
2485 SumEtTowers += tower->et();
2487 sumTowerAllPx += et*
cos(phi);
2488 sumTowerAllPy += et*
sin(phi);
2492 for(
int i=0;
i<NTowersUsed;
i++){
2493 if(tower->id() == UsedTowerList[
i]->id()){
2500 TowerUsedInJets.push_back(t);
2502 TowerNotUsedInJets.push_back(t);
2507 int nUsed = TowerUsedInJets.size();
2508 int nNotUsed = TowerNotUsedInJets.size();
2512 TotalClusteredE = 0;
2513 TotalUnclusteredE = 0;
2515 for(
int i=0;
i<nUsed;
i++){
2516 SumEtJets += TowerUsedInJets[
i].et();
2518 if (TowerUsedInJets[
i].
energy() > 1.0)
2519 TotalClusteredE += TowerUsedInJets[
i].energy();
2523 for(
int i=0;
i<nNotUsed;
i++){
2524 if (TowerNotUsedInJets[
i].et() > 0.5)
2525 SumEtNotJets += TowerNotUsedInJets[
i].et();
2529 if (TowerNotUsedInJets[
i].
energy() > 1.0)
2530 TotalUnclusteredE += TowerNotUsedInJets[
i].energy();
2546 calomet = &(calometcol->front());
2548 double caloSumET = calomet->
sumEt();
2549 double caloMET = calomet->
pt();
2550 double caloMETSig = calomet->
mEtSig();
2551 double caloMEx = calomet->
px();
2552 double caloMEy = calomet->
py();
2553 double caloMETPhi = calomet->
phi();
2555 SumEt->Fill(caloSumET);
2559 if (evtType == 0)
MET_Tower->Fill(caloMET);
2560 if (evtType == 1)
MET_RBX->Fill(caloMET);
2561 if (evtType == 2)
MET_HPD->Fill(caloMET);
2562 METSig->Fill(caloMETSig);
2565 METPhi->Fill(caloMETPhi);
2592 evt.
getByLabel(
"offlinePrimaryVertices", vertexCollection);
2598 for (reco::VertexCollection::const_iterator vertex=vC.begin(); vertex!=vC.end(); vertex++){
2600 h_Vx->Fill(vertex->x());
2601 h_Vy->Fill(vertex->y());
2602 h_Vz->Fill(vertex->z());
2609 if ((HF_PMM !=
INVALID) || (nVTX > 0)) {
2610 HFvsZ->Fill(HF_PMM,VTX);
2667 for (reco::TrackCollection::const_iterator track=tC.begin(); track!=tC.end(); track++){
2726 for( CaloJetCollection::const_iterator ijet = caloJets->begin(); ijet != caloJets->end(); ++ ijet ) {
2740 h_pt->Fill(ijet->pt());
2741 if (evtType == 0)
h_ptTower->Fill(ijet->pt());
2742 if (evtType == 1)
h_ptRBX->Fill(ijet->pt());
2743 if (evtType == 2)
h_ptHPD->Fill(ijet->pt());
2744 h_et->Fill(ijet->et());
2745 h_eta->Fill(ijet->eta());
2746 h_phi->Fill(ijet->phi());
2748 jetHOEne->Fill(ijet->hadEnergyInHO());
2801 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
virtual float pt() const
transverse momentum
#define DEFINE_FWK_MODULE(type)
virtual float phi() const
momentum azimuthal angle
Sin< T >::type sin(const T &t)
std::vector< Track > TrackCollection
collection of Tracks
std::vector< HFRecHit >::const_iterator const_iterator
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
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)
static std::string const triggerResults
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
virtual double px() const
x coordinate of momentum vector
TProfile * HFTimeVsiEtaM5
edm::InputTag hcalNoiseSummaryTag_
myJetAna(const edm::ParameterSet &)
TProfile * HFTimeVsiEtaP5
virtual double py() const
y coordinate of momentum vector