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"))
35 Double_t BOUNDARIES[
NBINS] = { 220, 244, 270, 296, 325, 354, 386, 419, 453,
36 489, 526, 565, 606, 649, 693, 740, 788, 838,
37 890, 944, 1000, 1058, 1118, 1181, 1246, 1313, 1383,
38 1455, 1530, 1607, 1687, 1770, 1856, 1945, 2037, 2132 };
41 hVertexZ = fs->
make<TH1D>(
"hVertexZ",
"Z position of the Vertex",50,-20,20);
42 hJetRawPt = fs->
make<TH1D>(
"hJetRawPt",
"Raw Jet Pt",50,0,1000);
43 hJetCorrPt = fs->
make<TH1D>(
"hJetCorrPt",
"Corrected Jet Pt",50,0,1000);
44 hJet1Pt = fs->
make<TH1D>(
"hJet1Pt",
"Corrected Jet1 Pt",50,0,1000);
45 hJet2Pt = fs->
make<TH1D>(
"hJet2Pt",
"Corrected Jet2 Pt",50,0,1000);
47 hJetEta = fs->
make<TH1D>(
"hJetEta",
"Corrected Jet Eta", 50,-5,5);
48 hJet1Eta = fs->
make<TH1D>(
"hJet1Eta",
"Corrected Jet1 Eta",50,-5,5);
49 hJet2Eta = fs->
make<TH1D>(
"hJet2Eta",
"Corrected Jet2 Eta",50,-5,5);
51 hJetPhi = fs->
make<TH1D>(
"hJetPhi",
"Corrected Jet Phi", 50,-3.1415,3.1415);
52 hJet1Phi = fs->
make<TH1D>(
"hJet1Phi",
"Corrected Jet1 Phi",50,-3.1415,3.1415);
53 hJet2Phi = fs->
make<TH1D>(
"hJet2Phi",
"Corrected Jet2 Phi",50,-3.1415,3.1415);
55 hJetEMF = fs->
make<TH1D>(
"hJetEMF",
"EM Fraction of Jets",50,0,1);
56 hJet1EMF = fs->
make<TH1D>(
"hJet1EMF",
"EM Fraction of Jet1",50,0,1);
57 hJet2EMF = fs->
make<TH1D>(
"hJet2EMF",
"EM Fraction of Jet2",50,0,1);
59 hCorDijetMass = fs->
make<TH1D>(
"hCorDijetMass",
"Corrected Dijet Mass",NBINS-1,BOUNDARIES);
62 hDijetDeltaPhiNJets= fs->
make<TH2D>(
"hDijetDeltaPhiNJets",
"Dijet |#Delta #phi| v. the number of jets",50,0,3.1415,7,0.5,7.5);
63 hDijetEta1Eta2=fs->
make<TH2D>(
"hDijetEta1Eta2",
"Eta 1 versus Eta 2 of dijet events",50,-5,5,50,-5,5);
65 hInnerDijetMass = fs->
make<TH1D>(
"hInnerDijetMass",
"Corrected Inner Dijet Mass",NBINS-1,BOUNDARIES);
66 hOuterDijetMass = fs->
make<TH1D>(
"hOuterDijetMass",
"Corrected Outer Dijet Mass",NBINS-1,BOUNDARIES);
79 mWeight = hEventInfo->weight();
99 std::cout<<
"Didja hear the one about the empty vertex collection?\n";
104 if(vertices_h->size()<=0)
return;
110 if(theVertex->
ndof()<5)
return;
111 if(fabs(theVertex->
z())>24.0)
return;
112 if(fabs(theVertex->
position().rho())>2.0)
return;
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.
virtual void endJob(void)
#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
y coordinate
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 analyze(const edm::Event &, const edm::EventSetup &)