26 jetCorrections(params.getParameter<std::
string>(
"jetCorrections")),
27 innerDeltaEta(params.getParameter<double>(
"innerDeltaEta")),
28 outerDeltaEta(params.getParameter<double>(
"outerDeltaEta")),
29 JESbias(params.getParameter<double>(
"JESbias")) {
34 Double_t BOUNDARIES[
NBINS] = {220, 244, 270, 296, 325, 354, 386, 419, 453, 489, 526, 565,
35 606, 649, 693, 740, 788, 838, 890, 944, 1000, 1058, 1118, 1181,
36 1246, 1313, 1383, 1455, 1530, 1607, 1687, 1770, 1856, 1945, 2037, 2132};
39 hVertexZ = fs->
make<TH1D>(
"hVertexZ",
"Z position of the Vertex", 50, -20, 20);
40 hJetRawPt = fs->
make<TH1D>(
"hJetRawPt",
"Raw Jet Pt", 50, 0, 1000);
41 hJetCorrPt = fs->
make<TH1D>(
"hJetCorrPt",
"Corrected Jet Pt", 50, 0, 1000);
42 hJet1Pt = fs->
make<TH1D>(
"hJet1Pt",
"Corrected Jet1 Pt", 50, 0, 1000);
43 hJet2Pt = fs->
make<TH1D>(
"hJet2Pt",
"Corrected Jet2 Pt", 50, 0, 1000);
45 hJetEta = fs->
make<TH1D>(
"hJetEta",
"Corrected Jet Eta", 50, -5, 5);
46 hJet1Eta = fs->
make<TH1D>(
"hJet1Eta",
"Corrected Jet1 Eta", 50, -5, 5);
47 hJet2Eta = fs->
make<TH1D>(
"hJet2Eta",
"Corrected Jet2 Eta", 50, -5, 5);
49 hJetPhi = fs->
make<TH1D>(
"hJetPhi",
"Corrected Jet Phi", 50, -3.1415, 3.1415);
50 hJet1Phi = fs->
make<TH1D>(
"hJet1Phi",
"Corrected Jet1 Phi", 50, -3.1415, 3.1415);
51 hJet2Phi = fs->
make<TH1D>(
"hJet2Phi",
"Corrected Jet2 Phi", 50, -3.1415, 3.1415);
53 hJetEMF = fs->
make<TH1D>(
"hJetEMF",
"EM Fraction of Jets", 50, 0, 1);
54 hJet1EMF = fs->
make<TH1D>(
"hJet1EMF",
"EM Fraction of Jet1", 50, 0, 1);
55 hJet2EMF = fs->
make<TH1D>(
"hJet2EMF",
"EM Fraction of Jet2", 50, 0, 1);
57 hCorDijetMass = fs->
make<TH1D>(
"hCorDijetMass",
"Corrected Dijet Mass", NBINS - 1, BOUNDARIES);
58 hDijetDeltaPhi = fs->
make<TH1D>(
"hDijetDeltaPhi",
"Dijet |#Delta #phi|", 50, 0, 3.1415);
61 fs->
make<TH2D>(
"hDijetDeltaPhiNJets",
"Dijet |#Delta #phi| v. the number of jets", 50, 0, 3.1415, 7, 0.5, 7.5);
62 hDijetEta1Eta2 = fs->
make<TH2D>(
"hDijetEta1Eta2",
"Eta 1 versus Eta 2 of dijet events", 50, -5, 5, 50, -5, 5);
64 hInnerDijetMass = fs->
make<TH1D>(
"hInnerDijetMass",
"Corrected Inner Dijet Mass", NBINS - 1, BOUNDARIES);
65 hOuterDijetMass = fs->
make<TH1D>(
"hOuterDijetMass",
"Corrected Outer Dijet Mass", NBINS - 1, BOUNDARIES);
76 mWeight = hEventInfo->weight();
95 std::cout <<
"Didja hear the one about the empty vertex collection?\n";
100 if (vertices_h->empty())
107 if (theVertex->
ndof() < 5)
109 if (fabs(theVertex->
z()) > 24.0)
111 if (fabs(theVertex->
position().rho()) > 2.0)
122 std::cout <<
"Didja hear the one about the empty jet collection?\n";
133 for (reco::CaloJetCollection::const_iterator j_it = jets_h->begin(); j_it != jets_h->end(); j_it++) {
137 selectedJets.push_back(jet);
CMSDAS11DijetTestAnalyzer(const edm::ParameterSet &)
Jets made from CaloTowers.
#define DEFINE_FWK_MODULE(type)
T * make(const Args &...args) const
make new ROOT object
std::string jetCorrections
const Point & position() const
position
TH2D * hDijetDeltaPhiNJets
double z() const
z coordinate
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual bool vectorialCorrection() const
if vectorial correction is provided
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
void endJob(void) override