#include <CMSDAS11DijetTestAnalyzer.h>
|
void | analyze (const edm::Event &, const edm::EventSetup &) |
|
virtual void | beginJob () |
|
| CMSDAS11DijetTestAnalyzer (const edm::ParameterSet &) |
|
virtual void | endJob (void) |
|
virtual | ~CMSDAS11DijetTestAnalyzer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector
< ProductResolverIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 20 of file CMSDAS11DijetTestAnalyzer.h.
CMSDAS11DijetTestAnalyzer::CMSDAS11DijetTestAnalyzer |
( |
const edm::ParameterSet & |
params | ) |
|
Definition at line 22 of file CMSDAS11DijetTestAnalyzer.cc.
References fs, hCorDijetMass, hDijetDeltaEta, hDijetDeltaPhi, hDijetDeltaPhiNJets, hDijetEta1Eta2, hInnerDijetMass, hJet1EMF, hJet1Eta, hJet1Phi, hJet1Pt, hJet2EMF, hJet2Eta, hJet2Phi, hJet2Pt, hJetCorrPt, hJetEMF, hJetEta, hJetPhi, hJetRawPt, hOuterDijetMass, hVertexZ, TFileService::make(), and NBINS.
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);
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);
T getParameter(std::string const &) const
T * make(const Args &...args) const
make new ROOT object
std::string jetCorrections
TH2D * hDijetDeltaPhiNJets
edm::Service< TFileService > fs
virtual CMSDAS11DijetTestAnalyzer::~CMSDAS11DijetTestAnalyzer |
( |
| ) |
|
|
inlinevirtual |
Implements edm::EDAnalyzer.
Definition at line 72 of file CMSDAS11DijetTestAnalyzer.cc.
References mvaPFMET_cff::corrector, gather_cfg::cout, edm::Event::getByLabel(), JetCorrector::getJetCorrector(), hVertexZ, edm::HandleBase::isValid(), metsig::jet, jetCorrections, jetSrc, reco::Vertex::ndof(), reco::Vertex::position(), patRefSel_refMuJets_cfi::selectedJets, JetCorrector::vectorialCorrection(), vertexSrc, and reco::Vertex::z().
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);
Jets made from CaloTowers.
std::string jetCorrections
const Point & position() const
position
double z() const
z 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 ...
virtual void CMSDAS11DijetTestAnalyzer::beginJob |
( |
void |
| ) |
|
|
inlinevirtual |
void CMSDAS11DijetTestAnalyzer::endJob |
( |
void |
| ) |
|
|
virtual |
TH1D* CMSDAS11DijetTestAnalyzer::hCorDijetMass |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hCorDijetXsec |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hDijetDeltaEta |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hDijetDeltaPhi |
|
private |
TH2D* CMSDAS11DijetTestAnalyzer::hDijetDeltaPhiNJets |
|
private |
TH2D* CMSDAS11DijetTestAnalyzer::hDijetEta1Eta2 |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hInnerDijetMass |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet1EMF |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet1Eta |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet1Phi |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet1Pt |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet2EMF |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet2Eta |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet2Phi |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJet2Pt |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJetCorrPt |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJetEMF |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJetEta |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJetPhi |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hJetRawPt |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hOuterDijetMass |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hRawDijetMass |
|
private |
TH1D* CMSDAS11DijetTestAnalyzer::hVertexZ |
|
private |
double CMSDAS11DijetTestAnalyzer::innerDeltaEta |
|
private |
double CMSDAS11DijetTestAnalyzer::JESbias |
|
private |
std::string CMSDAS11DijetTestAnalyzer::jetCorrections |
|
private |
double CMSDAS11DijetTestAnalyzer::outerDeltaEta |
|
private |