CMS 3D CMS Logo

JetAnalyzer_HeavyIons.cc
Go to the documentation of this file.
1 //
2 // Jet Analyzer class for heavy ion jets. for DQM jet analysis monitoring
3 // For CMSSW_7_4_X, especially reading background subtracted jets
4 // author: Raghav Kunnawalkam Elayavalli, Mohammed Zakaria (co Author)
5 // Jan 12th 2015
6 // Rutgers University, email: raghav.k.e at CERN dot CH
7 // UIC, email: mzakaria @ CERN dot CH
8 
9 
11 
12 using namespace edm;
13 using namespace reco;
14 using namespace std;
15 
16 // declare the constructors:
17 
19  mInputCollection (iConfig.getParameter<edm::InputTag> ("src")),
20  mInputPFCandCollection (iConfig.getParameter<edm::InputTag> ("PFcands")),
21  mOutputFile (iConfig.getUntrackedParameter<std::string>("OutputFile","")),
22  JetType (iConfig.getUntrackedParameter<std::string>("JetType")),
23  UEAlgo (iConfig.getUntrackedParameter<std::string>("UEAlgo")),
24  Background (iConfig.getParameter<edm::InputTag> ("Background")),
25  mRecoJetPtThreshold (iConfig.getParameter<double> ("recoJetPtThreshold")),
26  mReverseEnergyFractionThreshold(iConfig.getParameter<double> ("reverseEnergyFractionThreshold")),
27  mRThreshold (iConfig.getParameter<double> ("RThreshold")),
28  JetCorrectionService (iConfig.getParameter<std::string> ("JetCorrections"))
29 {
30  std::string inputCollectionLabel(mInputCollection.label());
31 
32  isCaloJet = (std::string("calo")==JetType);
33  isJPTJet = (std::string("jpt") ==JetType);
34  isPFJet = (std::string("pf") ==JetType);
35 
36  //consumes
37  pvToken_ = consumes<std::vector<reco::Vertex> >(edm::InputTag("offlinePrimaryVertices"));
38  caloTowersToken_ = consumes<CaloTowerCollection>(edm::InputTag("towerMaker"));
39  if (isCaloJet) caloJetsToken_ = consumes<reco::CaloJetCollection>(mInputCollection);
40  if (isJPTJet) jptJetsToken_ = consumes<reco::JPTJetCollection>(mInputCollection);
41  if (isPFJet) {
42  if(std::string("Pu")==UEAlgo) basicJetsToken_ = consumes<reco::BasicJetCollection>(mInputCollection);
43  if(std::string("Vs")==UEAlgo) pfJetsToken_ = consumes<reco::PFJetCollection>(mInputCollection);
44  }
45 
46  pfCandToken_ = consumes<reco::PFCandidateCollection>(mInputPFCandCollection);
47  pfCandViewToken_ = consumes<reco::CandidateView>(mInputPFCandCollection);
48  caloCandViewToken_ = consumes<reco::CandidateView>(edm::InputTag("towerMaker"));
49  backgrounds_ = consumes<edm::ValueMap<reco::VoronoiBackground> >(Background);
50  backgrounds_value_ = consumes<std::vector<float> >(Background);
51 
52  centralityTag_ = iConfig.getParameter<InputTag>("centralitycollection");
53  centralityToken = consumes<reco::Centrality>(centralityTag_);
54 
55  centralityBinTag_ = (iConfig.getParameter<edm::InputTag> ("centralitybincollection"));
56  centralityBinToken = consumes<int>(centralityBinTag_);
57 
58  hiVertexToken_ = consumes<std::vector<reco::Vertex> >(edm::InputTag("hiSelectedVertex"));
59 
60  // need to initialize the PF cand histograms : which are also event variables
61  if(isPFJet){
62  mNPFpart = 0;
63  mPFPt = 0;
64  mPFEta = 0;
65  mPFPhi = 0;
66  mPFVsPt = 0;
67  mPFVsPtInitial = 0;
89 
110 
131 
132  mPFArea = 0;
133  mPFDeltaR = 0;
134  mPFDeltaR_Scaled_R = 0;
135 
144 
152 
153 
156 
157  mSumPFVsPt = 0;
158  mSumPFVsPtInitial = 0;
159  mSumPFPt = 0;
161  mSumPFVsPt_eta = 0;
162  mSumPFPt_eta = 0;
163  mSumSquaredPFVsPt = 0;
165  mSumSquaredPFPt = 0;
170  mSumPFVsPt_HF = 0;
171  mSumPFPt_HF = 0;
172 
188 
204 
220 
221  mPFCandpT_vs_eta_Unknown = 0; // pf id 0
222  mPFCandpT_vs_eta_ChargedHadron = 0; // pf id - 1
223  mPFCandpT_vs_eta_electron = 0; // pf id - 2
224  mPFCandpT_vs_eta_muon = 0; // pf id - 3
225  mPFCandpT_vs_eta_photon = 0; // pf id - 4
226  mPFCandpT_vs_eta_NeutralHadron = 0; // pf id - 5
227  mPFCandpT_vs_eta_HadE_inHF = 0; // pf id - 6
228  mPFCandpT_vs_eta_EME_inHF = 0; // pf id - 7
229 
230  mPFCandpT_Barrel_Unknown = 0; // pf id 0
231  mPFCandpT_Barrel_ChargedHadron = 0; // pf id - 1
232  mPFCandpT_Barrel_electron = 0; // pf id - 2
233  mPFCandpT_Barrel_muon = 0; // pf id - 3
234  mPFCandpT_Barrel_photon = 0; // pf id - 4
235  mPFCandpT_Barrel_NeutralHadron = 0; // pf id - 5
236  mPFCandpT_Barrel_HadE_inHF = 0; // pf id - 6
237  mPFCandpT_Barrel_EME_inHF = 0; // pf id - 7
238 
239  mPFCandpT_Endcap_Unknown = 0; // pf id 0
240  mPFCandpT_Endcap_ChargedHadron = 0; // pf id - 1
241  mPFCandpT_Endcap_electron = 0; // pf id - 2
242  mPFCandpT_Endcap_muon = 0; // pf id - 3
243  mPFCandpT_Endcap_photon = 0; // pf id - 4
244  mPFCandpT_Endcap_NeutralHadron = 0; // pf id - 5
245  mPFCandpT_Endcap_HadE_inHF = 0; // pf id - 6
246  mPFCandpT_Endcap_EME_inHF = 0; // pf id - 7
247 
248  mPFCandpT_Forward_Unknown = 0; // pf id 0
249  mPFCandpT_Forward_ChargedHadron = 0; // pf id - 1
250  mPFCandpT_Forward_electron = 0; // pf id - 2
251  mPFCandpT_Forward_muon = 0; // pf id - 3
252  mPFCandpT_Forward_photon = 0; // pf id - 4
253  mPFCandpT_Forward_NeutralHadron = 0; // pf id - 5
254  mPFCandpT_Forward_HadE_inHF = 0; // pf id - 6
255  mPFCandpT_Forward_EME_inHF = 0; // pf id - 7
256 
257  }
258  if(isCaloJet){
259  mNCalopart = 0;
260  mCaloPt = 0;
261  mCaloEta = 0;
262  mCaloPhi = 0;
263  mCaloVsPt = 0;
264  mCaloVsPtInitial = 0;
265  mCaloArea = 0;
266 
267  mSumCaloVsPt = 0;
269  mSumCaloPt = 0;
271  mSumCaloVsPt_eta = 0;
272  mSumCaloPt_eta = 0;
275  mSumSquaredCaloPt = 0;
280  mSumCaloVsPt_HF = 0;
281  mSumCaloPt_HF = 0;
282 
298 
314 
330 
331  }
332 
333  mSumpt = 0;
334 
335  // Events variables
336  mNvtx = 0;
337  mHF = 0;
338 
339  // added Jan 12th 2015
340 
341  // Jet parameters
342  mEta = 0;
343  mPhi = 0;
344  mEnergy = 0;
345  mP = 0;
346  mPt = 0;
347  mMass = 0;
348  mConstituents = 0;
349  mJetArea = 0;
350  mjetpileup = 0;
351  mNJets_40 = 0;
352  mNJets = 0;
353 
354 
355 }
356 
358 {
359 
360  ibooker.setCurrentFolder("JetMET/HIJetValidation/"+mInputCollection.label());
361 
362  double edge_pseudorapidity[etaBins_ +1] = {-5.191, -2.650, -2.043, -1.740, -1.479, -1.131, -0.783, -0.522, 0.522, 0.783, 1.131, 1.479, 1.740, 2.043, 2.650, 5.191 };
363 
364  TH2F *h2D_etabins_vs_pt2 = new TH2F("h2D_etabins_vs_pt2",";#eta;sum p_{T}^{2}",etaBins_,edge_pseudorapidity,10000,0,10000);
365  TH2F *h2D_etabins_vs_pt = new TH2F("h2D_etabins_vs_pt",";#eta;sum p_{T}",etaBins_,edge_pseudorapidity,10000,-1000,1000);
366  TH2F *h2D_pfcand_etabins_vs_pt = new TH2F("h2D_etabins_vs_pt",";#eta;sum p_{T}",etaBins_,edge_pseudorapidity,300, 0, 300);
367 
368  if(isPFJet){
369 
370  mNPFpart = ibooker.book1D("NPFpart","No of particle flow candidates",1000,0,1000);
371  mPFPt = ibooker.book1D("PFPt","PF candidate p_{T}",10000,-500,500);
372  mPFEta = ibooker.book1D("PFEta","PF candidate #eta",120,-6,6);
373  mPFPhi = ibooker.book1D("PFPhi","PF candidate #phi",70,-3.5,3.5);
374  mPFVsPt = ibooker.book1D("PFVsPt","Vs PF candidate p_{T}",1000,-500,500);
375  mPFVsPtInitial = ibooker.book1D("PFVsPtInitial","Vs background subtracted PF candidate p_{T}",1000,-500,500);
376  mPFVsPtInitial_HF = ibooker.book2D("PFVsPtInitial_HF","Vs background subtracted PF candidate p_{T} versus HF", 600,0,6000,1000,-500,500);
377 
378  mPFVsPtInitial_Barrel_Centrality_100_95 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_100_95","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW100And95 Barrel",1000,-100,100);
379  mPFVsPtInitial_Barrel_Centrality_95_90 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_95_90","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW95And90 Barrel",1000,-100,100);
380  mPFVsPtInitial_Barrel_Centrality_90_85 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_90_85","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW90And85 Barrel",1000,-100,100);
381  mPFVsPtInitial_Barrel_Centrality_85_80 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_85_80","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW85And80 Barrel",1000,-100,100);
382  mPFVsPtInitial_Barrel_Centrality_80_75 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_80_75","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW80And75 Barrel",1000,-100,100);
383  mPFVsPtInitial_Barrel_Centrality_75_70 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_75_70","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW75And70 Barrel",1000,-100,100);
384  mPFVsPtInitial_Barrel_Centrality_70_65 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_70_65","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW70And65 Barrel",1000,-100,100);
385  mPFVsPtInitial_Barrel_Centrality_65_60 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_65_60","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW65And60 Barrel",1000,-100,100);
386  mPFVsPtInitial_Barrel_Centrality_60_55 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_60_55","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW60And55 Barrel",1000,-100,100);
387  mPFVsPtInitial_Barrel_Centrality_55_50 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_55_50","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW55And50 Barrel",1000,-100,100);
388  mPFVsPtInitial_Barrel_Centrality_50_45 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_50_45","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW50And45 Barrel",1000,-100,100);
389  mPFVsPtInitial_Barrel_Centrality_45_40 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_45_40","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW45And40 Barrel",1000,-100,100);
390  mPFVsPtInitial_Barrel_Centrality_40_35 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_40_35","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW40And35 Barrel",1000,-100,100);
391  mPFVsPtInitial_Barrel_Centrality_35_30 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_35_30","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW35And30 Barrel",1000,-100,100);
392  mPFVsPtInitial_Barrel_Centrality_30_25 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_30_25","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW30And25 Barrel",1000,-100,100);
393  mPFVsPtInitial_Barrel_Centrality_25_20 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_25_20","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW25And20 Barrel",1000,-100,100);
394  mPFVsPtInitial_Barrel_Centrality_20_15 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_20_15","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW20And15 Barrel",1000,-100,100);
395  mPFVsPtInitial_Barrel_Centrality_15_10 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_15_10","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW15And10 Barrel",1000,-100,100);
396  mPFVsPtInitial_Barrel_Centrality_10_5 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_10_5","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW10And05 Barrel",1000,-100,100);
397  mPFVsPtInitial_Barrel_Centrality_5_0 = ibooker.book1D("mPFVsPtInitial_Barrel_Centrality_5_0","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW05And00 Barrel",1000,-100,100);
398 
399  mPFVsPtInitial_EndCap_Centrality_100_95 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_100_95","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW100And95 EndCap",1000,-100,100);
400  mPFVsPtInitial_EndCap_Centrality_95_90 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_95_90","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW95And90 EndCap",1000,-100,100);
401  mPFVsPtInitial_EndCap_Centrality_90_85 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_90_85","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW90And85 EndCap",1000,-100,100);
402  mPFVsPtInitial_EndCap_Centrality_85_80 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_85_80","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW85And80 EndCap",1000,-100,100);
403  mPFVsPtInitial_EndCap_Centrality_80_75 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_80_75","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW80And75 EndCap",1000,-100,100);
404  mPFVsPtInitial_EndCap_Centrality_75_70 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_75_70","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW75And70 EndCap",1000,-100,100);
405  mPFVsPtInitial_EndCap_Centrality_70_65 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_70_65","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW70And65 EndCap",1000,-100,100);
406  mPFVsPtInitial_EndCap_Centrality_65_60 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_65_60","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW65And60 EndCap",1000,-100,100);
407  mPFVsPtInitial_EndCap_Centrality_60_55 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_60_55","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW60And55 EndCap",1000,-100,100);
408  mPFVsPtInitial_EndCap_Centrality_55_50 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_55_50","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW55And50 EndCap",1000,-100,100);
409  mPFVsPtInitial_EndCap_Centrality_50_45 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_50_45","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW50And45 EndCap",1000,-100,100);
410  mPFVsPtInitial_EndCap_Centrality_45_40 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_45_40","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW45And40 EndCap",1000,-100,100);
411  mPFVsPtInitial_EndCap_Centrality_40_35 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_40_35","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW40And35 EndCap",1000,-100,100);
412  mPFVsPtInitial_EndCap_Centrality_35_30 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_35_30","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW35And30 EndCap",1000,-100,100);
413  mPFVsPtInitial_EndCap_Centrality_30_25 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_30_25","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW30And25 EndCap",1000,-100,100);
414  mPFVsPtInitial_EndCap_Centrality_25_20 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_25_20","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW25And20 EndCap",1000,-100,100);
415  mPFVsPtInitial_EndCap_Centrality_20_15 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_20_15","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW20And15 EndCap",1000,-100,100);
416  mPFVsPtInitial_EndCap_Centrality_15_10 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_15_10","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW15And10 EndCap",1000,-100,100);
417  mPFVsPtInitial_EndCap_Centrality_10_5 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_10_5","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW10And05 EndCap",1000,-100,100);
418  mPFVsPtInitial_EndCap_Centrality_5_0 = ibooker.book1D("mPFVsPtInitial_EndCap_Centrality_5_0","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW05And00 EndCap",1000,-100,100);
419 
420  mPFVsPtInitial_HF_Centrality_100_95 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_100_95","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW100And95 HF",1000,-100,100);
421  mPFVsPtInitial_HF_Centrality_95_90 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_95_90","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW95And90 HF",1000,-100,100);
422  mPFVsPtInitial_HF_Centrality_90_85 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_90_85","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW90And85 HF",1000,-100,100);
423  mPFVsPtInitial_HF_Centrality_85_80 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_85_80","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW85And80 HF",1000,-100,100);
424  mPFVsPtInitial_HF_Centrality_80_75 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_80_75","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW80And75 HF",1000,-100,100);
425  mPFVsPtInitial_HF_Centrality_75_70 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_75_70","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW75And70 HF",1000,-100,100);
426  mPFVsPtInitial_HF_Centrality_70_65 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_70_65","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW70And65 HF",1000,-100,100);
427  mPFVsPtInitial_HF_Centrality_65_60 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_65_60","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW65And60 HF",1000,-100,100);
428  mPFVsPtInitial_HF_Centrality_60_55 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_60_55","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW60And55 HF",1000,-100,100);
429  mPFVsPtInitial_HF_Centrality_55_50 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_55_50","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW55And50 HF",1000,-100,100);
430  mPFVsPtInitial_HF_Centrality_50_45 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_50_45","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW50And45 HF",1000,-100,100);
431  mPFVsPtInitial_HF_Centrality_45_40 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_45_40","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW45And40 HF",1000,-100,100);
432  mPFVsPtInitial_HF_Centrality_40_35 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_40_35","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW40And35 HF",1000,-100,100);
433  mPFVsPtInitial_HF_Centrality_35_30 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_35_30","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW35And30 HF",1000,-100,100);
434  mPFVsPtInitial_HF_Centrality_30_25 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_30_25","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW30And25 HF",1000,-100,100);
435  mPFVsPtInitial_HF_Centrality_25_20 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_25_20","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW25And20 HF",1000,-100,100);
436  mPFVsPtInitial_HF_Centrality_20_15 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_20_15","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW20And15 HF",1000,-100,100);
437  mPFVsPtInitial_HF_Centrality_15_10 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_15_10","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW15And10 HF",1000,-100,100);
438  mPFVsPtInitial_HF_Centrality_10_5 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_10_5","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW10And05 HF",1000,-100,100);
439  mPFVsPtInitial_HF_Centrality_5_0 = ibooker.book1D("mPFVsPtInitial_HF_Centrality_5_0","Vs background subtracted PF candidate p_{T} versus HF Energy Dist. BTW05And00 HF",1000,-100,100);
440 
441  mPFArea = ibooker.book1D("PFArea","VS PF candidate area",100,0,4);
442  mPFDeltaR = ibooker.book1D("PFDeltaR","VS PF candidate DeltaR",100,0,4); //MZ
443  mPFDeltaR_Scaled_R = ibooker.book1D("PFDeltaR_Scaled_R","VS PF candidate DeltaR Divided by DeltaR square",100,0,4); //MZ
444  mPFDeltaR_pTCorrected = ibooker.book1D("PFDeltaR_pTCorrected","VS PF candidate DeltaR time pFpT over jet pT",100,0,4); //MZ
445  mPFDeltaR_pTCorrected_PFpT_20To30 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_20_30","VS PF candidate DeltaR time pFpT over jet pT for PFpT 20 to 30 GeV",100,0,4); //MZ
446  mPFDeltaR_pTCorrected_PFpT_30To50 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_30_50","VS PF candidate DeltaR time pFpT over jet pT for PFpT 30 to 50 GeV",100,0,4); //MZ
447  mPFDeltaR_pTCorrected_PFpT_50To80 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_50_80","VS PF candidate DeltaR time pFpT over jet pT for PFpT 50 to 80 GeV",100,0,4); //MZ
448  mPFDeltaR_pTCorrected_PFpT_80To120 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_80_120","VS PF candidate DeltaR time pFpT over jet pT for PFpT 80 to 120 GeV",100,0,4); //MZ
449  mPFDeltaR_pTCorrected_PFpT_120To180 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_120_180","VS PF candidate DeltaR time pFpT over jet pT for PFpT 120 to 180 GeV",100,0,4); //MZ
450  mPFDeltaR_pTCorrected_PFpT_180To300 = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_180_300","VS PF candidate DeltaR time pFpT over jet pT for PFpT 180 to 300 GeV",100,0,4); //MZ
451  mPFDeltaR_pTCorrected_PFpT_300ToInf = ibooker.book1D("PFDeltaR_pTCorrected_PFpT_300_Inf","VS PF candidate DeltaR time pFpT over jet pT for PFpT 300 to Inf GeV",100,0,4); //MZ
452 
453  mPFDeltaR_pTCorrected_PFVsInitialpT_20To30 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_20_30","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 20 to 30 GeV",100,0,4); //MZ
454  mPFDeltaR_pTCorrected_PFVsInitialpT_30To50 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_30_50","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 30 to 50 GeV",100,0,4); //MZ
455  mPFDeltaR_pTCorrected_PFVsInitialpT_50To80 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_50_80","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 50 to 80 GeV",100,0,4); //MZ
456  mPFDeltaR_pTCorrected_PFVsInitialpT_80To120 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_80_120","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 80 to 120 GeV",100,0,4); //MZ
457  mPFDeltaR_pTCorrected_PFVsInitialpT_120To180 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_120_180","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 120 to 180 GeV",100,0,4); //MZ
458  mPFDeltaR_pTCorrected_PFVsInitialpT_180To300 = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_180_300","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 180 to 300 GeV",100,0,4); //MZ
459  mPFDeltaR_pTCorrected_PFVsInitialpT_300ToInf = ibooker.book1D("PFVsInitialDeltaR_pTCorrected_PFpT_300_Inf","VS PF candidate DeltaR time pFVsInitiaal pT over jet pT for PFpT 300 to Inf GeV",100,0,4); //MZ
460 
461 
462  mPFVsPtInitialDeltaR_pTCorrected = ibooker.book1D("PFVsPtInitialDeltaR_pTCorrected","VS PF Initial candidate DeltaR time pFpTInitial over jet pT",100,0,4); //MZ
463  mPFVsPtDeltaR_pTCorrected = ibooker.book1D("PFVsPtDeltaR_pTCorrected","VS PF candidate DeltaR time pFpT over jet pT",100,0,4); //MZ
464 
465  mSumPFVsPt = ibooker.book1D("SumPFVsPt","Sum of final PF VS p_{T}",1000,-10000,10000);
466  mSumPFVsPtInitial= ibooker.book1D("SumPFVsPtInitial","Sum PF VS p_{T} after subtraction",1000,-10000,10000);
467  mSumPFPt = ibooker.book1D("SumPFPt","Sum of initial PF p_{T}",1000,-10000,10000);
468  mSumPFVsPt_eta = ibooker.book2D("SumPFVsPt_etaBins",h2D_etabins_vs_pt);
469  mSumPFVsPtInitial_eta = ibooker.book2D("SumPFVsPtInitial_etaBins",h2D_etabins_vs_pt);
470  mSumPFPt_eta = ibooker.book2D("SumPFPt_etaBins",h2D_etabins_vs_pt);
471 
472  mSumSquaredPFVsPt = ibooker.book1D("SumSquaredPFVsPt","Sum PF Vs p_{T} square",10000,0,10000);
473  mSumSquaredPFVsPtInitial= ibooker.book1D("SumSquaredPFVsPtInitial","Sum PF Vs p_{T} square after subtraction ",10000,0,10000);
474  mSumSquaredPFPt = ibooker.book1D("SumSquaredPFPt","Sum of initial PF p_{T} squared",10000,0,10000);
475  mSumSquaredPFVsPt_eta = ibooker.book2D("SumSquaredPFVsPt_etaBins",h2D_etabins_vs_pt2);
476  mSumSquaredPFVsPtInitial_eta = ibooker.book2D("SumSquaredPFVsPtInitial_etaBins",h2D_etabins_vs_pt2);
477  mSumSquaredPFPt_eta = ibooker.book2D("SumSquaredPFPt_etaBins",h2D_etabins_vs_pt2);
478 
479  mSumPFVsPtInitial_HF = ibooker.book2D("SumPFVsPtInitial_HF","HF Energy (y axis) vs Sum PF Vs p_{T} before subtraction (x axis)",1000,-1000,1000,1000,0,10000);
480  mSumPFVsPt_HF = ibooker.book2D("SumPFVsPt_HF","HF energy (y axis) vs Sum PF Vs p_{T} final (x axis)",1000,-1000,1000,1000,0,10000);
481  mSumPFPt_HF = ibooker.book2D("SumPFPt_HF","HF energy (y axis) vs Sum initial PF p_{T} (x axis)",1000,-1000,1000,1000,0,10000);
482 
483  mSumPFVsPtInitial_n5p191_n2p650 = ibooker.book1D("mSumPFVsPtInitial_n5p191_n2p650","Sum PFVsPt Initial variable in the eta range -5.191 to -2.650",1000,-5000,5000);
484  mSumPFVsPtInitial_n2p650_n2p043 = ibooker.book1D("mSumPFVsPtInitial_n2p650_n2p043","Sum PFVsPt Initial variable in the eta range -2.650 to -2.043 ",1000,-5000,5000);
485  mSumPFVsPtInitial_n2p043_n1p740 = ibooker.book1D("mSumPFVsPtInitial_n2p043_n1p740","Sum PFVsPt Initial variable in the eta range -2.043 to -1.740",1000,-1000,1000);
486  mSumPFVsPtInitial_n1p740_n1p479 = ibooker.book1D("mSumPFVsPtInitial_n1p740_n1p479","Sum PFVsPt Initial variable in the eta range -1.740 to -1.479",1000,-1000,1000);
487  mSumPFVsPtInitial_n1p479_n1p131 = ibooker.book1D("mSumPFVsPtInitial_n1p479_n1p131","Sum PFVsPt Initial variable in the eta range -1.479 to -1.131",1000,-1000,1000);
488  mSumPFVsPtInitial_n1p131_n0p783 = ibooker.book1D("mSumPFVsPtInitial_n1p131_n0p783","Sum PFVsPt Initial variable in the eta range -1.131 to -0.783",1000,-1000,1000);
489  mSumPFVsPtInitial_n0p783_n0p522 = ibooker.book1D("mSumPFVsPtInitial_n0p783_n0p522","Sum PFVsPt Initial variable in the eta range -0.783 to -0.522",1000,-1000,1000);
490  mSumPFVsPtInitial_n0p522_0p522 = ibooker.book1D("mSumPFVsPtInitial_n0p522_0p522","Sum PFVsPt Initial variable in the eta range -0.522 to 0.522",1000,-1000,1000);
491  mSumPFVsPtInitial_0p522_0p783 = ibooker.book1D("mSumPFVsPtInitial_0p522_0p783","Sum PFVsPt Initial variable in the eta range 0.522 to 0.783",1000,-1000,1000);
492  mSumPFVsPtInitial_0p783_1p131 = ibooker.book1D("mSumPFVsPtInitial_0p783_1p131","Sum PFVsPt Initial variable in the eta range 0.783 to 1.131",1000,-1000,1000);
493  mSumPFVsPtInitial_1p131_1p479 = ibooker.book1D("mSumPFVsPtInitial_1p131_1p479","Sum PFVsPt Initial variable in the eta range 1.131 to 1.479",1000,-1000,1000);
494  mSumPFVsPtInitial_1p479_1p740 = ibooker.book1D("mSumPFVsPtInitial_1p479_1p740","Sum PFVsPt Initial variable in the eta range 1.479 to 1.740",1000,-1000,1000);
495  mSumPFVsPtInitial_1p740_2p043 = ibooker.book1D("mSumPFVsPtInitial_1p740_2p043","Sum PFVsPt Initial variable in the eta range 1.740 to 2.043",1000,-1000,1000);
496  mSumPFVsPtInitial_2p043_2p650 = ibooker.book1D("mSumPFVsPtInitial_2p043_2p650","Sum PFVsPt Initial variable in the eta range 2.043 to 2.650",1000,-5000,5000);
497  mSumPFVsPtInitial_2p650_5p191 = ibooker.book1D("mSumPFVsPtInitial_2p650_5p191","Sum PFVsPt Initial variable in the eta range 2.650 to 5.191",1000,-5000,5000);
498 
499  mSumPFVsPt_n5p191_n2p650 = ibooker.book1D("mSumPFVsPt_n5p191_n2p650","Sum PFVsPt variable in the eta range -5.191 to -2.650",1000,-5000,5000);
500  mSumPFVsPt_n2p650_n2p043 = ibooker.book1D("mSumPFVsPt_n2p650_n2p043","Sum PFVsPt variable in the eta range -2.650 to -2.043 ",1000,-5000,5000);
501  mSumPFVsPt_n2p043_n1p740 = ibooker.book1D("mSumPFVsPt_n2p043_n1p740","Sum PFVsPt variable in the eta range -2.043 to -1.740",1000,-1000,1000);
502  mSumPFVsPt_n1p740_n1p479 = ibooker.book1D("mSumPFVsPt_n1p740_n1p479","Sum PFVsPt variable in the eta range -1.740 to -1.479",1000,-1000,1000);
503  mSumPFVsPt_n1p479_n1p131 = ibooker.book1D("mSumPFVsPt_n1p479_n1p131","Sum PFVsPt variable in the eta range -1.479 to -1.131",1000,-1000,1000);
504  mSumPFVsPt_n1p131_n0p783 = ibooker.book1D("mSumPFVsPt_n1p131_n0p783","Sum PFVsPt variable in the eta range -1.131 to -0.783",1000,-1000,1000);
505  mSumPFVsPt_n0p783_n0p522 = ibooker.book1D("mSumPFVsPt_n0p783_n0p522","Sum PFVsPt variable in the eta range -0.783 to -0.522",1000,-1000,1000);
506  mSumPFVsPt_n0p522_0p522 = ibooker.book1D("mSumPFVsPt_n0p522_0p522","Sum PFVsPt variable in the eta range -0.522 to 0.522",1000,-1000,1000);
507  mSumPFVsPt_0p522_0p783 = ibooker.book1D("mSumPFVsPt_0p522_0p783","Sum PFVsPt variable in the eta range 0.522 to 0.783",1000,-1000,1000);
508  mSumPFVsPt_0p783_1p131 = ibooker.book1D("mSumPFVsPt_0p783_1p131","Sum PFVsPt variable in the eta range 0.783 to 1.131",1000,-1000,1000);
509  mSumPFVsPt_1p131_1p479 = ibooker.book1D("mSumPFVsPt_1p131_1p479","Sum PFVsPt variable in the eta range 1.131 to 1.479",1000,-1000,1000);
510  mSumPFVsPt_1p479_1p740 = ibooker.book1D("mSumPFVsPt_1p479_1p740","Sum PFVsPt variable in the eta range 1.479 to 1.740",1000,-1000,1000);
511  mSumPFVsPt_1p740_2p043 = ibooker.book1D("mSumPFVsPt_1p740_2p043","Sum PFVsPt variable in the eta range 1.740 to 2.043",1000,-1000,1000);
512  mSumPFVsPt_2p043_2p650 = ibooker.book1D("mSumPFVsPt_2p043_2p650","Sum PFVsPt variable in the eta range 2.043 to 2.650",1000,-5000,5000);
513  mSumPFVsPt_2p650_5p191 = ibooker.book1D("mSumPFVsPt_2p650_5p191","Sum PFVsPt variable in the eta range 2.650 to 5.191",1000,-5000,5000);
514 
515  mSumPFPt_n5p191_n2p650 = ibooker.book1D("mSumPFPt_n5p191_n2p650","Sum PFPt in the eta range -5.191 to -2.650",1000,-5000,5000);
516  mSumPFPt_n2p650_n2p043 = ibooker.book1D("mSumPFPt_n2p650_n2p043","Sum PFPt in the eta range -2.650 to -2.043 ",1000,-5000,5000);
517  mSumPFPt_n2p043_n1p740 = ibooker.book1D("mSumPFPt_n2p043_n1p740","Sum PFPt in the eta range -2.043 to -1.740",1000,-1000,1000);
518  mSumPFPt_n1p740_n1p479 = ibooker.book1D("mSumPFPt_n1p740_n1p479","Sum PFPt in the eta range -1.740 to -1.479",1000,-1000,1000);
519  mSumPFPt_n1p479_n1p131 = ibooker.book1D("mSumPFPt_n1p479_n1p131","Sum PFPt in the eta range -1.479 to -1.131",1000,-1000,1000);
520  mSumPFPt_n1p131_n0p783 = ibooker.book1D("mSumPFPt_n1p131_n0p783","Sum PFPt in the eta range -1.131 to -0.783",1000,-1000,1000);
521  mSumPFPt_n0p783_n0p522 = ibooker.book1D("mSumPFPt_n0p783_n0p522","Sum PFPt in the eta range -0.783 to -0.522",1000,-1000,1000);
522  mSumPFPt_n0p522_0p522 = ibooker.book1D("mSumPFPt_n0p522_0p522","Sum PFPt in the eta range -0.522 to 0.522",1000,-1000,1000);
523  mSumPFPt_0p522_0p783 = ibooker.book1D("mSumPFPt_0p522_0p783","Sum PFPt in the eta range 0.522 to 0.783",1000,-1000,1000);
524  mSumPFPt_0p783_1p131 = ibooker.book1D("mSumPFPt_0p783_1p131","Sum PFPt in the eta range 0.783 to 1.131",1000,-1000,1000);
525  mSumPFPt_1p131_1p479 = ibooker.book1D("mSumPFPt_1p131_1p479","Sum PFPt in the eta range 1.131 to 1.479",1000,-1000,1000);
526  mSumPFPt_1p479_1p740 = ibooker.book1D("mSumPFPt_1p479_1p740","Sum PFPt in the eta range 1.479 to 1.740",1000,-1000,1000);
527  mSumPFPt_1p740_2p043 = ibooker.book1D("mSumPFPt_1p740_2p043","Sum PFPt in the eta range 1.740 to 2.043",1000,-1000,1000);
528  mSumPFPt_2p043_2p650 = ibooker.book1D("mSumPFPt_2p043_2p650","Sum PFPt in the eta range 2.043 to 2.650",1000,-5000,5000);
529  mSumPFPt_2p650_5p191 = ibooker.book1D("mSumPFPt_2p650_5p191","Sum PFPt in the eta range 2.650 to 5.191",1000,-5000,5000);
530 
531  mPFCandpT_vs_eta_Unknown = ibooker.book2D("PF_cand_X_unknown",h2D_pfcand_etabins_vs_pt); // pf id 0
532  mPFCandpT_vs_eta_ChargedHadron = ibooker.book2D("PF_cand_chargedHad",h2D_pfcand_etabins_vs_pt); // pf id - 1
533  mPFCandpT_vs_eta_electron = ibooker.book2D("PF_cand_electron",h2D_pfcand_etabins_vs_pt); // pf id - 2
534  mPFCandpT_vs_eta_muon = ibooker.book2D("PF_cand_muon",h2D_pfcand_etabins_vs_pt); // pf id - 3
535  mPFCandpT_vs_eta_photon = ibooker.book2D("PF_cand_photon",h2D_pfcand_etabins_vs_pt); // pf id - 4
536  mPFCandpT_vs_eta_NeutralHadron = ibooker.book2D("PF_cand_neutralHad",h2D_pfcand_etabins_vs_pt); // pf id - 5
537  mPFCandpT_vs_eta_HadE_inHF = ibooker.book2D("PF_cand_HadEner_inHF",h2D_pfcand_etabins_vs_pt); // pf id - 6
538  mPFCandpT_vs_eta_EME_inHF = ibooker.book2D("PF_cand_EMEner_inHF",h2D_pfcand_etabins_vs_pt); // pf id - 7
539 
540  mPFCandpT_Barrel_Unknown = ibooker.book1D("mPFCandpT_Barrel_Unknown",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 0
541  mPFCandpT_Barrel_ChargedHadron = ibooker.book1D("mPFCandpT_Barrel_ChargedHadron",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 1
542  mPFCandpT_Barrel_electron = ibooker.book1D("mPFCandpT_Barrel_electron",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 2
543  mPFCandpT_Barrel_muon = ibooker.book1D("mPFCandpT_Barrel_muon",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 3
544  mPFCandpT_Barrel_photon = ibooker.book1D("mPFCandpT_Barrel_photon",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 4
545  mPFCandpT_Barrel_NeutralHadron = ibooker.book1D("mPFCandpT_Barrel_NeutralHadron",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 5
546  mPFCandpT_Barrel_HadE_inHF = ibooker.book1D("mPFCandpT_Barrel_HadE_inHF",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 6
547  mPFCandpT_Barrel_EME_inHF = ibooker.book1D("mPFCandpT_Barrel_EME_inHF",Form(";PF candidate p_{T}, |#eta|<%2.2f; counts", BarrelEta),300, 0, 300); // pf id - 7
548 
549  mPFCandpT_Endcap_Unknown = ibooker.book1D("mPFCandpT_Endcap_Unknown",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 0
550  mPFCandpT_Endcap_ChargedHadron = ibooker.book1D("mPFCandpT_Endcap_ChargedHadron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 1
551  mPFCandpT_Endcap_electron = ibooker.book1D("mPFCandpT_Endcap_electron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 2
552  mPFCandpT_Endcap_muon = ibooker.book1D("mPFCandpT_Endcap_muon",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 3
553  mPFCandpT_Endcap_photon = ibooker.book1D("mPFCandpT_Endcap_photon",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 4
554  mPFCandpT_Endcap_NeutralHadron = ibooker.book1D("mPFCandpT_Endcap_NeutralHadron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 5
555  mPFCandpT_Endcap_HadE_inHF = ibooker.book1D("mPFCandpT_Endcap_HadE_inHF",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 6
556  mPFCandpT_Endcap_EME_inHF = ibooker.book1D("mPFCandpT_Endcap_EME_inHF",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", BarrelEta, EndcapEta),300, 0, 300); // pf id - 7
557 
558  mPFCandpT_Forward_Unknown = ibooker.book1D("mPFCandpT_Forward_Unknown",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 0
559  mPFCandpT_Forward_ChargedHadron = ibooker.book1D("mPFCandpT_Forward_ChargedHadron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 1
560  mPFCandpT_Forward_electron = ibooker.book1D("mPFCandpT_Forward_electron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 2
561  mPFCandpT_Forward_muon = ibooker.book1D("mPFCandpT_Forward_muon",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 3
562  mPFCandpT_Forward_photon = ibooker.book1D("mPFCandpT_Forward_photon",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 4
563  mPFCandpT_Forward_NeutralHadron = ibooker.book1D("mPFCandpT_Forward_NeutralHadron",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 5
564  mPFCandpT_Forward_HadE_inHF = ibooker.book1D("mPFCandpT_Forward_HadE_inHF",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 6
565  mPFCandpT_Forward_EME_inHF = ibooker.book1D("mPFCandpT_Forward_EME_inHF",Form(";PF candidate p_{T}, %2.2f<|#eta|<%2.2f; counts", EndcapEta, ForwardEta),300, 0, 300); // pf id - 7
566 
567  }
568 
569  if(isCaloJet){
570 
571  mNCalopart = ibooker.book1D("NCalopart","No of particle flow candidates",1000,0,10000);
572  mCaloPt = ibooker.book1D("CaloPt","Calo candidate p_{T}",1000,-5000,5000);
573  mCaloEta = ibooker.book1D("CaloEta","Calo candidate #eta",120,-6,6);
574  mCaloPhi = ibooker.book1D("CaloPhi","Calo candidate #phi",70,-3.5,3.5);
575  mCaloVsPt = ibooker.book1D("CaloVsPt","Vs Calo candidate p_{T}",1000,-5000,5000);
576  mCaloVsPtInitial = ibooker.book1D("CaloVsPtInitial","Vs background subtracted Calo candidate p_{T}",1000,-500,500);
577  mCaloArea = ibooker.book1D("CaloArea","VS Calo candidate area",100,0,4);
578 
579  mSumCaloVsPt = ibooker.book1D("SumCaloVsPt","Sum of final Calo VS p_{T} ",1000,-10000,10000);
580  mSumCaloVsPtInitial= ibooker.book1D("SumCaloVsPtInitial","Sum Calo VS p_{T} after subtraction",1000,-10000,10000);
581  mSumCaloPt = ibooker.book1D("SumCaloPt","Sum Calo p_{T}",1000,-10000,10000);
582  mSumCaloVsPt_eta = ibooker.book2D("SumCaloVsPt_etaBins",h2D_etabins_vs_pt);
583  mSumCaloVsPtInitial_eta = ibooker.book2D("SumCaloVsPtInitial_etaBins",h2D_etabins_vs_pt);
584  mSumCaloPt_eta = ibooker.book2D("SumCaloPt_etaBins",h2D_etabins_vs_pt);
585 
586  mSumSquaredCaloVsPt = ibooker.book1D("SumSquaredCaloVsPt","Sum of final Calo VS p_{T} squared",10000,0,10000);
587  mSumSquaredCaloVsPtInitial= ibooker.book1D("SumSquaredCaloVsPtInitial","Sum of subtracted Calo VS p_{T} squared",10000,0,10000);
588  mSumSquaredCaloPt = ibooker.book1D("SumSquaredCaloPt","Sum of initial Calo tower p_{T} squared",10000,0,10000);
589  mSumSquaredCaloVsPt_eta = ibooker.book2D("SumSquaredCaloVsPt_etaBins",h2D_etabins_vs_pt2);
590  mSumSquaredCaloVsPtInitial_eta = ibooker.book2D("SumSquaredCaloVsPtInitial_etaBins",h2D_etabins_vs_pt2);
591  mSumSquaredCaloPt_eta = ibooker.book2D("SumSquaredCaloPt_etaBins",h2D_etabins_vs_pt2);
592 
593  mSumCaloVsPtInitial_HF = ibooker.book2D("SumCaloVsPtInitial_HF","HF Energy (y axis) vs Sum Calo Vs p_{T} before subtraction (x axis)",1000,-1000,1000,1000,0,10000);
594  mSumCaloVsPt_HF = ibooker.book2D("SumCaloVsPt_HF","HF Energy (y axis) vs Sum Calo Vs p_{T} (x axis)",1000,-1000,1000,1000,0,10000);
595  mSumCaloPt_HF = ibooker.book2D("SumCaloPt_HF","HF Energy (y axis) vs Sum Calo tower p_{T}",1000,-1000,1000,1000,0,10000);
596 
597  mSumCaloVsPtInitial_n5p191_n2p650 = ibooker.book1D("mSumCaloVsPtInitial_n5p191_n2p650","Sum CaloVsPt Initial variable in the eta range -5.191 to -2.650",1000,-5000,5000);
598  mSumCaloVsPtInitial_n2p650_n2p043 = ibooker.book1D("mSumCaloVsPtInitial_n2p650_n2p043","Sum CaloVsPt Initial variable in the eta range -2.650 to -2.043 ",1000,-5000,5000);
599  mSumCaloVsPtInitial_n2p043_n1p740 = ibooker.book1D("mSumCaloVsPtInitial_n2p043_n1p740","Sum CaloVsPt Initial variable in the eta range -2.043 to -1.740",1000,-1000,1000);
600  mSumCaloVsPtInitial_n1p740_n1p479 = ibooker.book1D("mSumCaloVsPtInitial_n1p740_n1p479","Sum CaloVsPt Initial variable in the eta range -1.740 to -1.479",1000,-1000,1000);
601  mSumCaloVsPtInitial_n1p479_n1p131 = ibooker.book1D("mSumCaloVsPtInitial_n1p479_n1p131","Sum CaloVsPt Initial variable in the eta range -1.479 to -1.131",1000,-1000,1000);
602  mSumCaloVsPtInitial_n1p131_n0p783 = ibooker.book1D("mSumCaloVsPtInitial_n1p131_n0p783","Sum CaloVsPt Initial variable in the eta range -1.131 to -0.783",1000,-1000,1000);
603  mSumCaloVsPtInitial_n0p783_n0p522 = ibooker.book1D("mSumCaloVsPtInitial_n0p783_n0p522","Sum CaloVsPt Initial variable in the eta range -0.783 to -0.522",1000,-1000,1000);
604  mSumCaloVsPtInitial_n0p522_0p522 = ibooker.book1D("mSumCaloVsPtInitial_n0p522_0p522","Sum CaloVsPt Initial variable in the eta range -0.522 to 0.522",1000,-1000,1000);
605  mSumCaloVsPtInitial_0p522_0p783 = ibooker.book1D("mSumCaloVsPtInitial_0p522_0p783","Sum CaloVsPt Initial variable in the eta range 0.522 to 0.783",1000,-1000,1000);
606  mSumCaloVsPtInitial_0p783_1p131 = ibooker.book1D("mSumCaloVsPtInitial_0p783_1p131","Sum CaloVsPt Initial variable in the eta range 0.783 to 1.131",1000,-1000,1000);
607  mSumCaloVsPtInitial_1p131_1p479 = ibooker.book1D("mSumCaloVsPtInitial_1p131_1p479","Sum CaloVsPt Initial variable in the eta range 1.131 to 1.479",1000,-1000,1000);
608  mSumCaloVsPtInitial_1p479_1p740 = ibooker.book1D("mSumCaloVsPtInitial_1p479_1p740","Sum CaloVsPt Initial variable in the eta range 1.479 to 1.740",1000,-1000,1000);
609  mSumCaloVsPtInitial_1p740_2p043 = ibooker.book1D("mSumCaloVsPtInitial_1p740_2p043","Sum CaloVsPt Initial variable in the eta range 1.740 to 2.043",1000,-1000,1000);
610  mSumCaloVsPtInitial_2p043_2p650 = ibooker.book1D("mSumCaloVsPtInitial_2p043_2p650","Sum CaloVsPt Initial variable in the eta range 2.043 to 2.650",1000,-5000,5000);
611  mSumCaloVsPtInitial_2p650_5p191 = ibooker.book1D("mSumCaloVsPtInitial_2p650_5p191","Sum CaloVsPt Initial variable in the eta range 2.650 to 5.191",1000,-5000,5000);
612 
613  mSumCaloVsPt_n5p191_n2p650 = ibooker.book1D("mSumCaloVsPt_n5p191_n2p650","Sum CaloVsPt variable in the eta range -5.191 to -2.650",1000,-5000,5000);
614  mSumCaloVsPt_n2p650_n2p043 = ibooker.book1D("mSumCaloVsPt_n2p650_n2p043","Sum CaloVsPt variable in the eta range -2.650 to -2.043",1000,-5000,5000);
615  mSumCaloVsPt_n2p043_n1p740 = ibooker.book1D("mSumCaloVsPt_n2p043_n1p740","Sum CaloVsPt variable in the eta range -2.043 to -1.740",1000,-1000,1000);
616  mSumCaloVsPt_n1p740_n1p479 = ibooker.book1D("mSumCaloVsPt_n1p740_n1p479","Sum CaloVsPt variable in the eta range -1.740 to -1.479",1000,-1000,1000);
617  mSumCaloVsPt_n1p479_n1p131 = ibooker.book1D("mSumCaloVsPt_n1p479_n1p131","Sum CaloVsPt variable in the eta range -1.479 to -1.131",1000,-1000,1000);
618  mSumCaloVsPt_n1p131_n0p783 = ibooker.book1D("mSumCaloVsPt_n1p131_n0p783","Sum CaloVsPt variable in the eta range -1.131 to -0.783",1000,-1000,1000);
619  mSumCaloVsPt_n0p783_n0p522 = ibooker.book1D("mSumCaloVsPt_n0p783_n0p522","Sum CaloVsPt variable in the eta range -0.783 to -0.522",1000,-1000,1000);
620  mSumCaloVsPt_n0p522_0p522 = ibooker.book1D("mSumCaloVsPt_n0p522_0p522","Sum CaloVsPt variable in the eta range -0.522 to 0.522",1000,-1000,1000);
621  mSumCaloVsPt_0p522_0p783 = ibooker.book1D("mSumCaloVsPt_0p522_0p783","Sum CaloVsPt variable in the eta range 0.522 to 0.783",1000,-1000,1000);
622  mSumCaloVsPt_0p783_1p131 = ibooker.book1D("mSumCaloVsPt_0p783_1p131","Sum CaloVsPt variable in the eta range 0.783 to 1.131",1000,-1000,1000);
623  mSumCaloVsPt_1p131_1p479 = ibooker.book1D("mSumCaloVsPt_1p131_1p479","Sum CaloVsPt variable in the eta range 1.131 to 1.479",1000,-1000,1000);
624  mSumCaloVsPt_1p479_1p740 = ibooker.book1D("mSumCaloVsPt_1p479_1p740","Sum CaloVsPt variable in the eta range 1.479 to 1.740",1000,-1000,1000);
625  mSumCaloVsPt_1p740_2p043 = ibooker.book1D("mSumCaloVsPt_1p740_2p043","Sum CaloVsPt variable in the eta range 1.740 to 2.043",1000,-1000,1000);
626  mSumCaloVsPt_2p043_2p650 = ibooker.book1D("mSumCaloVsPt_2p043_2p650","Sum CaloVsPt variable in the eta range 2.043 to 2.650",1000,-5000,5000);
627  mSumCaloVsPt_2p650_5p191 = ibooker.book1D("mSumCaloVsPt_2p650_5p191","Sum CaloVsPt variable in the eta range 2.650 to 5.191",1000,-5000,5000);
628 
629  mSumCaloPt_n5p191_n2p650 = ibooker.book1D("mSumCaloPt_n5p191_n2p650","Sum Calo tower pT variable in the eta range -5.191 to -2.650",1000,-5000,5000);
630  mSumCaloPt_n2p650_n2p043 = ibooker.book1D("mSumCaloPt_n2p650_n2p043","Sum Calo tower pT variable in the eta range -2.650 to -2.043",1000,-5000,5000);
631  mSumCaloPt_n2p043_n1p740 = ibooker.book1D("mSumCaloPt_n2p043_n1p740","Sum Calo tower pT variable in the eta range -2.043 to -1.740",1000,-1000,1000);
632  mSumCaloPt_n1p740_n1p479 = ibooker.book1D("mSumCaloPt_n1p740_n1p479","Sum Calo tower pT variable in the eta range -1.740 to -1.479",1000,-1000,1000);
633  mSumCaloPt_n1p479_n1p131 = ibooker.book1D("mSumCaloPt_n1p479_n1p131","Sum Calo tower pT variable in the eta range -1.479 to -1.131",1000,-1000,1000);
634  mSumCaloPt_n1p131_n0p783 = ibooker.book1D("mSumCaloPt_n1p131_n0p783","Sum Calo tower pT variable in the eta range -1.131 to -0.783",1000,-1000,1000);
635  mSumCaloPt_n0p783_n0p522 = ibooker.book1D("mSumCaloPt_n0p783_n0p522","Sum Calo tower pT variable in the eta range -0.783 to -0.522",1000,-1000,1000);
636  mSumCaloPt_n0p522_0p522 = ibooker.book1D("mSumCaloPt_n0p522_0p522","Sum Calo tower pT variable in the eta range -0.522 to 0.522",1000,-1000,1000);
637  mSumCaloPt_0p522_0p783 = ibooker.book1D("mSumCaloPt_0p522_0p783","Sum Calo tower pT variable in the eta range 0.522 to 0.783",1000,-1000,1000);
638  mSumCaloPt_0p783_1p131 = ibooker.book1D("mSumCaloPt_0p783_1p131","Sum Calo tower pT variable in the eta range 0.783 to 1.131",1000,-1000,1000);
639  mSumCaloPt_1p131_1p479 = ibooker.book1D("mSumCaloPt_1p131_1p479","Sum Calo tower pT variable in the eta range 1.131 to 1.479",1000,-1000,1000);
640  mSumCaloPt_1p479_1p740 = ibooker.book1D("mSumCaloPt_1p479_1p740","Sum Calo tower pT variable in the eta range 1.479 to 1.740",1000,-1000,1000);
641  mSumCaloPt_1p740_2p043 = ibooker.book1D("mSumCaloPt_1p740_2p043","Sum Calo tower pT variable in the eta range 1.740 to 2.043",1000,-1000,1000);
642  mSumCaloPt_2p043_2p650 = ibooker.book1D("mSumCaloPt_2p043_2p650","Sum Calo tower pT variable in the eta range 2.043 to 2.650",1000,-5000,5000);
643  mSumCaloPt_2p650_5p191 = ibooker.book1D("mSumCaloPt_2p650_5p191","Sum Calo tower pT variable in the eta range 2.650 to 5.191",1000,-5000,5000);
644 
645 
646  }
647 
648  // particle flow variables histograms
649  mSumpt = ibooker.book1D("SumpT","Sum p_{T} of all the PF candidates per event",1000,0,10000);
650 
651  // Event variables
652  mNvtx = ibooker.book1D("Nvtx", "number of vertices", 60, 0, 60);
653  mHF = ibooker.book1D("HF", "HF energy distribution",1000,0,10000);
654 
655  // Jet parameters
656  mEta = ibooker.book1D("Eta", "Eta", 120, -6, 6);
657  mPhi = ibooker.book1D("Phi", "Phi", 70, -3.5, 3.5);
658  mPt = ibooker.book1D("Pt", "Pt", 100, 0, 1000);
659  mP = ibooker.book1D("P", "P", 100, 0, 1000);
660  mEnergy = ibooker.book1D("Energy", "Energy", 100, 0, 1000);
661  mMass = ibooker.book1D("Mass", "Mass", 100, 0, 200);
662  mConstituents = ibooker.book1D("Constituents", "Constituents", 100, 0, 100);
663  mJetArea = ibooker.book1D("JetArea", "JetArea", 100, 0, 4);
664  mjetpileup = ibooker.book1D("jetPileUp","jetPileUp",100,0,150);
665  mNJets_40 = ibooker.book1D("NJets_pt_greater_40", "NJets pT > 40 GeV", 100, 0, 100);
666  mNJets = ibooker.book1D("NJets", "NJets", 100, 0, 50);
667 
668  if (mOutputFile.empty ())
669  LogInfo("OutputInfo") << " Histograms will NOT be saved";
670  else
671  LogInfo("OutputInfo") << " Histograms will be saved to file:" << mOutputFile;
672 
673  delete h2D_etabins_vs_pt2;
674  delete h2D_etabins_vs_pt;
675  delete h2D_pfcand_etabins_vs_pt;
676 
677 }
678 
679 
680 
681 //------------------------------------------------------------------------------
682 // ~JetAnalyzer_HeavyIons
683 //------------------------------------------------------------------------------
685 
686 
687 //------------------------------------------------------------------------------
688 // beginJob
689 //------------------------------------------------------------------------------
690 //void JetAnalyzer_HeavyIons::beginJob() {
691 // std:://cout<<"inside the begin job function"<<endl;
692 //}
693 
694 
695 //------------------------------------------------------------------------------
696 // endJob
697 //------------------------------------------------------------------------------
698 //void JetAnalyzer_HeavyIons::endJob()
699 //{
700 // if (!mOutputFile.empty() && &*edm::Service<DQMStore>())
701 // {
702 // edm::Service<DQMStore>()->save(mOutputFile);
703 // }
704 //}
705 
706 
707 //------------------------------------------------------------------------------
708 // analyze
709 //------------------------------------------------------------------------------
711 {
712 
713  // switch(mEvent.id().event() == 15296770)
714  // case 1:
715  // break;
716 
717  // Get the primary vertices
719  mEvent.getByToken(pvToken_, pvHandle);
720  reco::Vertex::Point vtx(0,0,0);
722 
723  mEvent.getByToken(hiVertexToken_, vtxs);
724  int greatestvtx = 0;
725  int nVertex = vtxs->size();
726 
727  for (unsigned int i = 0 ; i< vtxs->size(); ++i){
728  unsigned int daughter = (*vtxs)[i].tracksSize();
729  if( daughter > (*vtxs)[greatestvtx].tracksSize()) greatestvtx = i;
730  }
731 
732  if(nVertex<=0){
733  vtx = reco::Vertex::Point(0,0,0);
734  }
735  vtx = (*vtxs)[greatestvtx].position();
736 
737  int nGoodVertices = 0;
738 
739  if (pvHandle.isValid())
740  {
741  for (unsigned i=0; i<pvHandle->size(); i++)
742  {
743  if ((*pvHandle)[i].ndof() > 4 &&
744  (fabs((*pvHandle)[i].z()) <= 24) &&
745  (fabs((*pvHandle)[i].position().rho()) <= 2))
746  nGoodVertices++;
747  }
748  }
749 
750  mNvtx->Fill(nGoodVertices);
751 
752  // Get the Jet collection
753  //----------------------------------------------------------------------------
754 
755  std::vector<Jet> recoJets;
756  recoJets.clear();
757 
762 
763  // Get the Particle flow candidates and the Voronoi variables
765  edm::Handle<CaloTowerCollection> caloCandidates;
766  edm::Handle<reco::CandidateView> pfcandidates_;
767  edm::Handle<reco::CandidateView> calocandidates_;
768 
771 
772  if (isCaloJet) mEvent.getByToken(caloJetsToken_, caloJets);
773  if (isJPTJet) mEvent.getByToken(jptJetsToken_, jptJets);
774  if (isPFJet) {
775  if(std::string("Pu")==UEAlgo) mEvent.getByToken(basicJetsToken_, basicJets);
776  if(std::string("Vs")==UEAlgo) mEvent.getByToken(pfJetsToken_, pfJets);
777  }
778 
779  mEvent.getByToken(pfCandToken_, pfCandidates);
780  mEvent.getByToken(pfCandViewToken_, pfcandidates_);
781 
782  mEvent.getByToken(caloTowersToken_, caloCandidates);
783  mEvent.getByToken(caloCandViewToken_, calocandidates_);
784 
785  mEvent.getByToken(backgrounds_, VsBackgrounds);
786  mEvent.getByToken(backgrounds_value_, vn_);
787 
788  // get the centrality
790  mEvent.getByToken(centralityToken, cent); //_centralitytag comes from the cfg
791 
792  mHF->Fill(cent->EtHFtowerSum());
793  Float_t HF_energy = cent->EtHFtowerSum();
794 
795  edm::Handle<int> cbin;
796  mEvent.getByToken(centralityBinToken, cbin);
797 
798  if (!cent.isValid()) return;
799 
800  int hibin = -999;
801  if(cbin.isValid()){
802  hibin = *cbin;
803  }
804 
805  const reco::PFCandidateCollection *pfCandidateColl = pfCandidates.product();
806 
807  Float_t vsPt=0;
808  Float_t vsPtInitial = 0;
809  Float_t vsArea = 0;
810  Int_t NPFpart = 0;
811  Int_t NCaloTower = 0;
812  Float_t pfPt = 0;
813  Float_t pfEta = 0;
814  Float_t pfPhi = 0;
815  Int_t pfID = 0;
816  Float_t pfDeltaR = 0;
817  Float_t caloPt = 0;
818  Float_t caloEta = 0;
819  Float_t caloPhi = 0;
820  Float_t SumPt_value = 0;
821 
822  double edge_pseudorapidity[etaBins_ +1] = {-5.191, -2.650, -2.043, -1.740, -1.479, -1.131, -0.783, -0.522, 0.522, 0.783, 1.131, 1.479, 1.740, 2.043, 2.650, 5.191 };
823 
824 
825  vector < vector <float> > numbers;
826  vector <float> tempVector;
827  numbers.clear();
828  tempVector.clear();
829 
830  if(isCaloJet){
831 
832  Float_t SumCaloVsPtInitial[etaBins_];
833  Float_t SumCaloVsPt[etaBins_];
834  Float_t SumCaloPt[etaBins_];
835 
836  Float_t SumSquaredCaloVsPtInitial[etaBins_];
837  Float_t SumSquaredCaloVsPt[etaBins_];
838  Float_t SumSquaredCaloPt[etaBins_];
839 
840  // Need to set up histograms to get the RMS values for each pT bin
841  TH1F *hSumCaloVsPtInitial[nedge_pseudorapidity-1], *hSumCaloVsPt[nedge_pseudorapidity-1], *hSumCaloPt[nedge_pseudorapidity-1];
842 
843  for(int i = 0;i<etaBins_;++i)
844  {
845 
846  SumCaloVsPtInitial[i] = 0;
847  SumCaloVsPt[i] = 0;
848  SumCaloPt[i] = 0;
849  SumSquaredCaloVsPtInitial[i] = 0;
850  SumSquaredCaloVsPt[i] = 0;
851  SumSquaredCaloPt[i] = 0;
852 
853  hSumCaloVsPtInitial[i] = new TH1F(Form("hSumCaloVsPtInitial_%d",i),"",10000,-10000,10000);
854  hSumCaloVsPt[i] = new TH1F(Form("hSumCaloVsPt_%d",i),"",10000,-10000,10000);
855  hSumCaloPt[i] = new TH1F(Form("hSumCaloPt_%d",i),"",10000,-10000,10000);
856 
857  }
858 
859  for(unsigned icand = 0;icand<caloCandidates->size(); icand++){
860 
861  const CaloTower & tower = (*caloCandidates)[icand];
862  reco::CandidateViewRef ref(calocandidates_,icand);
863  //10 is tower pT min
864  if(tower.p4(vtx).Et() < 0.1) continue;
865 
866  vsPt = 0;
867  vsPtInitial = 0;
868  vsArea = 0;
869 
870  if(std::string("Vs")==UEAlgo) {
871  const reco::VoronoiBackground& voronoi = (*VsBackgrounds)[ref];
872  vsPt = voronoi.pt();
873  vsPtInitial = voronoi.pt_subtracted();
874  vsArea = voronoi.area();
875  }
876 
877  NCaloTower++;
878 
879  caloPt = tower.p4(vtx).Et();
880  caloEta = tower.p4(vtx).Eta();
881  caloPhi = tower.p4(vtx).Phi();
882 
883 
884  for(size_t k = 0;k<nedge_pseudorapidity-1; k++){
885  if(caloEta >= edge_pseudorapidity[k] && caloEta < edge_pseudorapidity[k+1]){
886  SumCaloVsPtInitial[k] = SumCaloVsPtInitial[k] + vsPtInitial;
887  SumCaloVsPt[k] = SumCaloVsPt[k] + vsPt;
888  SumCaloPt[k] = SumCaloPt[k] + caloPt;
889  SumSquaredCaloVsPtInitial[k] = SumSquaredCaloVsPtInitial[k] + vsPtInitial*vsPtInitial;
890  SumSquaredCaloVsPt[k] = SumSquaredCaloVsPt[k] + vsPt*vsPt;
891  SumSquaredCaloPt[k] = SumSquaredCaloPt[k] + caloPt*caloPt;
892  break;
893  }// eta selection statement
894 
895  }// eta bin loop
896 
897  SumPt_value = SumPt_value + caloPt;
898 
899  mCaloPt->Fill(caloPt);
900  mCaloEta->Fill(caloEta);
901  mCaloPhi->Fill(caloPhi);
902  mCaloVsPt->Fill(vsPt);
903  mCaloVsPtInitial->Fill(vsPtInitial);
904  mCaloArea->Fill(vsArea);
905 
906  }// calo tower candidate loop
907 
908  for(int k = 0;k<nedge_pseudorapidity-1;k++){
909 
910  hSumCaloVsPtInitial[k]->Fill(SumCaloVsPtInitial[k]);
911  hSumCaloVsPt[k]->Fill(SumCaloVsPt[k]);
912  hSumCaloPt[k]->Fill(SumCaloPt[k]);
913 
914  }// eta bin loop
915 
916  Float_t Evt_SumCaloVsPt = 0;
917  Float_t Evt_SumCaloVsPtInitial = 0;
918  Float_t Evt_SumCaloPt = 0;
919 
920  Float_t Evt_SumSquaredCaloVsPt = 0;
921  Float_t Evt_SumSquaredCaloVsPtInitial = 0;
922  Float_t Evt_SumSquaredCaloPt = 0;
923 
924 
925  mSumCaloVsPtInitial_n5p191_n2p650->Fill(SumCaloVsPtInitial[0]);
926  mSumCaloVsPtInitial_n2p650_n2p043->Fill(SumCaloVsPtInitial[1]);
927  mSumCaloVsPtInitial_n2p043_n1p740->Fill(SumCaloVsPtInitial[2]);
928  mSumCaloVsPtInitial_n1p740_n1p479->Fill(SumCaloVsPtInitial[3]);
929  mSumCaloVsPtInitial_n1p479_n1p131->Fill(SumCaloVsPtInitial[4]);
930  mSumCaloVsPtInitial_n1p131_n0p783->Fill(SumCaloVsPtInitial[5]);
931  mSumCaloVsPtInitial_n0p783_n0p522->Fill(SumCaloVsPtInitial[6]);
932  mSumCaloVsPtInitial_n0p522_0p522->Fill(SumCaloVsPtInitial[7]);
933  mSumCaloVsPtInitial_0p522_0p783->Fill(SumCaloVsPtInitial[8]);
934  mSumCaloVsPtInitial_0p783_1p131->Fill(SumCaloVsPtInitial[9]);
935  mSumCaloVsPtInitial_1p131_1p479->Fill(SumCaloVsPtInitial[10]);
936  mSumCaloVsPtInitial_1p479_1p740->Fill(SumCaloVsPtInitial[11]);
937  mSumCaloVsPtInitial_1p740_2p043->Fill(SumCaloVsPtInitial[12]);
938  mSumCaloVsPtInitial_2p043_2p650->Fill(SumCaloVsPtInitial[13]);
939  mSumCaloVsPtInitial_2p650_5p191->Fill(SumCaloVsPtInitial[14]);
940 
941  mSumCaloVsPt_n5p191_n2p650->Fill(SumCaloVsPt[0]);
942  mSumCaloVsPt_n2p650_n2p043->Fill(SumCaloVsPt[1]);
943  mSumCaloVsPt_n2p043_n1p740->Fill(SumCaloVsPt[2]);
944  mSumCaloVsPt_n1p740_n1p479->Fill(SumCaloVsPt[3]);
945  mSumCaloVsPt_n1p479_n1p131->Fill(SumCaloVsPt[4]);
946  mSumCaloVsPt_n1p131_n0p783->Fill(SumCaloVsPt[5]);
947  mSumCaloVsPt_n0p783_n0p522->Fill(SumCaloVsPt[6]);
948  mSumCaloVsPt_n0p522_0p522->Fill(SumCaloVsPt[7]);
949  mSumCaloVsPt_0p522_0p783->Fill(SumCaloVsPt[8]);
950  mSumCaloVsPt_0p783_1p131->Fill(SumCaloVsPt[9]);
951  mSumCaloVsPt_1p131_1p479->Fill(SumCaloVsPt[10]);
952  mSumCaloVsPt_1p479_1p740->Fill(SumCaloVsPt[11]);
953  mSumCaloVsPt_1p740_2p043->Fill(SumCaloVsPt[12]);
954  mSumCaloVsPt_2p043_2p650->Fill(SumCaloVsPt[13]);
955  mSumCaloVsPt_2p650_5p191->Fill(SumCaloVsPt[14]);
956 
957  mSumCaloPt_n5p191_n2p650->Fill(SumCaloPt[0]);
958  mSumCaloPt_n2p650_n2p043->Fill(SumCaloPt[1]);
959  mSumCaloPt_n2p043_n1p740->Fill(SumCaloPt[2]);
960  mSumCaloPt_n1p740_n1p479->Fill(SumCaloPt[3]);
961  mSumCaloPt_n1p479_n1p131->Fill(SumCaloPt[4]);
962  mSumCaloPt_n1p131_n0p783->Fill(SumCaloPt[5]);
963  mSumCaloPt_n0p783_n0p522->Fill(SumCaloPt[6]);
964  mSumCaloPt_n0p522_0p522->Fill(SumCaloPt[7]);
965  mSumCaloPt_0p522_0p783->Fill(SumCaloPt[8]);
966  mSumCaloPt_0p783_1p131->Fill(SumCaloPt[9]);
967  mSumCaloPt_1p131_1p479->Fill(SumCaloPt[10]);
968  mSumCaloPt_1p479_1p740->Fill(SumCaloPt[11]);
969  mSumCaloPt_1p740_2p043->Fill(SumCaloPt[12]);
970  mSumCaloPt_2p043_2p650->Fill(SumCaloPt[13]);
971  mSumCaloPt_2p650_5p191->Fill(SumCaloPt[14]);
972 
973 
974  for(size_t k = 0;k<nedge_pseudorapidity-1;k++){
975 
976  Evt_SumCaloVsPtInitial = Evt_SumCaloVsPtInitial + SumCaloVsPtInitial[k];
977  Evt_SumCaloVsPt = Evt_SumCaloVsPt + SumCaloVsPt[k];
978  Evt_SumCaloPt = Evt_SumCaloPt + SumCaloPt[k];
979 
980  mSumCaloVsPtInitial_eta->Fill(edge_pseudorapidity[k],SumCaloVsPtInitial[k]);
981  mSumCaloVsPt_eta->Fill(edge_pseudorapidity[k],SumCaloVsPt[k]);
982  mSumCaloPt_eta->Fill(edge_pseudorapidity[k],SumCaloPt[k]);
983 
984  Evt_SumSquaredCaloVsPtInitial = Evt_SumSquaredCaloVsPtInitial + SumSquaredCaloVsPtInitial[k];
985  Evt_SumSquaredCaloVsPt = Evt_SumSquaredCaloVsPt + SumSquaredCaloVsPt[k];
986  Evt_SumSquaredCaloPt = Evt_SumSquaredCaloPt + SumSquaredCaloPt[k];
987 
988  mSumSquaredCaloVsPtInitial_eta->Fill(edge_pseudorapidity[k],hSumCaloVsPtInitial[k]->GetRMS(1));
989  mSumSquaredCaloVsPt_eta->Fill(edge_pseudorapidity[k],hSumCaloVsPt[k]->GetRMS(1));
990  mSumSquaredCaloPt_eta->Fill(edge_pseudorapidity[k],hSumCaloPt[k]->GetRMS(1));
991 
992  delete hSumCaloVsPtInitial[k];
993  delete hSumCaloVsPt[k];
994  delete hSumCaloPt[k];
995 
996  }// eta bin loop
997 
998  mSumCaloVsPtInitial->Fill(Evt_SumCaloVsPtInitial);
999  mSumCaloVsPt->Fill(Evt_SumCaloVsPt);
1000  mSumCaloPt->Fill(Evt_SumCaloPt);
1001  mSumCaloVsPtInitial_HF->Fill(Evt_SumCaloVsPtInitial,HF_energy);
1002  mSumCaloVsPt_HF->Fill(Evt_SumCaloVsPt,HF_energy);
1003  mSumCaloPt_HF->Fill(Evt_SumCaloPt,HF_energy);
1004 
1005  mSumSquaredCaloVsPtInitial->Fill(Evt_SumSquaredCaloVsPtInitial);
1006  mSumSquaredCaloVsPt->Fill(Evt_SumSquaredCaloVsPt);
1007  mSumSquaredCaloPt->Fill(Evt_SumSquaredCaloPt);
1008 
1009  mNCalopart->Fill(NCaloTower);
1010  mSumpt->Fill(SumPt_value);
1011 
1012  }// is calo jet
1013 
1014  if(isPFJet){
1015 
1016  Float_t SumPFVsPtInitial[etaBins_];
1017  Float_t SumPFVsPt[etaBins_];
1018  Float_t SumPFPt[etaBins_];
1019 
1020  Float_t SumSquaredPFVsPtInitial[etaBins_];
1021  Float_t SumSquaredPFVsPt[etaBins_];
1022  Float_t SumSquaredPFPt[etaBins_];
1023 
1024  // Need to set up histograms to get the RMS values for each pT bin
1025  TH1F *hSumPFVsPtInitial[nedge_pseudorapidity-1], *hSumPFVsPt[nedge_pseudorapidity-1], *hSumPFPt[nedge_pseudorapidity-1];
1026 
1027  for(int i = 0;i<etaBins_;i++){
1028 
1029  SumPFVsPtInitial[i] = 0;
1030  SumPFVsPt[i] = 0;
1031  SumPFPt[i] = 0;
1032  SumSquaredPFVsPtInitial[i] = 0;
1033  SumSquaredPFVsPt[i] = 0;
1034  SumSquaredPFPt[i] = 0;
1035 
1036  hSumPFVsPtInitial[i] = new TH1F(Form("hSumPFVsPtInitial_%d",i),"",10000,-10000,10000);
1037  hSumPFVsPt[i] = new TH1F(Form("hSumPFVsPt_%d",i),"",10000,-10000,10000);
1038  hSumPFPt[i] = new TH1F(Form("hSumPFPt_%d",i),"",10000,-10000,10000);
1039 
1040  }
1041 
1042  vector<vector <float> > PF_Space(1,vector<float>(3));
1043 
1044  for(unsigned icand=0;icand<pfCandidateColl->size(); icand++)
1045  {
1046  const reco::PFCandidate pfCandidate = pfCandidateColl->at(icand);
1047  reco::CandidateViewRef ref(pfcandidates_,icand);
1048  if(pfCandidate.pt() < 5) continue;
1049 
1050  if(std::string("Vs")==UEAlgo)
1051  {
1052 
1053  const reco::VoronoiBackground& voronoi = (*VsBackgrounds)[ref];
1054  vsPt = voronoi.pt();
1055  vsPtInitial = voronoi.pt_subtracted();
1056  vsArea = voronoi.area();
1057 
1058  }
1059 
1060  NPFpart++;
1061  pfPt = pfCandidate.pt();
1062  pfEta = pfCandidate.eta();
1063  pfPhi = pfCandidate.phi();
1064  pfID = pfCandidate.particleId();
1065 
1066  bool isBarrel = false;
1067  bool isEndcap = false;
1068  bool isForward = false;
1069 
1070  if(fabs(pfEta)<BarrelEta) isBarrel = true;
1071  if(fabs(pfEta)>=BarrelEta && fabs(pfEta)<EndcapEta) isEndcap = true;
1072  if(fabs(pfEta)>=EndcapEta && fabs(pfEta)<ForwardEta) isForward = true;
1073 
1074  switch(pfID){
1075  case 0 :
1076  mPFCandpT_vs_eta_Unknown->Fill(pfPt, pfEta);
1077  if(isBarrel) mPFCandpT_Barrel_Unknown->Fill(pfPt);
1078  if(isEndcap) mPFCandpT_Endcap_Unknown->Fill(pfPt);
1079  if(isForward) mPFCandpT_Forward_Unknown->Fill(pfPt);
1080  case 1 :
1081  mPFCandpT_vs_eta_ChargedHadron->Fill(pfPt, pfEta);
1082  if(isBarrel) mPFCandpT_Barrel_ChargedHadron->Fill(pfPt);
1083  if(isEndcap) mPFCandpT_Endcap_ChargedHadron->Fill(pfPt);
1084  if(isForward) mPFCandpT_Forward_ChargedHadron->Fill(pfPt);
1085  case 2 :
1086  mPFCandpT_vs_eta_electron->Fill(pfPt, pfEta);
1087  if(isBarrel) mPFCandpT_Barrel_electron->Fill(pfPt);
1088  if(isEndcap) mPFCandpT_Endcap_electron->Fill(pfPt);
1089  if(isForward) mPFCandpT_Forward_electron->Fill(pfPt);
1090  case 3 :
1091  mPFCandpT_vs_eta_muon->Fill(pfPt, pfEta);
1092  if(isBarrel) mPFCandpT_Barrel_muon->Fill(pfPt);
1093  if(isEndcap) mPFCandpT_Endcap_muon->Fill(pfPt);
1094  if(isForward) mPFCandpT_Forward_muon->Fill(pfPt);
1095  case 4 :
1096  mPFCandpT_vs_eta_photon->Fill(pfPt, pfEta);
1097  if(isBarrel) mPFCandpT_Barrel_photon->Fill(pfPt);
1098  if(isEndcap) mPFCandpT_Endcap_photon->Fill(pfPt);
1099  if(isForward) mPFCandpT_Forward_photon->Fill(pfPt);
1100  case 5 :
1101  mPFCandpT_vs_eta_NeutralHadron->Fill(pfPt, pfEta);
1102  if(isBarrel) mPFCandpT_Barrel_NeutralHadron->Fill(pfPt);
1103  if(isEndcap) mPFCandpT_Endcap_NeutralHadron->Fill(pfPt);
1104  if(isForward) mPFCandpT_Forward_NeutralHadron->Fill(pfPt);
1105  case 6 :
1106  mPFCandpT_vs_eta_HadE_inHF->Fill(pfPt, pfEta);
1107  if(isBarrel) mPFCandpT_Barrel_HadE_inHF->Fill(pfPt);
1108  if(isEndcap) mPFCandpT_Endcap_HadE_inHF->Fill(pfPt);
1109  if(isForward) mPFCandpT_Forward_HadE_inHF->Fill(pfPt);
1110  case 7 :
1111  mPFCandpT_vs_eta_EME_inHF->Fill(pfPt, pfEta);
1112  if(isBarrel) mPFCandpT_Barrel_EME_inHF->Fill(pfPt);
1113  if(isEndcap) mPFCandpT_Endcap_EME_inHF->Fill(pfPt);
1114  if(isForward) mPFCandpT_Forward_EME_inHF->Fill(pfPt);
1115  }
1116 
1117 
1118  //Fill 2d vector matrix
1119  tempVector.push_back(pfPt);
1120  tempVector.push_back(pfEta);
1121  tempVector.push_back(pfPhi);
1122  tempVector.push_back(vsPtInitial);
1123  tempVector.push_back(vsPt);
1124 
1125 
1126  numbers.push_back(tempVector);
1127  tempVector.clear();
1128 
1129  for(size_t k = 0;k<nedge_pseudorapidity-1; k++)
1130  {
1131  if(pfEta >= edge_pseudorapidity[k] && pfEta < edge_pseudorapidity[k+1]){
1132  SumPFVsPtInitial[k] = SumPFVsPtInitial[k] + vsPtInitial;
1133  SumPFVsPt[k] = SumPFVsPt[k] + vsPt;
1134  SumPFPt[k] = SumPFPt[k] + pfPt;
1135 
1136  SumSquaredPFVsPtInitial[k] = SumSquaredPFVsPtInitial[k] + vsPtInitial*vsPtInitial;
1137  SumSquaredPFVsPt[k] = SumSquaredPFVsPt[k] + vsPt*vsPt;
1138  SumSquaredPFPt[k] = SumSquaredPFPt[k] + pfPt*pfPt;
1139  break;
1140  }// eta selection statement
1141 
1142  }// eta bin loop
1143 
1144  SumPt_value = SumPt_value + pfPt;
1145 
1146  mPFPt->Fill(pfPt);
1147  mPFEta->Fill(pfEta);
1148  mPFPhi->Fill(pfPhi);
1149  mPFVsPt->Fill(vsPt);
1150  mPFVsPtInitial->Fill(vsPtInitial); //filled with zeros (need a fix)
1151  mPFVsPtInitial_HF->Fill(cent->EtHFtowerSum(), vsPtInitial,1); //filled with zeros (need a fix)
1152 
1153  if(isBarrel)
1154  {
1155  if(hibin >= 190 && hibin < 200)
1157 
1158  if(hibin >= 180 && hibin < 190)
1160 
1161  if(hibin >= 170 && hibin < 180)
1163 
1164  if(hibin >= 160 && hibin < 170)
1166 
1167  if(hibin >= 150 && hibin < 160)
1169 
1170  if(hibin >= 140 && hibin < 150)
1172 
1173  if(hibin >= 130 && hibin < 140)
1175 
1176  if(hibin >= 120 && hibin < 130)
1178 
1179  if(hibin >= 110 && hibin < 120)
1181 
1182  if(hibin >= 100 && hibin < 110)
1184 
1185  if(hibin >= 90 && hibin < 100)
1187 
1188  if(hibin >= 80 && hibin < 90)
1190 
1191  if(hibin >= 70 && hibin < 80)
1193 
1194  if(hibin >= 60 && hibin < 70)
1196 
1197  if(hibin >= 50 && hibin < 60)
1199 
1200  if(hibin >= 40 && hibin < 50)
1202 
1203  if(hibin >= 30 && hibin < 40)
1205 
1206  if(hibin >= 20 && hibin < 30)
1208 
1209  if(hibin >= 10 && hibin < 20)
1211 
1212  if(hibin >= 0 && hibin < 10)
1214  }
1215 
1216 
1217  if(isEndcap)
1218  {
1219 
1220  if(hibin >= 190 && hibin < 200)
1222 
1223  if(hibin >= 180 && hibin < 190)
1225 
1226  if(hibin >= 170 && hibin < 180)
1228 
1229  if(hibin >= 160 && hibin < 170)
1231 
1232  if(hibin >= 150 && hibin < 160)
1234 
1235  if(hibin >= 140 && hibin < 150)
1237 
1238  if(hibin >= 130 && hibin < 140)
1240 
1241  if(hibin >= 120 && hibin < 130)
1243 
1244  if(hibin >= 110 && hibin < 120)
1246 
1247  if(hibin >= 100 && hibin < 110)
1249 
1250  if(hibin >= 90 && hibin < 100)
1252 
1253  if(hibin >= 80 && hibin < 90)
1255 
1256  if(hibin >= 70 && hibin < 80)
1258 
1259  if(hibin >= 60 && hibin < 70)
1261 
1262  if(hibin >= 50 && hibin < 60)
1264 
1265  if(hibin >= 40 && hibin < 50)
1267 
1268  if(hibin >= 30 && hibin < 40)
1270 
1271  if(hibin >= 20 && hibin < 30)
1273 
1274  if(hibin >= 10 && hibin < 20)
1276 
1277  if(hibin >= 0 && hibin < 10)
1279 
1280  }
1281 
1282 
1283  if(isForward)
1284  {
1285 
1286 
1287  if(hibin >= 190 && hibin < 200)
1289 
1290  if(hibin >= 180 && hibin < 190)
1292 
1293  if(hibin >= 170 && hibin < 180)
1295 
1296  if(hibin >= 160 && hibin < 170)
1298 
1299  if(hibin >= 150 && hibin < 160)
1301 
1302  if(hibin >= 140 && hibin < 150)
1304 
1305  if(hibin >= 130 && hibin < 140)
1307 
1308  if(hibin >= 120 && hibin < 130)
1310 
1311  if(hibin >= 110 && hibin < 120)
1313 
1314  if(hibin >= 100 && hibin < 110)
1316 
1317  if(hibin >= 90 && hibin < 100)
1319 
1320  if(hibin >= 80 && hibin < 90)
1322 
1323  if(hibin >= 70 && hibin < 80)
1325 
1326  if(hibin >= 60 && hibin < 70)
1328 
1329  if(hibin >= 50 && hibin < 60)
1331 
1332  if(hibin >= 40 && hibin < 50)
1334 
1335  if(hibin >= 30 && hibin < 40)
1337 
1338  if(hibin >= 20 && hibin < 30)
1340 
1341  if(hibin >= 10 && hibin < 20)
1343 
1344  if(hibin >= 0 && hibin < 10)
1345  mPFVsPtInitial_HF_Centrality_5_0->Fill(vsPtInitial);
1346 
1347 
1348  }
1349 
1350 
1351 
1352 
1353  mPFArea->Fill(vsArea);
1354 
1355 
1356 
1357  }// pf candidate loop
1358 
1359  for(int k = 0;k<nedge_pseudorapidity-1;k++){
1360 
1361  hSumPFVsPtInitial[k]->Fill(SumPFVsPtInitial[k]);
1362  hSumPFVsPt[k]->Fill(SumPFVsPt[k]);
1363  hSumPFPt[k]->Fill(SumPFPt[k]);
1364 
1365  }// eta bin loop
1366 
1367  Float_t Evt_SumPFVsPt = 0;
1368  Float_t Evt_SumPFVsPtInitial = 0;
1369  Float_t Evt_SumPFPt = 0;
1370  Float_t Evt_SumSquaredPFVsPt = 0;
1371  Float_t Evt_SumSquaredPFVsPtInitial = 0;
1372  Float_t Evt_SumSquaredPFPt = 0;
1373 
1374  mSumPFVsPtInitial_n5p191_n2p650->Fill(SumPFVsPtInitial[0]);
1375  mSumPFVsPtInitial_n2p650_n2p043->Fill(SumPFVsPtInitial[1]);
1376  mSumPFVsPtInitial_n2p043_n1p740->Fill(SumPFVsPtInitial[2]);
1377  mSumPFVsPtInitial_n1p740_n1p479->Fill(SumPFVsPtInitial[3]);
1378  mSumPFVsPtInitial_n1p479_n1p131->Fill(SumPFVsPtInitial[4]);
1379  mSumPFVsPtInitial_n1p131_n0p783->Fill(SumPFVsPtInitial[5]);
1380  mSumPFVsPtInitial_n0p783_n0p522->Fill(SumPFVsPtInitial[6]);
1381  mSumPFVsPtInitial_n0p522_0p522->Fill(SumPFVsPtInitial[7]);
1382  mSumPFVsPtInitial_0p522_0p783->Fill(SumPFVsPtInitial[8]);
1383  mSumPFVsPtInitial_0p783_1p131->Fill(SumPFVsPtInitial[9]);
1384  mSumPFVsPtInitial_1p131_1p479->Fill(SumPFVsPtInitial[10]);
1385  mSumPFVsPtInitial_1p479_1p740->Fill(SumPFVsPtInitial[11]);
1386  mSumPFVsPtInitial_1p740_2p043->Fill(SumPFVsPtInitial[12]);
1387  mSumPFVsPtInitial_2p043_2p650->Fill(SumPFVsPtInitial[13]);
1388  mSumPFVsPtInitial_2p650_5p191->Fill(SumPFVsPtInitial[14]);
1389 
1390  mSumPFVsPt_n5p191_n2p650->Fill(SumPFVsPt[0]);
1391  mSumPFVsPt_n2p650_n2p043->Fill(SumPFVsPt[1]);
1392  mSumPFVsPt_n2p043_n1p740->Fill(SumPFVsPt[2]);
1393  mSumPFVsPt_n1p740_n1p479->Fill(SumPFVsPt[3]);
1394  mSumPFVsPt_n1p479_n1p131->Fill(SumPFVsPt[4]);
1395  mSumPFVsPt_n1p131_n0p783->Fill(SumPFVsPt[5]);
1396  mSumPFVsPt_n0p783_n0p522->Fill(SumPFVsPt[6]);
1397  mSumPFVsPt_n0p522_0p522->Fill(SumPFVsPt[7]);
1398  mSumPFVsPt_0p522_0p783->Fill(SumPFVsPt[8]);
1399  mSumPFVsPt_0p783_1p131->Fill(SumPFVsPt[9]);
1400  mSumPFVsPt_1p131_1p479->Fill(SumPFVsPt[10]);
1401  mSumPFVsPt_1p479_1p740->Fill(SumPFVsPt[11]);
1402  mSumPFVsPt_1p740_2p043->Fill(SumPFVsPt[12]);
1403  mSumPFVsPt_2p043_2p650->Fill(SumPFVsPt[13]);
1404  mSumPFVsPt_2p650_5p191->Fill(SumPFVsPt[14]);
1405 
1406  mSumPFPt_n5p191_n2p650->Fill(SumPFPt[0]);
1407  mSumPFPt_n2p650_n2p043->Fill(SumPFPt[1]);
1408  mSumPFPt_n2p043_n1p740->Fill(SumPFPt[2]);
1409  mSumPFPt_n1p740_n1p479->Fill(SumPFPt[3]);
1410  mSumPFPt_n1p479_n1p131->Fill(SumPFPt[4]);
1411  mSumPFPt_n1p131_n0p783->Fill(SumPFPt[5]);
1412  mSumPFPt_n0p783_n0p522->Fill(SumPFPt[6]);
1413  mSumPFPt_n0p522_0p522->Fill(SumPFPt[7]);
1414  mSumPFPt_0p522_0p783->Fill(SumPFPt[8]);
1415  mSumPFPt_0p783_1p131->Fill(SumPFPt[9]);
1416  mSumPFPt_1p131_1p479->Fill(SumPFPt[10]);
1417  mSumPFPt_1p479_1p740->Fill(SumPFPt[11]);
1418  mSumPFPt_1p740_2p043->Fill(SumPFPt[12]);
1419  mSumPFPt_2p043_2p650->Fill(SumPFPt[13]);
1420  mSumPFPt_2p650_5p191->Fill(SumPFPt[14]);
1421 
1422  for(size_t k = 0;k<nedge_pseudorapidity-1;k++){
1423 
1424  Evt_SumPFVsPtInitial = Evt_SumPFVsPtInitial + SumPFVsPtInitial[k];
1425  Evt_SumPFVsPt = Evt_SumPFVsPt + SumPFVsPt[k];
1426  Evt_SumPFPt = Evt_SumPFPt + SumPFPt[k];
1427 
1428  mSumPFVsPtInitial_eta->Fill(edge_pseudorapidity[k],SumPFVsPtInitial[k]);
1429  mSumPFVsPt_eta->Fill(edge_pseudorapidity[k],SumPFVsPt[k]);
1430  mSumPFPt_eta->Fill(edge_pseudorapidity[k],SumPFPt[k]);
1431 
1432  Evt_SumSquaredPFVsPtInitial = Evt_SumSquaredPFVsPtInitial + SumSquaredPFVsPtInitial[k];
1433  Evt_SumSquaredPFVsPt = Evt_SumSquaredPFVsPt + SumSquaredPFVsPt[k];
1434  Evt_SumSquaredPFPt = Evt_SumSquaredPFPt + SumSquaredPFPt[k];
1435 
1436  mSumSquaredPFVsPtInitial_eta->Fill(edge_pseudorapidity[k],hSumPFVsPtInitial[k]->GetRMS(1));
1437  mSumSquaredPFVsPt_eta->Fill(edge_pseudorapidity[k],hSumPFVsPt[k]->GetRMS(1));
1438  mSumSquaredPFPt_eta->Fill(edge_pseudorapidity[k],hSumPFPt[k]->GetRMS(1));
1439 
1440  delete hSumPFVsPtInitial[k];
1441  delete hSumPFVsPt[k];
1442  delete hSumPFPt[k];
1443 
1444  }// eta bin loop
1445 
1446  mSumPFVsPtInitial->Fill(Evt_SumPFVsPtInitial);
1447  mSumPFVsPt->Fill(Evt_SumPFVsPt);
1448  mSumPFPt->Fill(Evt_SumPFPt);
1449  mSumPFVsPtInitial_HF->Fill(Evt_SumPFVsPtInitial,HF_energy);
1450  mSumPFVsPt_HF->Fill(Evt_SumPFVsPt,HF_energy);
1451  mSumPFPt_HF->Fill(Evt_SumPFPt,HF_energy);
1452 
1453  mSumSquaredPFVsPtInitial->Fill(Evt_SumSquaredPFVsPtInitial);
1454  mSumSquaredPFVsPt->Fill(Evt_SumSquaredPFVsPt);
1455  mSumSquaredPFPt->Fill(Evt_SumSquaredPFPt);
1456 
1457  mNPFpart->Fill(NPFpart);
1458  mSumpt->Fill(SumPt_value);
1459 
1460  }
1461 
1462  if (isCaloJet)
1463  {
1464  for (unsigned ijet=0; ijet<caloJets->size(); ijet++)
1465  {
1466  recoJets.push_back((*caloJets)[ijet]);
1467  }
1468  }
1469 
1470  if (isJPTJet)
1471  {
1472  for (unsigned ijet=0; ijet<jptJets->size(); ijet++)
1473  recoJets.push_back((*jptJets)[ijet]);
1474  }
1475 
1476  if (isPFJet)
1477  {
1478  if(std::string("Pu")==UEAlgo)
1479  {
1480  for (unsigned ijet=0; ijet<basicJets->size();ijet++)
1481  {
1482  recoJets.push_back((*basicJets)[ijet]);
1483  }
1484  }
1485  if(std::string("Vs")==UEAlgo){
1486  for (unsigned ijet=0; ijet<pfJets->size(); ijet++)
1487  {
1488  recoJets.push_back((*pfJets)[ijet]);
1489  }
1490  }
1491  }
1492 
1493 
1494  if (isCaloJet && !caloJets.isValid())
1495  {
1496  return;
1497  }
1498  if (isJPTJet && !jptJets.isValid())
1499  {
1500  return;
1501  }
1502  if (isPFJet){
1503  if(std::string("Pu")==UEAlgo){if(!basicJets.isValid()) return;}
1504  if(std::string("Vs")==UEAlgo){if(!pfJets.isValid()) return;}
1505  }
1506 
1507 
1508  int nJet_40 = 0;
1509 
1510  mNJets->Fill(recoJets.size());
1511 
1512  for (unsigned ijet=0; ijet<recoJets.size(); ijet++) {
1513  if (recoJets[ijet].pt() > mRecoJetPtThreshold) {
1514  //counting forward and barrel jets
1515  // get an idea of no of jets with pT>40 GeV
1516  if(recoJets[ijet].pt() > 40)
1517  nJet_40++;
1518  if (mEta) mEta->Fill(recoJets[ijet].eta());
1519  if (mjetpileup) mjetpileup->Fill(recoJets[ijet].pileup());
1520  if (mJetArea) mJetArea ->Fill(recoJets[ijet].jetArea());
1521  if (mPhi) mPhi ->Fill(recoJets[ijet].phi());
1522  if (mEnergy) mEnergy ->Fill(recoJets[ijet].energy());
1523  if (mP) mP ->Fill(recoJets[ijet].p());
1524  if (mPt) mPt ->Fill(recoJets[ijet].pt());
1525  if (mMass) mMass ->Fill(recoJets[ijet].mass());
1526  if (mConstituents) mConstituents->Fill(recoJets[ijet].nConstituents());
1527 
1528  for(size_t iii = 0 ; iii < numbers.size() ; iii++)
1529  {
1530  pfDeltaR = sqrt((numbers[iii][2]-recoJets[ijet].phi())*(numbers[iii][2]-recoJets[ijet].phi()) + (numbers[iii][1]-recoJets[ijet].eta())*(numbers[iii][1]-recoJets[ijet].eta())); //MZ
1531 
1532  mPFVsPtInitialDeltaR_pTCorrected->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1533 
1534 
1535  mPFVsPtDeltaR_pTCorrected->Fill(pfDeltaR,numbers[iii][4]/recoJets[ijet].pt()); //MZ
1536 
1537  mPFDeltaR ->Fill(pfDeltaR); //MZ
1538  mPFDeltaR_Scaled_R->Fill(pfDeltaR,1. / pow(pfDeltaR,2)); //MZ
1539  mPFDeltaR_pTCorrected->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1540 
1541  if(recoJets[ijet].pt() > 20 && recoJets[ijet].pt() < 30)
1542  {
1543  mPFDeltaR_pTCorrected_PFpT_20To30->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1544  mPFDeltaR_pTCorrected_PFVsInitialpT_20To30->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1545  }
1546 
1547  if(recoJets[ijet].pt() > 30 && recoJets[ijet].pt() < 50)
1548  {
1549  mPFDeltaR_pTCorrected_PFpT_30To50->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1550  mPFDeltaR_pTCorrected_PFVsInitialpT_30To50->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1551  }
1552 
1553  if(recoJets[ijet].pt() > 50 && recoJets[ijet].pt() < 80)
1554  {
1555  mPFDeltaR_pTCorrected_PFpT_50To80->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1556  mPFDeltaR_pTCorrected_PFVsInitialpT_50To80->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1557  }
1558 
1559 
1560  if(recoJets[ijet].pt() > 80 && recoJets[ijet].pt() < 120)
1561  {
1562  mPFDeltaR_pTCorrected_PFpT_80To120->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1563  mPFDeltaR_pTCorrected_PFVsInitialpT_80To120->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1564  }
1565 
1566 
1567  if(recoJets[ijet].pt() > 120 && recoJets[ijet].pt() < 180)
1568  {
1569  mPFDeltaR_pTCorrected_PFpT_120To180->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1570  mPFDeltaR_pTCorrected_PFVsInitialpT_120To180->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1571  }
1572 
1573 
1574  if(recoJets[ijet].pt() > 180 && recoJets[ijet].pt() < 300)
1575  {
1576  mPFDeltaR_pTCorrected_PFpT_180To300->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1577  mPFDeltaR_pTCorrected_PFVsInitialpT_180To300->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1578  }
1579 
1580  if(recoJets[ijet].pt() > 300)
1581  {
1582  mPFDeltaR_pTCorrected_PFpT_300ToInf->Fill(pfDeltaR,numbers[iii][0]/recoJets[ijet].pt()); //MZ
1583  mPFDeltaR_pTCorrected_PFVsInitialpT_300ToInf->Fill(pfDeltaR,numbers[iii][3]/recoJets[ijet].pt()); //MZ
1584  }
1585 
1586  }
1587 
1588  }
1589  //cout << "End RecoJets loop" << endl;
1590  if (mNJets_40)
1591  mNJets_40->Fill(nJet_40);
1592 
1593  } // end recojet loop 222
1594 
1595  numbers.clear();
1596 
1597 }
static const Int_t etaBins_
MonitorElement * mPFCandpT_Forward_photon
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_30To50
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandToken_
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
MonitorElement * mPFVsPtInitial_Barrel_Centrality_25_20
MonitorElement * mSumPFVsPt_2p650_5p191
MonitorElement * mSumCaloVsPt_HF
MonitorElement * mSumCaloVsPtInitial_n2p043_n1p740
MonitorElement * mSumCaloVsPt_n5p191_n2p650
MonitorElement * mSumCaloVsPt_n1p131_n0p783
MonitorElement * mSumSquaredPFPt
MonitorElement * mPFCandpT_vs_eta_electron
MonitorElement * mSumPFVsPtInitial
edm::EDGetTokenT< reco::CandidateView > caloCandViewToken_
MonitorElement * mSumCaloPt_n2p043_n1p740
MonitorElement * mPFVsPtInitial_Barrel_Centrality_10_5
MonitorElement * mPFCandpT_Forward_EME_inHF
const Double_t EndcapEta
edm::EDGetTokenT< reco::JPTJetCollection > jptJetsToken_
MonitorElement * mSumCaloVsPtInitial_HF
MonitorElement * mSumPFVsPtInitial_1p131_1p479
MonitorElement * mSumSquaredCaloVsPt_eta
MonitorElement * mSumPFVsPt_n5p191_n2p650
MonitorElement * mPFVsPtInitial_EndCap_Centrality_60_55
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_80To120
MonitorElement * mSumCaloVsPtInitial_n2p650_n2p043
MonitorElement * mCaloVsPtInitial
math::PtEtaPhiMLorentzVector p4(double vtxZ) const
Definition: CaloTower.cc:129
MonitorElement * mPFDeltaR_pTCorrected_PFpT_180To300
MonitorElement * mSumCaloVsPt_1p479_1p740
MonitorElement * mPFVsPtInitial_Barrel_Centrality_55_50
MonitorElement * mPFVsPtInitial_Barrel_Centrality_90_85
MonitorElement * mSumCaloVsPt_n2p650_n2p043
MonitorElement * mSumCaloVsPt_n0p783_n0p522
virtual double eta() const final
momentum pseudorapidity
MonitorElement * mSumSquaredCaloVsPtInitial_eta
MonitorElement * mPFVsPtInitial_EndCap_Centrality_15_10
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
MonitorElement * mSumCaloVsPtInitial_1p479_1p740
MonitorElement * mPFCandpT_Forward_muon
MonitorElement * mPFVsPtInitial_HF_Centrality_75_70
MonitorElement * mSumPFVsPt_n2p043_n1p740
MonitorElement * mPFVsPtInitial_EndCap_Centrality_55_50
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
MonitorElement * mSumCaloVsPtInitial_1p131_1p479
MonitorElement * mPFVsPtInitial_HF_Centrality_20_15
MonitorElement * mSumCaloPt_0p783_1p131
MonitorElement * mPFVsPtInitial_EndCap_Centrality_25_20
MonitorElement * mPFCandpT_Endcap_NeutralHadron
MonitorElement * mPFVsPtInitial_HF
MonitorElement * mPFVsPtInitial_HF_Centrality_25_20
edm::EDGetTokenT< std::vector< float > > backgrounds_value_
MonitorElement * mSumCaloVsPtInitial_n1p479_n1p131
MonitorElement * mPFVsPtInitial_Barrel_Centrality_5_0
MonitorElement * mPFCandpT_vs_eta_EME_inHF
MonitorElement * mSumPFPt_n0p522_0p522
MonitorElement * mSumSquaredCaloPt
bool isForward(DetId const &)
MonitorElement * mPFVsPtInitial_Barrel_Centrality_95_90
MonitorElement * mSumPFPt_2p043_2p650
MonitorElement * mSumPFVsPt_0p522_0p783
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * mSumSquaredCaloVsPtInitial
MonitorElement * mSumCaloPt_1p131_1p479
MonitorElement * mPFVsPtInitial_EndCap_Centrality_30_25
MonitorElement * mSumSquaredPFVsPt_eta
MonitorElement * mSumPFVsPt_eta
MonitorElement * mSumPFVsPtInitial_2p650_5p191
MonitorElement * mSumCaloVsPt_1p131_1p479
MonitorElement * mSumPFPt_n1p740_n1p479
MonitorElement * mPFVsPtInitial_HF_Centrality_85_80
MonitorElement * mSumPFVsPtInitial_n2p650_n2p043
MonitorElement * mSumPFPt_2p650_5p191
MonitorElement * mSumPFVsPtInitial_0p783_1p131
MonitorElement * mPFCandpT_Forward_electron
MonitorElement * mPFDeltaR_pTCorrected_PFpT_300ToInf
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
MonitorElement * mSumPFVsPtInitial_n0p783_n0p522
MonitorElement * mPFVsPtInitial_EndCap_Centrality_10_5
MonitorElement * mSumCaloPt_eta
MonitorElement * mSumPFPt_0p522_0p783
MonitorElement * mSumPFPt_n2p650_n2p043
MonitorElement * mPFCandpT_vs_eta_muon
MonitorElement * mPFVsPtInitial_EndCap_Centrality_80_75
MonitorElement * mSumCaloPt_n1p740_n1p479
void Fill(long long x)
MonitorElement * mPFVsPtInitial_Barrel_Centrality_15_10
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_50To80
MonitorElement * mSumPFVsPt_1p740_2p043
MonitorElement * mPFCandpT_Endcap_HadE_inHF
virtual double phi() const final
momentum azimuthal angle
edm::EDGetTokenT< int > centralityBinToken
MonitorElement * mSumCaloPt_0p522_0p783
MonitorElement * mSumCaloVsPt_n1p479_n1p131
MonitorElement * mPFCandpT_Endcap_ChargedHadron
MonitorElement * mSumCaloPt_n2p650_n2p043
MonitorElement * mSumPFPt_0p783_1p131
MonitorElement * mSumCaloPt_1p479_1p740
MonitorElement * mSumPFVsPt_1p479_1p740
MonitorElement * mPFCandpT_vs_eta_NeutralHadron
MonitorElement * mSumPFVsPt_HF
MonitorElement * mPFVsPtInitial_HF_Centrality_45_40
MonitorElement * mSumCaloVsPtInitial_0p522_0p783
MonitorElement * mPFVsPtInitial_EndCap_Centrality_100_95
MonitorElement * mSumCaloPt_HF
MonitorElement * mPFVsPtInitial
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_20To30
MonitorElement * mPFVsPtInitial_EndCap_Centrality_70_65
MonitorElement * mSumCaloVsPtInitial_n0p522_0p522
MonitorElement * mSumPFVsPtInitial_n1p479_n1p131
MonitorElement * mPFVsPtInitial_Barrel_Centrality_100_95
MonitorElement * mPFCandpT_vs_eta_photon
MonitorElement * mPFVsPtInitial_Barrel_Centrality_20_15
MonitorElement * mSumPFVsPt_n2p650_n2p043
MonitorElement * mSumPFVsPt_n0p522_0p522
edm::EDGetTokenT< reco::Centrality > centralityToken
MonitorElement * mSumSquaredPFVsPtInitial
MonitorElement * mPFCandpT_Forward_ChargedHadron
MonitorElement * mSumCaloVsPtInitial_n1p131_n0p783
MonitorElement * mSumSquaredCaloVsPt
MonitorElement * mSumPFVsPt_1p131_1p479
MonitorElement * mPFVsPtInitial_Barrel_Centrality_75_70
T sqrt(T t)
Definition: SSEVec.h:18
MonitorElement * mSumPFPt_1p131_1p479
MonitorElement * mSumPFVsPtInitial_1p479_1p740
MonitorElement * mSumPFVsPt_n0p783_n0p522
MonitorElement * mPFCandpT_Endcap_muon
MonitorElement * mPFCandpT_Endcap_photon
MonitorElement * mPFDeltaR_Scaled_R
MonitorElement * mSumPFPt_n1p479_n1p131
edm::EDGetTokenT< std::vector< reco::Vertex > > hiVertexToken_
MonitorElement * mPFVsPtInitial_EndCap_Centrality_65_60
MonitorElement * mConstituents
MonitorElement * mPFDeltaR_pTCorrected_PFpT_80To120
MonitorElement * mPFVsPtInitial_EndCap_Centrality_50_45
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * mPFVsPtInitial_EndCap_Centrality_35_30
MonitorElement * mPFDeltaR_pTCorrected_PFpT_50To80
MonitorElement * mPFVsPtInitial_EndCap_Centrality_95_90
MonitorElement * mPFCandpT_Barrel_photon
MonitorElement * mPFVsPtInitial_HF_Centrality_40_35
MonitorElement * mSumPFVsPt_n1p479_n1p131
MonitorElement * mPFVsPtInitial_EndCap_Centrality_75_70
MonitorElement * mPFVsPtInitial_HF_Centrality_50_45
MonitorElement * mSumSquaredPFVsPt
MonitorElement * mPFVsPtDeltaR_pTCorrected
MonitorElement * mPFDeltaR_pTCorrected
math::XYZPoint Point
point in the space
Definition: Vertex.h:39
MonitorElement * mSumCaloVsPt_n1p740_n1p479
MonitorElement * mSumCaloVsPtInitial_1p740_2p043
MonitorElement * mSumCaloPt_n0p783_n0p522
MonitorElement * mPFVsPtInitial_HF_Centrality_90_85
MonitorElement * mSumSquaredCaloPt_eta
MonitorElement * mPFDeltaR_pTCorrected_PFpT_20To30
MonitorElement * mSumCaloVsPtInitial_2p043_2p650
MonitorElement * mPFCandpT_Barrel_Unknown
bool isValid() const
Definition: HandleBase.h:74
MonitorElement * mSumCaloPt_n0p522_0p522
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_120To180
MonitorElement * mSumPFVsPtInitial_n2p043_n1p740
MonitorElement * mSumCaloVsPt_n2p043_n1p740
MonitorElement * mPFCandpT_Barrel_NeutralHadron
bool isEndcap(GeomDetEnumerators::SubDetector m)
MonitorElement * mPFCandpT_Endcap_Unknown
MonitorElement * mPFDeltaR_pTCorrected_PFpT_30To50
MonitorElement * mSumPFPt_n5p191_n2p650
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_300ToInf
MonitorElement * mSumPFVsPt_2p043_2p650
MonitorElement * mSumCaloVsPt_1p740_2p043
int k[5][pyjets_maxn]
const Double_t ForwardEta
MonitorElement * mSumCaloVsPt_n0p522_0p522
MonitorElement * mSumCaloVsPt_2p650_5p191
MonitorElement * mPFCandpT_vs_eta_ChargedHadron
MonitorElement * mSumPFVsPtInitial_n5p191_n2p650
MonitorElement * mPFCandpT_Forward_HadE_inHF
edm::EDGetTokenT< reco::BasicJetCollection > basicJetsToken_
MonitorElement * mSumPFVsPtInitial_HF
MonitorElement * mSumCaloVsPtInitial_n1p740_n1p479
MonitorElement * mPFCandpT_Barrel_ChargedHadron
MonitorElement * mPFCandpT_Barrel_HadE_inHF
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
MonitorElement * mPFVsPtInitial_HF_Centrality_15_10
MonitorElement * mSumPFPt_1p479_1p740
MonitorElement * mSumCaloPt_2p650_5p191
MonitorElement * mPFVsPtInitial_Barrel_Centrality_60_55
MonitorElement * mPFVsPtInitial_Barrel_Centrality_30_25
MonitorElement * mPFVsPtInitial_Barrel_Centrality_85_80
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
double EtHFtowerSum() const
Definition: Centrality.h:23
MonitorElement * mPFVsPtInitial_HF_Centrality_80_75
edm::InputTag mInputPFCandCollection
MonitorElement * mSumPFVsPtInitial_n1p131_n0p783
T const * product() const
Definition: Handle.h:81
edm::EDGetTokenT< edm::ValueMap< reco::VoronoiBackground > > backgrounds_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
MonitorElement * mPFVsPtInitial_HF_Centrality_95_90
MonitorElement * mSumSquaredPFPt_eta
MonitorElement * mSumPFPt_n1p131_n0p783
MonitorElement * mPFCandpT_Endcap_EME_inHF
MonitorElement * mSumCaloVsPtInitial_n5p191_n2p650
MonitorElement * mPFCandpT_vs_eta_HadE_inHF
MonitorElement * mPFVsPtInitial_HF_Centrality_65_60
MonitorElement * mPFVsPtInitial_HF_Centrality_100_95
MonitorElement * mSumCaloVsPtInitial
edm::EDGetTokenT< reco::CandidateView > pfCandViewToken_
MonitorElement * mSumCaloVsPtInitial_eta
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
MonitorElement * mPFVsPtInitialDeltaR_pTCorrected
MonitorElement * mSumCaloVsPtInitial_0p783_1p131
MonitorElement * mSumPFPt_1p740_2p043
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * mPFCandpT_Forward_Unknown
MonitorElement * mSumCaloPt_n5p191_n2p650
MonitorElement * mPFVsPtInitial_HF_Centrality_60_55
MonitorElement * mSumPFPt_n0p783_n0p522
MonitorElement * mSumCaloPt_2p043_2p650
std::string const & label() const
Definition: InputTag.h:36
MonitorElement * mSumCaloPt_n1p131_n0p783
MonitorElement * mPFVsPtInitial_Barrel_Centrality_45_40
MonitorElement * mPFVsPtInitial_Barrel_Centrality_50_45
MonitorElement * mSumPFPt_n2p043_n1p740
double pt_subtracted() const
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
fixed size matrix
HLT enums.
size_type size() const
MonitorElement * mPFVsPtInitial_EndCap_Centrality_5_0
MonitorElement * mPFCandpT_Barrel_electron
MonitorElement * mPFDeltaR_pTCorrected_PFVsInitialpT_180To300
static int position[264][3]
Definition: ReadPGInfo.cc:509
MonitorElement * mPFVsPtInitial_EndCap_Centrality_45_40
MonitorElement * mSumCaloVsPtInitial_n0p783_n0p522
MonitorElement * mPFVsPtInitial_HF_Centrality_5_0
MonitorElement * mPFCandpT_Endcap_electron
static const Int_t nedge_pseudorapidity
MonitorElement * mPFVsPtInitial_EndCap_Centrality_20_15
MonitorElement * mPFVsPtInitial_Barrel_Centrality_40_35
MonitorElement * mSumCaloVsPtInitial_2p650_5p191
MonitorElement * mPFVsPtInitial_EndCap_Centrality_90_85
const Double_t BarrelEta
MonitorElement * mSumPFVsPtInitial_0p522_0p783
MonitorElement * mPFVsPtInitial_Barrel_Centrality_35_30
MonitorElement * mSumPFVsPt_0p783_1p131
MonitorElement * mPFVsPtInitial_HF_Centrality_10_5
MonitorElement * mPFVsPtInitial_Barrel_Centrality_70_65
virtual ParticleType particleId() const
Definition: PFCandidate.h:373
MonitorElement * mSumCaloPt_n1p479_n1p131
MonitorElement * mPFDeltaR_pTCorrected_PFpT_120To180
MonitorElement * mSumPFVsPtInitial_n1p740_n1p479
JetAnalyzer_HeavyIons(const edm::ParameterSet &)
MonitorElement * mSumPFVsPtInitial_1p740_2p043
MonitorElement * mPFCandpT_Barrel_EME_inHF
MonitorElement * mPFVsPtInitial_EndCap_Centrality_40_35
MonitorElement * mSumPFVsPt_n1p740_n1p479
MonitorElement * mPFVsPtInitial_HF_Centrality_35_30
MonitorElement * mSumSquaredPFVsPtInitial_eta
MonitorElement * mSumPFVsPt_n1p131_n0p783
MonitorElement * mSumPFVsPtInitial_2p043_2p650
MonitorElement * mSumCaloVsPt_eta
MonitorElement * mSumCaloVsPt_0p522_0p783
MonitorElement * mPFCandpT_vs_eta_Unknown
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
MonitorElement * mPFVsPtInitial_Barrel_Centrality_65_60
MonitorElement * mPFCandpT_Forward_NeutralHadron
MonitorElement * mPFVsPtInitial_Barrel_Centrality_80_75
MonitorElement * mSumPFVsPtInitial_eta
Definition: Run.h:42
MonitorElement * mPFVsPtInitial_EndCap_Centrality_85_80
MonitorElement * mSumCaloVsPt_0p783_1p131
MonitorElement * mSumCaloPt_1p740_2p043
MonitorElement * mSumPFVsPtInitial_n0p522_0p522
MonitorElement * mPFVsPtInitial_HF_Centrality_70_65
MonitorElement * mPFVsPtInitial_HF_Centrality_30_25
MonitorElement * mPFVsPtInitial_HF_Centrality_55_50
MonitorElement * mSumCaloVsPt_2p043_2p650
MonitorElement * mPFCandpT_Barrel_muon