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 
15 #include <memory>
16 #include <fstream>
25 //#include "DataFormats/JetReco/interface/CaloJetCollection.h"
27 
28 
29 #include "GlobalVariables.h"
30 
31 
33  public:
34 
37 
39  virtual ~PFJetAnalyzer();
40 
42  void beginJob(DQMStore * dbe);
43 
45  void endJob();
46 
48  void analyze(const edm::Event&, const edm::EventSetup&, const reco::PFJetCollection& pfJets, const int numPV);
49  //
50  void setSource(std::string source) {
51  _source = source;
52  }
53  //
54  void setLeadJetFlag(int flag) {
56  }
58  return _leadJetFlag;
59  }
60  void setJetLoPass(int pass) {
61  _JetLoPass = pass;
62  }
63 
64  void setJetHiPass(int pass) {
65  _JetHiPass = pass;
66  }
67 
68 
69  private:
70  // ----------member data ---------------------------
74  double _ptThreshold;
75 
78 
80 
81  //histo binning parameters
82  int etaBin;
83  double etaMin;
84  double etaMax;
85 
86  int phiBin;
87  double phiMin;
88  double phiMax;
89 
90  int ptBin;
91  double ptMin;
92  double ptMax;
93 
94  int eBin;
95  double eMin;
96  double eMax;
97 
98  int pBin;
99  double pMin;
100  double pMax;
101 
103 
104  double _ThisCHFMin;
105  double _ThisNHFMax;
106  double _ThisCEFMax;
107  double _ThisNEFMax;
108  double _LooseCHFMin;
109  double _LooseNHFMax;
110  double _LooseCEFMax;
111  double _LooseNEFMax;
112  double _TightCHFMin;
113  double _TightNHFMax;
114  double _TightCEFMax;
115  double _TightNEFMax;
116 
117  //the histos
119 
121  // Switch for verbosity
122  std::string metname;
123  // Calo Jet Label
125  std::string _source;
126 
127 /* // Generic Jet Parameters */
128 /* MonitorElement* mEta; */
129 /* MonitorElement* mPhi; */
130 /* MonitorElement* mE; */
131 /* MonitorElement* mP; */
132 /* MonitorElement* mPt; */
133 /* MonitorElement* mMass; */
134 /* MonitorElement* mConstituents; */
135 
136 /* // Leading Jet Parameters */
137 /* MonitorElement* mEtaFirst; */
138 /* MonitorElement* mPhiFirst; */
139 /* MonitorElement* mEFirst; */
140 /* MonitorElement* mPtFirst; */
151 
154 
194 
207 
223 
239 
255 
265 
266 
269 
272 
294 
295  //MonitorElement* mPt_Barrel_Lo;
296  //MonitorElement* mPhi_Barrel_Lo;
300  //MonitorElement* mPt_EndCap_Lo;
301  //MonitorElement* mPhi_EndCap_Lo;
305  //MonitorElement* mPt_Forward_Lo;
306  //MonitorElement* mPhi_Forward_Lo;
310 
323  // ---
324 
325 
326  //MonitorElement* mE_Barrel;
327  //MonitorElement* mE_EndCap;
328  //MonitorElement* mE_Forward;
329 
330  //MonitorElement* mE;
331  //MonitorElement* mP;
332  //MonitorElement* mMass;
335 
336  // Leading Jet Parameters
339  //MonitorElement* mEFirst;
341 
342  // Events passing the jet triggers
343  //MonitorElement* mEta_Lo;
346 
350  // PFlowJet specific
351 
360 
361  //new Plots with Res./ Eff. as function of neutral, charged & em fraction
362 
365 
371 
376 
377  //dijet analysis quantities
380 
381 
382  // NPV profiles
383  //----------------------------------------------------------------------------
391 
400 };
401 
402 
403 #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
long int flag
Definition: mlp_lapack.h:47
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:74
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:54
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:60
MonitorElement * mMuMultiplicity_mediumPt_Forward
MonitorElement * mElFrac_highPt_EndCap
MonitorElement * mPhi_Forward
void setSource(std::string source)
Definition: PFJetAnalyzer.h:50
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:79
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:64
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:77
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:76
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:57
MonitorElement * mLooseJIDPassFractionVSeta
MonitorElement * mConstituents_profile
MonitorElement * mDijetBalance
MonitorElement * mPhiFirst
MonitorElement * mPhFracVSpT_EndCap
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