12 mInputCollection (iConfig.getParameter<edm::
InputTag> (
"src")),
13 mInputGenCollection (iConfig.getParameter<edm::
InputTag> (
"srcGen")),
14 mInputPFCandCollection (iConfig.getParameter<edm::
InputTag> (
"PFcands")),
17 centrality (iConfig.getParameter<edm::
InputTag> (
"centrality")),
18 mOutputFile (iConfig.getUntrackedParameter<std::
string>(
"OutputFile",
"")),
19 JetType (iConfig.getUntrackedParameter<std::
string>(
"JetType")),
20 UEAlgo (iConfig.getUntrackedParameter<std::
string>(
"UEAlgo")),
21 Background (iConfig.getParameter<edm::
InputTag> (
"Background")),
22 mRecoJetPtThreshold (iConfig.getParameter<double> (
"recoJetPtThreshold")),
23 mMatchGenPtThreshold (iConfig.getParameter<double> (
"matchGenPtThreshold")),
24 mGenEnergyFractionThreshold (iConfig.getParameter<double> (
"genEnergyFractionThreshold")),
25 mReverseEnergyFractionThreshold(iConfig.getParameter<double> (
"reverseEnergyFractionThreshold")),
26 mRThreshold (iConfig.getParameter<double> (
"RThreshold")),
27 JetCorrectionService (iConfig.getParameter<std::
string> (
"JetCorrections"))
286 static const size_t ncms_hcal_edge_pseudorapidity = 82 + 1;
287 static const double cms_hcal_edge_pseudorapidity[ncms_hcal_edge_pseudorapidity] = {
288 -5.191, -4.889, -4.716, -4.538, -4.363, -4.191, -4.013,
289 -3.839, -3.664, -3.489, -3.314, -3.139, -2.964, -2.853,
290 -2.650, -2.500, -2.322, -2.172, -2.043, -1.930, -1.830,
291 -1.740, -1.653, -1.566, -1.479, -1.392, -1.305, -1.218,
292 -1.131, -1.044, -0.957, -0.879, -0.783, -0.696, -0.609,
293 -0.522, -0.435, -0.348, -0.261, -0.174, -0.087,
295 0.087, 0.174, 0.261, 0.348, 0.435, 0.522, 0.609,
296 0.696, 0.783, 0.879, 0.957, 1.044, 1.131, 1.218,
297 1.305, 1.392, 1.479, 1.566, 1.653, 1.740, 1.830,
298 1.930, 2.043, 2.172, 2.322, 2.500, 2.650, 2.853,
299 2.964, 3.139, 3.314, 3.489, 3.664, 3.839, 4.013,
300 4.191, 4.363, 4.538, 4.716, 4.889, 5.191
305 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 };
307 TH2F *h2D_etabins_vs_pt2 =
new TH2F(
"h2D_etabins_vs_pt2",
"etaBins (x axis), sum pt^{2} (y axis)",
etaBins_,edge_pseudorapidity,10000,0,10000);
308 TH2F *h2D_etabins_vs_pt =
new TH2F(
"h2D_etabins_vs_pt",
"etaBins (x axis), sum pt (y axis)",
etaBins_,edge_pseudorapidity,10000,-1000,1000);
309 TH2F *h2D_etabins_vs_phi =
new TH2F(
"h2D_etabins_vs_phi",
"candidate map, eta(x axis), phi (y axis), pt (z axis)",ncms_hcal_edge_pseudorapidity-1,cms_hcal_edge_pseudorapidity,36,-
TMath::Pi(),
TMath::Pi());
313 mNPFpart = ibooker.
book1D(
"NPFpart",
"No of particle flow candidates",1000,0,10000);
314 mPFPt = ibooker.
book1D(
"PFPt",
"PF candidate p_{T}",1000,-5000,5000);
315 mPFEta = ibooker.
book1D(
"PFEta",
"PF candidate #eta",120,-6,6);
316 mPFPhi = ibooker.
book1D(
"PFPhi",
"PF candidate #phi",70,-3.5,3.5);
317 mPFVsPt = ibooker.
book1D(
"PFVsPt",
"Vs PF candidate p_{T}",1000,-5000,5000);
318 mPFVsPtInitial = ibooker.
book1D(
"PFVsPtInitial",
"Vs background subtracted PF candidate p_{T}",1000,-5000,5000);
319 mPFArea = ibooker.
book1D(
"PFArea",
"VS PF candidate area",100,0,4);
321 mSumPFVsPt = ibooker.
book1D(
"SumPFVsPt",
"Sum of final PF VS p_{T}",1000,-10000,10000);
323 mSumPFPt = ibooker.
book1D(
"SumPFPt",
"Sum of initial PF p_{T}",1000,-10000,10000);
335 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);
336 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);
337 mSumPFPt_HF = ibooker.
book2D(
"SumPFPt_HF",
"HF energy (y axis) vs Sum initial PF p_{T} (x axis)",1000,-1000,1000,1000,0,10000);
366 mSumPFVsPt_0p522_0p783 = ibooker.
book1D(
"mSumPFVsPt_0p522_0p783",
"Sum PFVsPt variable in the eta range 0.522 to 0.783",1000,-1000,1000);
367 mSumPFVsPt_0p783_1p131 = ibooker.
book1D(
"mSumPFVsPt_0p783_1p131",
"Sum PFVsPt variable in the eta range 0.783 to 1.131",1000,-1000,1000);
368 mSumPFVsPt_1p131_1p479 = ibooker.
book1D(
"mSumPFVsPt_1p131_1p479",
"Sum PFVsPt variable in the eta range 1.131 to 1.479",1000,-1000,1000);
369 mSumPFVsPt_1p479_1p740 = ibooker.
book1D(
"mSumPFVsPt_1p479_1p740",
"Sum PFVsPt variable in the eta range 1.479 to 1.740",1000,-1000,1000);
370 mSumPFVsPt_1p740_2p043 = ibooker.
book1D(
"mSumPFVsPt_1p740_2p043",
"Sum PFVsPt variable in the eta range 1.740 to 2.043",1000,-1000,1000);
371 mSumPFVsPt_2p043_2p650 = ibooker.
book1D(
"mSumPFVsPt_2p043_2p650",
"Sum PFVsPt variable in the eta range 2.043 to 2.650",1000,-5000,5000);
372 mSumPFVsPt_2p650_5p191 = ibooker.
book1D(
"mSumPFVsPt_2p650_5p191",
"Sum PFVsPt variable in the eta range 2.650 to 5.191",1000,-5000,5000);
394 mNCalopart = ibooker.
book1D(
"NCalopart",
"No of particle flow candidates",1000,0,10000);
395 mCaloPt = ibooker.
book1D(
"CaloPt",
"Calo candidate p_{T}",1000,-5000,5000);
396 mCaloEta = ibooker.
book1D(
"CaloEta",
"Calo candidate #eta",120,-6,6);
397 mCaloPhi = ibooker.
book1D(
"CaloPhi",
"Calo candidate #phi",70,-3.5,3.5);
398 mCaloVsPt = ibooker.
book1D(
"CaloVsPt",
"Vs Calo candidate p_{T}",1000,-5000,5000);
399 mCaloVsPtInitial = ibooker.
book1D(
"CaloVsPtInitial",
"Vs background subtracted Calo candidate p_{T}",1000,-5000,5000);
400 mCaloArea = ibooker.
book1D(
"CaloArea",
"VS Calo candidate area",100,0,4);
402 mSumCaloVsPt = ibooker.
book1D(
"SumCaloVsPt",
"Sum of final Calo VS p_{T} ",1000,-10000,10000);
404 mSumCaloPt = ibooker.
book1D(
"SumCaloPt",
"Sum Calo p_{T}",1000,-10000,10000);
411 mSumSquaredCaloPt = ibooker.
book1D(
"SumSquaredCaloPt",
"Sum of initial Calo tower p_{T} squared",10000,0,10000);
416 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);
417 mSumCaloVsPt_HF = ibooker.
book2D(
"SumCaloVsPt_HF",
"HF Energy (y axis) vs Sum Calo Vs p_{T} (x axis)",1000,-1000,1000,1000,0,10000);
418 mSumCaloPt_HF = ibooker.
book2D(
"SumCaloPt_HF",
"HF Energy (y axis) vs Sum Calo tower p_{T}",1000,-1000,1000,1000,0,10000);
455 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);
456 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);
457 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);
458 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);
459 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);
460 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);
461 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);
462 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);
463 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);
464 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);
465 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);
466 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);
467 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);
468 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);
469 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);
474 mSumpt = ibooker.
book1D(
"SumpT",
"Sum p_{T} of all the PF candidates per event",1000,0,10000);
475 mvn = ibooker.
book1D(
"vn",
"vn",100,0,10);
479 mNvtx = ibooker.
book1D(
"Nvtx",
"number of vertices", 60, 0, 60);
480 mHF = ibooker.
book1D(
"HF",
"HF energy distribution",1000,0,10000);
483 mDeltapT = ibooker.
book1D(
"DeltapT",
"amount subtracted from candidate",400,-200,200);
490 mEta = ibooker.
book1D(
"Eta",
"Eta", 120, -6, 6);
491 mPhi = ibooker.
book1D(
"Phi",
"Phi", 70, -3.5, 3.5);
492 mPt = ibooker.
book1D(
"Pt",
"Pt", 100, 0, 1000);
493 mP = ibooker.
book1D(
"P",
"P", 100, 0, 1000);
495 mMass = ibooker.
book1D(
"Mass",
"Mass", 100, 0, 200);
499 mNJets_40 = ibooker.
book1D(
"NJets_pt_greater_40",
"NJets pT > 40 GeV", 50, 0, 100);
502 mVs_0_x = ibooker.
book1D(
"Vs_0_x",
"flow modulated sumpT from both HF (+ and -) with cos, vn = 0",1000,-10000,10000);
503 mVs_0_y = ibooker.
book1D(
"Vs_0_y",
"flow modulated sumpT from both HF (+ and -) with sin, vn = 0",1000,-10000,10000);
504 mVs_1_x = ibooker.
book1D(
"Vs_1_x",
"flow modulated sumpT from both HF (+ and -) with cos, vn = 1",1000,-10000,10000);
505 mVs_1_y = ibooker.
book1D(
"Vs_1_y",
"flow modulated sumpT from both HF (+ and -) with sin, vn = 1",1000,-10000,10000);
506 mVs_2_x = ibooker.
book1D(
"Vs_2_x",
"flow modulated sumpT from both HF (+ and -) with cos, vn = 2",1000,-10000,10000);
507 mVs_2_y = ibooker.
book1D(
"Vs_2_y",
"flow modulated sumpT from both HF (+ and -) with sin, vn = 2",1000,-10000,10000);
509 mVs_0_x_versus_HF = ibooker.
book2D(
"Vs_0_x_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with cos, vn = 0 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
510 mVs_0_y_versus_HF = ibooker.
book2D(
"Vs_0_y_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with sin, vn = 0 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
511 mVs_1_x_versus_HF = ibooker.
book2D(
"Vs_1_x_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with cos, vn = 1 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
512 mVs_1_y_versus_HF = ibooker.
book2D(
"Vs_1_y_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with sin, vn = 1 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
513 mVs_2_x_versus_HF = ibooker.
book2D(
"Vs_2_x_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with cos, vn = 2 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
514 mVs_2_y_versus_HF = ibooker.
book2D(
"Vs_2_y_versus_HF",
"flow modulated sumpT (y axis) from both HF (+ and -) with sin, vn = 2 versus HF energy (x axis)",1000,0,10000,1000,-10000,10000);
517 LogInfo(
"OutputInfo") <<
" Histograms will NOT be saved";
521 delete h2D_etabins_vs_pt2;
522 delete h2D_etabins_vs_pt;
523 delete h2D_etabins_vs_phi;
569 int nVertex = vtxs->size();
571 for (
unsigned int i = 0 ;
i< vtxs->size(); ++
i){
572 unsigned int daughter = (*vtxs)[
i].tracksSize();
573 if( daughter > (*vtxs)[greatestvtx].tracksSize()) greatestvtx =
i;
579 vtx = (*vtxs)[greatestvtx].position();
581 int nGoodVertices = 0;
585 for (
unsigned i=0;
i<pvHandle->size();
i++)
587 if ((*pvHandle)[
i].ndof() > 4 &&
588 (fabs((*pvHandle)[
i].
z()) <= 24) &&
643 mHF->
Fill(cent->EtHFtowerSum());
644 Float_t HF_energy = cent->EtHFtowerSum();
652 Float_t vsPtInitial = 0;
655 Int_t NCaloTower = 0;
662 Float_t SumPt_value = 0;
663 Float_t vn_value[200];
664 Float_t psin_value[200];
670 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 };
674 for(
int ieta = 0;ieta<
etaBins_;++ieta){
677 vn[ifour][ieta] = vnUE.get_vn(ifour,ieta);
678 vn_value[ifour * etaBins_ + ieta]= vnUE.get_vn(ifour,ieta);
679 mvn->
Fill(vn_value[ifour * etaBins_ + ieta]);
681 psin[ifour][ieta] = vnUE.get_psin(ifour,ieta);
682 psin_value[ifour * etaBins_ + ieta] = vnUE.get_psin(ifour,ieta);
683 mpsin->
Fill(psin_value[ifour * etaBins_ + ieta]);
690 Float_t Vs_0_x_minus = sumpT[0]*vn[0][0]*TMath::Cos(0*psin[0][0]);
691 Float_t Vs_0_x_plus = sumpT[14]*vn[0][14]*TMath::Cos(0*psin[0][14]);
692 Float_t Vs_0_y_minus = sumpT[0]*vn[0][0]*TMath::Sin(0*psin[0][0]);
693 Float_t Vs_0_y_plus = sumpT[14]*vn[0][14]*TMath::Sin(0*psin[0][14]);
694 Float_t Vs_0_x = Vs_0_x_minus + Vs_0_x_plus;
695 Float_t Vs_0_y = Vs_0_y_minus + Vs_0_y_plus;
697 Float_t Vs_1_x_minus = sumpT[0]*vn[1][0]*TMath::Cos(1*psin[1][0]);
698 Float_t Vs_1_x_plus = sumpT[14]*vn[1][14]*TMath::Cos(1*psin[1][14]);
699 Float_t Vs_1_y_minus = sumpT[0]*vn[1][0]*TMath::Sin(1*psin[1][0]);
700 Float_t Vs_1_y_plus = sumpT[14]*vn[1][14]*TMath::Sin(1*psin[1][14]);
701 Float_t Vs_1_x = Vs_1_x_minus + Vs_1_x_plus;
702 Float_t Vs_1_y = Vs_1_y_minus + Vs_1_y_plus;
704 Float_t Vs_2_x_minus = sumpT[0]*vn[2][0]*TMath::Cos(2*psin[2][0]);
705 Float_t Vs_2_x_plus = sumpT[14]*vn[2][14]*TMath::Cos(2*psin[2][14]);
706 Float_t Vs_2_y_minus = sumpT[0]*vn[2][0]*TMath::Sin(2*psin[2][0]);
707 Float_t Vs_2_y_plus = sumpT[14]*vn[2][14]*TMath::Sin(2*psin[2][14]);
708 Float_t Vs_2_x = Vs_2_x_minus + Vs_2_x_plus;
709 Float_t Vs_2_y = Vs_2_y_minus + Vs_2_y_plus;
743 Float_t SumCaloVsPtInitial[
etaBins_];
746 Float_t SumSquaredCaloVsPtInitial[
etaBins_];
747 Float_t SumSquaredCaloVsPt[
etaBins_];
752 SumCaloVsPtInitial[
i] = 0;
755 SumSquaredCaloVsPtInitial[
i] = 0;
756 SumSquaredCaloVsPt[
i] = 0;
757 SumSquaredCaloPt[
i] = 0;
761 for(
unsigned icand = 0;icand<caloCandidates->size(); icand++){
764 const CaloTower & tower = (*caloCandidates)[icand];
769 if(tower.
p4(vtx).Et() < 0.1)
continue;
782 vsArea = voronoi.
area();
788 caloPt = tower.
p4(vtx).Et();
789 caloEta = tower.
p4(vtx).Eta();
790 caloPhi = tower.
p4(vtx).Phi();
801 DeltapT = caloPt - vsPtInitial;
809 if(caloEta >= edge_pseudorapidity[
k] && caloEta < edge_pseudorapidity[
k+1]){
810 SumCaloVsPtInitial[
k] = SumCaloVsPtInitial[
k] + vsPtInitial;
811 SumCaloVsPt[
k] = SumCaloVsPt[
k] + vsPt;
812 SumCaloPt[
k] = SumCaloPt[
k] + caloPt;
813 SumSquaredCaloVsPtInitial[
k] = SumSquaredCaloVsPtInitial[
k] + vsPtInitial*vsPtInitial;
814 SumSquaredCaloVsPt[
k] = SumSquaredCaloVsPt[
k] + vsPt*vsPt;
815 SumSquaredCaloPt[
k] = SumSquaredCaloPt[
k] + caloPt*caloPt;
828 SumPt_value = SumPt_value + caloPt;
840 Float_t Evt_SumCaloVsPt = 0;
841 Float_t Evt_SumCaloVsPtInitial = 0;
842 Float_t Evt_SumCaloPt = 0;
844 Float_t Evt_SumSquaredCaloVsPt = 0;
845 Float_t Evt_SumSquaredCaloVsPtInitial = 0;
846 Float_t Evt_SumSquaredCaloPt = 0;
899 Evt_SumCaloVsPtInitial = Evt_SumCaloVsPtInitial + SumCaloVsPtInitial[
k];
901 Evt_SumCaloVsPt = Evt_SumCaloVsPt + SumCaloVsPt[
k];
903 Evt_SumCaloPt = Evt_SumCaloPt + SumCaloPt[
k];
906 Evt_SumSquaredCaloVsPtInitial = Evt_SumSquaredCaloVsPtInitial + SumSquaredCaloVsPtInitial[
k];
908 Evt_SumSquaredCaloVsPt = Evt_SumSquaredCaloVsPt + SumSquaredCaloVsPt[
k];
910 Evt_SumSquaredCaloPt = Evt_SumSquaredCaloPt + SumSquaredCaloPt[
k];
950 Float_t SumSquaredPFVsPtInitial[
etaBins_];
956 SumPFVsPtInitial[
i] = 0;
959 SumSquaredPFVsPtInitial[
i] = 0;
960 SumSquaredPFVsPt[
i] = 0;
961 SumSquaredPFPt[
i] = 0;
965 for(
unsigned icand=0;icand<pfCandidateColl->size(); icand++){
970 if(pfCandidate.
pt() < 0.5)
continue;
977 vsArea = voronoi.
area();
982 pfPt = pfCandidate.
pt();
983 pfEta = pfCandidate.
eta();
984 pfPhi = pfCandidate.
phi();
990 DeltapT = pfPt - vsPtInitial;
996 if(pfEta >= edge_pseudorapidity[
k] && pfEta < edge_pseudorapidity[
k+1]){
997 SumPFVsPtInitial[
k] = SumPFVsPtInitial[
k] + vsPtInitial;
998 SumPFVsPt[
k] = SumPFVsPt[
k] + vsPt;
999 SumPFPt[
k] = SumPFPt[
k] + pfPt;
1001 SumSquaredPFVsPtInitial[
k] = SumSquaredPFVsPtInitial[
k] + vsPtInitial*vsPtInitial;
1002 SumSquaredPFVsPt[
k] = SumSquaredPFVsPt[
k] + vsPt*vsPt;
1003 SumSquaredPFPt[
k] = SumSquaredPFPt[
k] + pfPt*pfPt;
1010 SumPt_value = SumPt_value + pfPt;
1022 Float_t Evt_SumPFVsPt = 0;
1023 Float_t Evt_SumPFVsPtInitial = 0;
1024 Float_t Evt_SumPFPt = 0;
1026 Float_t Evt_SumSquaredPFVsPt = 0;
1027 Float_t Evt_SumSquaredPFVsPtInitial = 0;
1028 Float_t Evt_SumSquaredPFPt = 0;
1081 Evt_SumPFVsPtInitial = Evt_SumPFVsPtInitial + SumPFVsPtInitial[
k];
1083 Evt_SumPFVsPt = Evt_SumPFVsPt + SumPFVsPt[
k];
1085 Evt_SumPFPt = Evt_SumPFPt + SumPFPt[
k];
1092 Evt_SumSquaredPFVsPtInitial = Evt_SumSquaredPFVsPtInitial + SumSquaredPFVsPtInitial[
k];
1094 Evt_SumSquaredPFVsPt = Evt_SumSquaredPFVsPt + SumSquaredPFVsPt[
k];
1096 Evt_SumSquaredPFPt = Evt_SumSquaredPFPt + SumSquaredPFPt[
k];
1124 for (
unsigned ijet=0; ijet<caloJets->size(); ijet++) recoJets.push_back((*caloJets)[ijet]);
1129 for (
unsigned ijet=0; ijet<jptJets->size(); ijet++) recoJets.push_back((*jptJets)[ijet]);
1134 for (
unsigned ijet=0; ijet<basicJets->size();ijet++) recoJets.push_back((*basicJets)[ijet]);
1137 for (
unsigned ijet=0; ijet<pfJets->size(); ijet++) recoJets.push_back((*pfJets)[ijet]);
1156 for (
unsigned ijet=0; ijet<recoJets.size(); ijet++) {
1161 if(recoJets[ijet].
pt() > 40)
1186 const double GenPhi,
1188 const double RecoEta,
1189 const double RecoPhi,
1190 const double RecoPt)
MonitorElement * mSumCaloVsPt_eta
MonitorElement * mSumPFVsPt_1p131_1p479
MonitorElement * mSumCaloPt_0p522_0p783
MonitorElement * mSumPFVsPt_n1p740_n1p479
MonitorElement * mSumSquaredPFVsPt
virtual ~JetTester_HeavyIons()
MonitorElement * mSumPFVsPt_n0p522_0p522
MonitorElement * mVs_0_x_versus_HF
MonitorElement * mSumCaloVsPt_n1p479_n1p131
MonitorElement * mSumPFVsPt_HF
MonitorElement * mSumCaloPt_n5p191_n2p650
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * mSumCaloPt_2p043_2p650
MonitorElement * mSumPFPt_n0p783_n0p522
MonitorElement * mSumPFVsPtInitial_eta
MonitorElement * mSumPFVsPtInitial_HF
edm::InputTag mInputCollection
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
MonitorElement * mSumCaloVsPt_n0p522_0p522
MonitorElement * mNCalopart
MonitorElement * mCaloArea
MonitorElement * mSumCaloVsPtInitial_0p522_0p783
math::PtEtaPhiMLorentzVector p4(double vtxZ) const
JetTester_HeavyIons(const edm::ParameterSet &)
MonitorElement * mSumCaloPt_1p479_1p740
MonitorElement * mSumSquaredCaloPt_eta
MonitorElement * mSumCaloVsPtInitial_n1p740_n1p479
MonitorElement * mSumCaloPt_n0p522_0p522
MonitorElement * mSumPFVsPtInitial_n1p131_n0p783
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static const Int_t etaBins_
MonitorElement * mSumCaloPt
MonitorElement * mSumCaloPt_n1p131_n0p783
edm::EDGetTokenT< reco::Centrality > centralityToken_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandToken_
MonitorElement * mSumSquaredCaloPt
MonitorElement * mPFVsPt_eta_phi
MonitorElement * mSumCaloPt_n2p043_n1p740
MonitorElement * mSumPFVsPt_2p650_5p191
MonitorElement * mSumCaloVsPtInitial_n1p479_n1p131
MonitorElement * mSumCaloVsPt_1p740_2p043
MonitorElement * mSumCaloVsPtInitial_n1p131_n0p783
MonitorElement * mDeltapT
MonitorElement * mSumSquaredPFVsPtInitial_eta
edm::EDGetTokenT< std::vector< float > > backgrounds_value_
MonitorElement * mSumCaloVsPt_n0p783_n0p522
edm::InputTag mInputPFCandCollection
static const Int_t fourierOrder_
MonitorElement * mSumCaloVsPtInitial_n0p783_n0p522
MonitorElement * mSumSquaredPFPt_eta
MonitorElement * mSumSquaredPFPt
MonitorElement * mSumPFPt_n2p650_n2p043
MonitorElement * mSumCaloVsPtInitial_eta
MonitorElement * mSumCaloVsPt_1p479_1p740
MonitorElement * mSumCaloPt_n2p650_n2p043
MonitorElement * mSumCaloPt_n1p740_n1p479
MonitorElement * mSumCaloVsPtInitial
MonitorElement * mSumPFVsPtInitial
MonitorElement * mSumCaloVsPtInitial_n2p043_n1p740
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
MonitorElement * mSumCaloVsPt_n2p043_n1p740
edm::EDGetTokenT< reco::CandidateView > caloCandViewToken_
MonitorElement * mSumPFPt_0p783_1p131
MonitorElement * mSumPFPt_1p479_1p740
MonitorElement * mSumSquaredCaloVsPtInitial_eta
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
MonitorElement * mSumSquaredCaloVsPt
MonitorElement * mSumSquaredCaloVsPt_eta
MonitorElement * mSumPFPt_n1p131_n0p783
MonitorElement * mSumPFVsPtInitial_n2p650_n2p043
MonitorElement * mSumPFVsPt_n2p043_n1p740
MonitorElement * mSumCaloPt_1p131_1p479
MonitorElement * mVs_2_y_versus_HF
void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt, const double RecoEta, const double RecoPhi, const double RecoPt)
MonitorElement * mNJets_40
MonitorElement * mSumCaloVsPtInitial_1p740_2p043
MonitorElement * mSumPFVsPt_2p043_2p650
MonitorElement * mSumCaloVsPt_n1p740_n1p479
MonitorElement * mSumPFVsPt
MonitorElement * mSumCaloVsPt_1p131_1p479
edm::EDGetTokenT< reco::BasicJetCollection > basicJetsToken_
MonitorElement * mSumPFPt_eta
MonitorElement * mSumPFPt_n0p522_0p522
MonitorElement * mSumPFPt_n5p191_n2p650
MonitorElement * mSumPFVsPtInitial_0p783_1p131
MonitorElement * mSumCaloVsPtInitial_n5p191_n2p650
edm::EDGetTokenT< std::vector< reco::Vertex > > hiVertexToken_
MonitorElement * mSumCaloVsPtInitial_0p783_1p131
MonitorElement * mJetArea
MonitorElement * mSumPFVsPtInitial_n0p522_0p522
MonitorElement * mDeltapT_eta_phi
MonitorElement * mSumPFPt_n2p043_n1p740
MonitorElement * mSumCaloPt_2p650_5p191
MonitorElement * mSumPFVsPt_1p740_2p043
MonitorElement * mSumPFPt
MonitorElement * book1D(Args &&...args)
MonitorElement * mVs_1_x_versus_HF
math::XYZPoint Point
point in the space
MonitorElement * mNPFpart
MonitorElement * mSumPFVsPtInitial_1p740_2p043
MonitorElement * mPFPt_eta_phi
edm::EDGetTokenT< reco::JPTJetCollection > jptJetsToken_
MonitorElement * mSumPFVsPtInitial_2p650_5p191
MonitorElement * mSumPFPt_0p522_0p783
MonitorElement * mSumPFVsPt_n2p650_n2p043
static const size_t nedge_pseudorapidity
MonitorElement * mSumCaloPt_eta
MonitorElement * mSumCaloVsPt_n2p650_n2p043
MonitorElement * mSumPFPt_1p131_1p479
MonitorElement * mSumPFVsPt_eta
MonitorElement * mCaloVsPtInitial_eta_phi
MonitorElement * mSumCaloVsPt_2p043_2p650
MonitorElement * mSumPFVsPtInitial_n1p740_n1p479
MonitorElement * mSumPFVsPt_n5p191_n2p650
MonitorElement * mConstituents
MonitorElement * mPFVsPtInitial
MonitorElement * mSumPFPt_1p740_2p043
edm::EDGetTokenT< reco::CandidateView > pfCandViewToken_
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
MonitorElement * mSumCaloVsPt_n5p191_n2p650
MonitorElement * mSumSquaredPFVsPtInitial
MonitorElement * mSumCaloVsPt_n1p131_n0p783
MonitorElement * mPFVsPtInitial_eta_phi
edm::EDGetTokenT< reco::GenJetCollection > genJetsToken_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * mCaloVsPt_eta_phi
MonitorElement * mSumPFVsPt_n1p131_n0p783
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
T const * product() const
MonitorElement * book2D(Args &&...args)
MonitorElement * mSumPFVsPtInitial_n5p191_n2p650
MonitorElement * mSumPFPt_n1p479_n1p131
MonitorElement * mCaloVsPt
MonitorElement * mSumPFPt_2p043_2p650
MonitorElement * mSumPFVsPtInitial_1p131_1p479
MonitorElement * mCaloVsPtInitial
MonitorElement * mCaloEta
MonitorElement * mSumCaloVsPtInitial_n0p522_0p522
MonitorElement * mSumCaloVsPt_HF
MonitorElement * mSumCaloPt_n0p783_n0p522
edm::EDGetTokenT< edm::HepMCProduct > evtToken_
MonitorElement * mSumCaloVsPt_0p783_1p131
MonitorElement * mCaloPhi
MonitorElement * mSumPFVsPtInitial_n2p043_n1p740
MonitorElement * mSumCaloVsPtInitial_n2p650_n2p043
MonitorElement * mSumCaloPt_0p783_1p131
MonitorElement * mSumCaloVsPtInitial_2p043_2p650
MonitorElement * mVs_0_y_versus_HF
double pt_subtracted() const
Particle reconstructed by the particle flow algorithm.
MonitorElement * mSumPFPt_HF
static int position[264][3]
MonitorElement * mSumPFVsPtInitial_0p522_0p783
MonitorElement * mSumPFVsPtInitial_1p479_1p740
MonitorElement * mSumPFPt_2p650_5p191
MonitorElement * mSumSquaredPFVsPt_eta
MonitorElement * mSumPFVsPtInitial_2p043_2p650
double get_sum_pt(int eta, int type=-1) const
MonitorElement * mSumCaloPt_HF
MonitorElement * mSumPFVsPt_n0p783_n0p522
MonitorElement * mVs_1_y_versus_HF
MonitorElement * mDeltapT_eta
MonitorElement * mSumCaloVsPtInitial_HF
MonitorElement * mSumCaloVsPtInitial_1p479_1p740
MonitorElement * mSumPFVsPt_n1p479_n1p131
MonitorElement * mCaloPt_eta_phi
edm::InputTag mInputGenCollection
MonitorElement * mSumPFPt_n1p740_n1p479
MonitorElement * mSumCaloVsPtInitial_1p131_1p479
MonitorElement * mSumCaloVsPt_2p650_5p191
virtual double phi() const
momentum azimuthal angle
MonitorElement * mSumPFVsPt_1p479_1p740
MonitorElement * mSumCaloVsPtInitial_2p650_5p191
MonitorElement * mSumPFVsPt_0p783_1p131
edm::EDGetTokenT< edm::ValueMap< reco::VoronoiBackground > > backgrounds_
MonitorElement * mSumCaloVsPt_0p522_0p783
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
MonitorElement * mVs_2_x_versus_HF
MonitorElement * mSumSquaredCaloVsPtInitial
MonitorElement * mSumPFVsPt_0p522_0p783
MonitorElement * mSumCaloPt_1p740_2p043
MonitorElement * mSumPFVsPtInitial_n1p479_n1p131
double mRecoJetPtThreshold
MonitorElement * mSumCaloPt_n1p479_n1p131
MonitorElement * mSumPFVsPtInitial_n0p783_n0p522
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * mjetpileup
MonitorElement * mSumCaloVsPt