48 #include "CLHEP/Vector/LorentzVector.h" 58 int const binSize = 35;
59 float massBin[binSize + 1] = {100, 113, 132, 153, 176, 201, 229, 259, 292, 327, 366, 400,
60 453, 501, 553, 609, 669, 733, 802, 875, 954, 1038, 1127, 1222,
61 1323, 1431, 1546, 1667, 1796, 1934, 2079, 2233, 2396, 2569, 2752, 3000};
65 hJet[0] =
new TH1F(tit.c_str(),
"DiJet Mass", binSize, massBin);
69 hJet[1] =
new TH1F(tit.c_str(),
"DiJet Mass", binSize, massBin);
72 hJet[2] =
new TH1F(tit.c_str(),
"1^{st} Leading Jet #eta", 120, -6., 6.);
74 hJet[3] =
new TH1F(tit.c_str(),
"2^{nd} Leading Jet #eta", 120, -6., 6.);
76 hJet[4] =
new TH1F(tit.c_str(),
"No. of events", 10, 0., 10.);
84 jetHisto[4]->Fill(1.);
86 if ((*jetsRec).size() >= 2) {
87 double px1 = (*jetsRec)[0].px();
88 double py1 = (*jetsRec)[0].py();
89 double pz1 = (*jetsRec)[0].pz();
90 double e1 = (*jetsRec)[0].energy();
91 double jetEta1 = (*jetsRec)[0].eta();
92 jetHisto[2]->Fill(jetEta1);
94 double px2 = (*jetsRec)[1].px();
95 double py2 = (*jetsRec)[1].py();
96 double pz2 = (*jetsRec)[1].pz();
97 double e2 = (*jetsRec)[1].energy();
98 double jetEta2 = (*jetsRec)[1].eta();
99 jetHisto[3]->Fill(jetEta2);
101 CLHEP::HepLorentzVector v1(px1, py1, pz1,
e1);
102 CLHEP::HepLorentzVector v2(px2, py2, pz2, e2);
103 CLHEP::HepLorentzVector
v(0., 0., 0., 0.);
107 if (fabs(jetEta1) > 0.0 && fabs(jetEta1) <
eta1)
108 if (fabs(jetEta2) > 0.0 && fabs(jetEta2) <
eta1)
109 jetHisto[0]->Fill(
mass);
111 if (fabs(jetEta1) >
eta1 && fabs(jetEta1) <
eta2)
112 if (fabs(jetEta2) >
eta1 && fabs(jetEta2) <
eta2)
113 jetHisto[1]->Fill(
mass);
std::string m_Mid5CaloJetsSrc
static const int hisotNumber
std::string fOutputFileName
std::string m_Mid5CorRecJetsSrc
DijetRatio(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
void histoFill(TH1F *jetHisto[], edm::Handle< R > jetsRec, double eta1, double eta2)
TH1F * hCalo[hisotNumber]
std::vector< Jet > JetCollection
void hInit(TH1F *hJet[], const char *name)