CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFJetAnalyzer.h
Go to the documentation of this file.
1 #ifndef PFJetAnalyzer_H
2 #define PFJetAnalyzer_H
3 
4 
13 #include <memory>
14 #include <fstream>
23 //#include "DataFormats/JetReco/interface/CaloJetCollection.h"
25 
26 
27 #include "GlobalVariables.h"
28 
29 
31  public:
32 
35 
37  virtual ~PFJetAnalyzer();
38 
40  void beginJob(DQMStore * dbe);
41 
43  void endJob();
44 
46  void analyze(const edm::Event&, const edm::EventSetup&, const reco::PFJetCollection& pfJets, const int numPV);
47  //
49  _source = source;
50  }
51  //
52  void setLeadJetFlag(int flag) {
53  _leadJetFlag = flag;
54  }
56  return _leadJetFlag;
57  }
58  void setJetLoPass(int pass) {
59  _JetLoPass = pass;
60  }
61 
62  void setJetHiPass(int pass) {
63  _JetHiPass = pass;
64  }
65 
66 
67  private:
68  // ----------member data ---------------------------
72  double _ptThreshold;
73 
76 
78 
79  //histo binning parameters
80  int etaBin;
81  double etaMin;
82  double etaMax;
83 
84  int phiBin;
85  double phiMin;
86  double phiMax;
87 
88  int ptBin;
89  double ptMin;
90  double ptMax;
91 
92  int eBin;
93  double eMin;
94  double eMax;
95 
96  int pBin;
97  double pMin;
98  double pMax;
99 
101 
102  double _ThisCHFMin;
103  double _ThisNHFMax;
104  double _ThisCEFMax;
105  double _ThisNEFMax;
106  double _LooseCHFMin;
107  double _LooseNHFMax;
108  double _LooseCEFMax;
109  double _LooseNEFMax;
110  double _TightCHFMin;
111  double _TightNHFMax;
112  double _TightCEFMax;
113  double _TightNEFMax;
114 
115  //the histos
117 
119  // Switch for verbosity
121  // Calo Jet Label
124 
125 /* // Generic Jet Parameters */
126 /* MonitorElement* mEta; */
127 /* MonitorElement* mPhi; */
128 /* MonitorElement* mE; */
129 /* MonitorElement* mP; */
130 /* MonitorElement* mPt; */
131 /* MonitorElement* mMass; */
132 /* MonitorElement* mConstituents; */
133 
134 /* // Leading Jet Parameters */
135 /* MonitorElement* mEtaFirst; */
136 /* MonitorElement* mPhiFirst; */
137 /* MonitorElement* mEFirst; */
138 /* MonitorElement* mPtFirst; */
149 
152 
192 
205 
221 
237 
253 
263 
264 
267 
270 
292 
293  //MonitorElement* mPt_Barrel_Lo;
294  //MonitorElement* mPhi_Barrel_Lo;
298  //MonitorElement* mPt_EndCap_Lo;
299  //MonitorElement* mPhi_EndCap_Lo;
303  //MonitorElement* mPt_Forward_Lo;
304  //MonitorElement* mPhi_Forward_Lo;
308 
321  // ---
322 
323 
324  //MonitorElement* mE_Barrel;
325  //MonitorElement* mE_EndCap;
326  //MonitorElement* mE_Forward;
327 
328  //MonitorElement* mE;
329  //MonitorElement* mP;
330  //MonitorElement* mMass;
333 
334  // Leading Jet Parameters
337  //MonitorElement* mEFirst;
339 
340  // Events passing the jet triggers
341  //MonitorElement* mEta_Lo;
344 
348  // PFlowJet specific
349 
358 
359  //new Plots with Res./ Eff. as function of neutral, charged & em fraction
360 
363 
369 
374 
375  //dijet analysis quantities
378 
379 
380  // NPV profiles
381  //----------------------------------------------------------------------------
389 
398 };
399 
400 
401 #endif
MonitorElement * nEEff
MonitorElement * mCHEn_lowPt_Barrel
MonitorElement * mMuFrac_lowPt_Barrel
MonitorElement * mNeuMultiplicity_mediumPt_Barrel
MonitorElement * mElEn_highPt_Barrel
MonitorElement * mElFracVSpT_EndCap
MonitorElement * mPhFrac_mediumPt_EndCap
MonitorElement * mChargedEmEnergy
MonitorElement * mHFrac_EndCap_Hi
MonitorElement * mNHEn_lowPt_Barrel
MonitorElement * mEEffChargedFraction
MonitorElement * mNeutralHadronEnergy_profile
MonitorElement * mConstituents_Barrel_Hi
MonitorElement * mElFracVSeta_lowPt
MonitorElement * mEFrac_profile
MonitorElement * mElEn_lowPt_EndCap
MonitorElement * mNHEn_highPt_EndCap
MonitorElement * mMuMultiplicity_mediumPt_Barrel
MonitorElement * mMuEn_highPt_EndCap
MonitorElement * mPhEn_lowPt_Barrel
MonitorElement * mEta_profile
MonitorElement * mNHEn_lowPt_EndCap
MonitorElement * mNHEn_mediumPt_EndCap
MonitorElement * mPhFracVSeta_lowPt
MonitorElement * mPhFracVSeta_mediumPt
MonitorElement * mPt_Lo
MonitorElement * mEta_Hi
MonitorElement * mHFHFrac_mediumPt_Forward
MonitorElement * mPhi
MonitorElement * mLooseJIDPassFractionVSpt
MonitorElement * mHFEFracVSpT_Forward
MonitorElement * mCHEn_lowPt_EndCap
MonitorElement * mMuMultiplicity_highPt_EndCap
MonitorElement * mTightJIDPassFractionVSeta
MonitorElement * mMuFrac_mediumPt_Barrel
MonitorElement * mPhFrac_lowPt_EndCap
MonitorElement * mMuonMultiplicity_profile
MonitorElement * mPhiVSEta
double _LooseNEFMax
MonitorElement * mEFrac_EndCap
MonitorElement * mNHFrac_highPt_Barrel
MonitorElement * mElEn_lowPt_Barrel
MonitorElement * mChargedEmEnergy_profile
MonitorElement * mDijetAsymmetry
double _ptThreshold
Definition: PFJetAnalyzer.h:72
MonitorElement * mHFHEn_mediumPt_Forward
MonitorElement * mChargedMultiplicity_profile
MonitorElement * mNHFracVSpT_EndCap
MonitorElement * mPhFrac_highPt_Barrel
MonitorElement * mEFrac_Barrel
double _TightNHFMax
MonitorElement * mNeutralMultiplicity_profile
MonitorElement * mPhFrac_mediumPt_Barrel
MonitorElement * mHFrac_Forward_Hi
MonitorElement * mChargedMuEnergy_profile
MonitorElement * mPtFirst
MonitorElement * mNeuMultiplicity_highPt_EndCap
MonitorElement * mCHFrac_mediumPt_Barrel
MonitorElement * mNeuMultiplicity_lowPt_EndCap
MonitorElement * mNeutralMultiplicity
MonitorElement * mPt_Forward
MonitorElement * jetME
MonitorElement * mHFEEn_mediumPt_Forward
MonitorElement * mElFrac_highPt_Barrel
MonitorElement * mNHFrac_lowPt_Barrel
MonitorElement * mMuMultiplicity_lowPt_Forward
MonitorElement * mPt_3
MonitorElement * mNeutralFraction2
MonitorElement * mCHFrac_highPt_Barrel
MonitorElement * mHFHEn_lowPt_Forward
MonitorElement * mChargedMultiplicity
MonitorElement * mPhEn_highPt_EndCap
MonitorElement * mConstituents_Barrel
void endJob()
Finish up a job.
void setLeadJetFlag(int flag)
Definition: PFJetAnalyzer.h:52
MonitorElement * mElFracVSpT_Barrel
MonitorElement * mElFrac_mediumPt_EndCap
MonitorElement * mCHFrac_lowPt_EndCap
MonitorElement * mElFracVSeta_highPt
MonitorElement * mNHFrac_lowPt_EndCap
MonitorElement * mChMultiplicity_highPt_Barrel
double _TightNEFMax
MonitorElement * mPt_1
MonitorElement * mPhFracVSeta_highPt
MonitorElement * mNHEn_mediumPt_Barrel
MonitorElement * mMuMultiplicity_mediumPt_EndCap
MonitorElement * mNJets_profile
MonitorElement * mEta
MonitorElement * mCHFrac_highPt_EndCap
MonitorElement * mConstituents_EndCap
double _TightCEFMax
MonitorElement * mEtaFirst
std::string metname
MonitorElement * mTightJIDPassFractionVSpt
MonitorElement * mNeuMultiplicity_highPt_Forward
MonitorElement * mChMultiplicity_mediumPt_Barrel
MonitorElement * mCHFracVSeta_lowPt
MonitorElement * mPhEn_mediumPt_EndCap
MonitorElement * mNJets
MonitorElement * mCHFrac_mediumPt_EndCap
MonitorElement * mEResChargedFraction
MonitorElement * mNeuMultiplicity_lowPt_Barrel
MonitorElement * mElFrac_lowPt_EndCap
MonitorElement * mChMultiplicity_highPt_Forward
void setJetLoPass(int pass)
Definition: PFJetAnalyzer.h:58
MonitorElement * mMuMultiplicity_mediumPt_Forward
MonitorElement * mElFrac_highPt_EndCap
MonitorElement * mPhi_Forward
void setSource(std::string source)
Definition: PFJetAnalyzer.h:48
MonitorElement * mPhi_EndCap_Hi
MonitorElement * mPt_Barrel_Hi
MonitorElement * mCHFracVSeta_highPt
MonitorElement * mPt_profile
MonitorElement * mHFrac_Forward
double _LooseNHFMax
MonitorElement * mNeutralEmEnergy
MonitorElement * mElFrac_mediumPt_Barrel
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
int makedijetselection
Definition: PFJetAnalyzer.h:77
MonitorElement * mMuFracVSeta_mediumPt
MonitorElement * mNeuMultiplicity_mediumPt_EndCap
MonitorElement * mMuMultiplicity_highPt_Forward
MonitorElement * mMuEn_lowPt_EndCap
MonitorElement * mHFHFrac_lowPt_Forward
MonitorElement * mElEn_mediumPt_EndCap
MonitorElement * mNeutralFraction
MonitorElement * mChMultiplicity_mediumPt_EndCap
MonitorElement * mChargedHadronEnergy
MonitorElement * mConstituents_Forward
PFJetAnalyzer(const edm::ParameterSet &)
Constructor.
MonitorElement * mPhFrac_lowPt_Barrel
MonitorElement * mNHFracVSpT_Barrel
MonitorElement * mCHEn_mediumPt_EndCap
MonitorElement * mHFHFrac_highPt_Forward
MonitorElement * mConstituents_EndCap_Hi
MonitorElement * mHFrac_Barrel
void setJetHiPass(int pass)
Definition: PFJetAnalyzer.h:62
MonitorElement * mHFHFracVSpT_Forward
MonitorElement * mNHFracVSeta_highPt
MonitorElement * mHFrac
MonitorElement * mPhEn_highPt_Barrel
MonitorElement * mMuFrac_highPt_Barrel
MonitorElement * mPhEn_mediumPt_Barrel
MonitorElement * mMuFracVSpT_EndCap
MonitorElement * mPt_EndCap_Hi
MonitorElement * mPt_Hi
MonitorElement * mChMultiplicity_lowPt_Forward
MonitorElement * mNHFracVSeta_lowPt
MonitorElement * mNeuMultiplicity_lowPt_Forward
MonitorElement * mPt_Forward_Hi
double _balanceThirdJetCut
Definition: PFJetAnalyzer.h:75
MonitorElement * mConstituents_Forward_Hi
MonitorElement * mHFrac_EndCap
double _LooseCHFMin
MonitorElement * mNeuMultiplicity_highPt_Barrel
MonitorElement * mMuEn_highPt_Barrel
MonitorElement * mCHFracVSpT_Barrel
MonitorElement * mChargedHadronEnergy_profile
MonitorElement * mNHFrac_highPt_EndCap
MonitorElement * mPt_EndCap
MonitorElement * mPhFracVSpT_Barrel
MonitorElement * mMuonMultiplicity
MonitorElement * mCHFracVSpT_EndCap
MonitorElement * mCHFracVSeta_mediumPt
MonitorElement * mPhi_Barrel_Hi
MonitorElement * mEFrac
MonitorElement * mNeutralHadronEnergy
MonitorElement * mEResNeutralFraction
double _ThisCHFMin
MonitorElement * mHFrac_Barrel_Hi
MonitorElement * mHFEEn_lowPt_Forward
MonitorElement * mElFrac_lowPt_Barrel
MonitorElement * mPhi_Barrel
MonitorElement * mMuEn_mediumPt_Barrel
MonitorElement * mMuFrac_highPt_EndCap
MonitorElement * mPt_Barrel
MonitorElement * mElFracVSeta_mediumPt
MonitorElement * mMuFracVSpT_Barrel
MonitorElement * mEFrac_Forward
double _TightCHFMin
MonitorElement * mMuMultiplicity_lowPt_Barrel
MonitorElement * mPhFrac_highPt_EndCap
MonitorElement * mCHFrac_lowPt_Barrel
MonitorElement * mPhi_EndCap
double _ThisNHFMax
MonitorElement * mHFHEn_highPt_Forward
MonitorElement * mHFEEn_highPt_Forward
std::string _source
MonitorElement * mMuFrac_mediumPt_EndCap
std::vector< PFJet > PFJetCollection
collection of PFJet objects
MonitorElement * mChargedMuEnergy
edm::InputTag thePFJetCollectionLabel
MonitorElement * mNeuMultiplicity_mediumPt_Forward
MonitorElement * mHFEFrac_lowPt_Forward
MonitorElement * mMuMultiplicity_highPt_Barrel
MonitorElement * mConstituents
MonitorElement * mElEn_highPt_EndCap
MonitorElement * mNHEn_highPt_Barrel
double _LooseCEFMax
MonitorElement * mEEffNeutralFraction
double _asymmetryThirdJetCut
Definition: PFJetAnalyzer.h:74
MonitorElement * mChMultiplicity_lowPt_Barrel
void analyze(const edm::Event &, const edm::EventSetup &, const reco::PFJetCollection &pfJets, const int numPV)
Get the analysis.
MonitorElement * mPhEn_lowPt_EndCap
MonitorElement * mMuMultiplicity_lowPt_EndCap
MonitorElement * mMuFracVSeta_lowPt
MonitorElement * mChMultiplicity_highPt_EndCap
MonitorElement * mPhi_profile
edm::ParameterSet parameters
MonitorElement * mCHEn_highPt_EndCap
MonitorElement * mMuFrac_lowPt_EndCap
MonitorElement * mMuEn_lowPt_Barrel
MonitorElement * mMuEn_mediumPt_EndCap
MonitorElement * mPhi_Lo
MonitorElement * mHFEFrac_mediumPt_Forward
MonitorElement * mNHFrac_mediumPt_Barrel
MonitorElement * mCHEn_mediumPt_Barrel
MonitorElement * mPt
MonitorElement * mChMultiplicity_lowPt_EndCap
MonitorElement * mPhi_Hi
tuple pfJets
Definition: pfJets_cff.py:8
MonitorElement * mNHFrac_mediumPt_EndCap
double _ThisNEFMax
int getLeadJetFlag()
Definition: PFJetAnalyzer.h:55
MonitorElement * mLooseJIDPassFractionVSeta
MonitorElement * mConstituents_profile
MonitorElement * mDijetBalance
MonitorElement * mPhiFirst
MonitorElement * mPhFracVSpT_EndCap
static std::string const source
Definition: EdmProvDump.cc:43
MonitorElement * mElEn_mediumPt_Barrel
MonitorElement * mNHFracVSeta_mediumPt
MonitorElement * mNeutralEmEnergy_profile
MonitorElement * mChMultiplicity_mediumPt_Forward
double _ThisCEFMax
MonitorElement * mHFEFrac_highPt_Forward
MonitorElement * mMuFracVSeta_highPt
MonitorElement * mPt_2
MonitorElement * mDPhi
MonitorElement * mCHEn_highPt_Barrel
virtual ~PFJetAnalyzer()
Destructor.
MonitorElement * mHFrac_profile
MonitorElement * mPhi_Forward_Hi