CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFMETAnalyzer.h
Go to the documentation of this file.
1 #ifndef PFMETAnalyzer_H
2 #define PFMETAnalyzer_H
3 
4 
14 #include <memory>
15 #include <fstream>
16 #include "TMath.h"
26 
29 
34 
36 
40 
43 
45 
46 
47 #include "GlobalVariables.h"
48 
49 
51  public:
52 
55 
57  virtual ~PFMETAnalyzer();
58 
60  void beginJob(DQMStore * dbe);
61 
63  void endJob();
64 
65  // Book MonitorElements
66  void bookMESet(std::string);
67  void bookMonitorElement(std::string, bool);
68 
70  void analyze(const edm::Event&, const edm::EventSetup&,
71  const edm::TriggerResults&);
72 
74  void beginRun(const edm::Run&, const edm::EventSetup&);
75 
77  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup, DQMStore *dbe);
78 
79  // Fill MonitorElements
80  void fillMESet(const edm::Event&, std::string, const reco::PFMET&);
82  void makeRatePlot(std::string, double);
83 
85 
86  bool selectHighPtJetEvent(const edm::Event&);
87  bool selectLowPtJetEvent(const edm::Event&);
88  bool selectWElectronEvent(const edm::Event&);
89  bool selectWMuonEvent(const edm::Event&);
90 
92  _source = source;
93  }
94 
96 
97  private:
98  // ----------member data ---------------------------
99 
101  int _verbose;
102 
105 
115 
116  // list of Jet or MB HLT triggers
117  std::vector<std::string > HLTPathsJetMBByName_;
118 
123  // GenericTriggerEventFlag * _LowMETEventFlag;
126 
127  std::vector<std::string> highPtJetExpr_;
128  std::vector<std::string> lowPtJetExpr_;
129  std::vector<std::string> highMETExpr_;
130  // std::vector<std::string> lowMETExpr_;
131  std::vector<std::string> muonExpr_;
132  std::vector<std::string> elecExpr_;
133  std::vector<std::string> minbiasExpr_;
134 
137 
138  std::vector<unsigned > _techTrigsAND;
139  std::vector<unsigned > _techTrigsOR;
140  std::vector<unsigned > _techTrigsNOT;
141 
144 
147 
151  double _vtxchi2_max;
152  double _vtxz_max;
153 
159  // int _trig_LowMET;
163 
164 
169 
170  int _numPV;
171  // Et threshold for MET plots
172  double _etThreshold;
173 
174  // HF calibration factor (in 31X applied by PFProducer)
175  double hfCalibFactor_; //
176 
177  // JetID helper
179 
180  // DCS filter
182 
183  //
184  bool _allhist;
187 
188  std::vector<std::string> _FolderNames;
189 
191 
192 
193  // MonitorElements
194  //----------------------------------------------------------------------------
197 
205 
216 
231 
232 
233  // NPV profiles
234  //----------------------------------------------------------------------------
239 
254 };
255 
256 
257 #endif
MonitorElement * mePhotonEtFraction
MonitorElement * mePfMET_profile
double _highPFMETThreshold
MonitorElement * meTriggerName_HighPtJet
double _highPtPFJetThreshold
MonitorElement * meHFEMEt_profile
std::string metname
GenericTriggerEventFlag * _MuonEventFlag
MonitorElement * meTriggerName_Muon
MonitorElement * meHFEMEt
int _tightJetIDFiltering
std::vector< std::string > highPtJetExpr_
JetMETDQMDCSFilter * DCSFilter
MonitorElement * meTriggerName_MinBias
std::string _source
edm::ParameterSet parameters
virtual ~PFMETAnalyzer()
Destructor.
GenericTriggerEventFlag * _HighPtJetEventFlag
void validateMET(const reco::PFMET &, edm::Handle< edm::View< reco::PFCandidate > >)
MonitorElement * meChargedHadronEtFraction_profile
PFMETAnalyzer(const edm::ParameterSet &, edm::ConsumesCollector &&)
Constructor.
edm::InputTag gtTag
MonitorElement * mePfMExLS
bool selectWMuonEvent(const edm::Event &)
void fillMESet(const edm::Event &, std::string, const reco::PFMET &)
std::vector< unsigned > _techTrigsAND
MonitorElement * meTriggerName_LowPtJet
MonitorElement * meHFEMEtFraction_profile
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
void setSource(std::string source)
Definition: PFMETAnalyzer.h:91
std::vector< std::string > muonExpr_
void endJob()
Finish up a job.
edm::ParameterSet theCleaningParameters
MonitorElement * mePfSumET
MonitorElement * mePfMEy
GenericTriggerEventFlag * _LowPtJetEventFlag
std::vector< std::string > lowPtJetExpr_
void fillMonitorElement(const edm::Event &, std::string, std::string, const reco::PFMET &, bool)
std::vector< std::string > highMETExpr_
double _vtxchi2_max
MonitorElement * meMuonEt_profile
DQMStore * _dbe
MonitorElement * mePfMEyLS
edm::InputTag BeamHaloSummaryTag
MonitorElement * meHFHadronEtFraction_profile
GenericTriggerEventFlag * _EleEventFlag
MonitorElement * meNeutralHadronEt
MonitorElement * meChargedHadronEt
MonitorElement * meTriggerName_Ele
MonitorElement * meHFEMEtFraction
std::string _hlt_PhysDec
reco::helper::JetIDHelper * jetID
double _lowPtPFJetThreshold
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
std::vector< unsigned > _techTrigsOR
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
GenericTriggerEventFlag * _HighMETEventFlag
void makeRatePlot(std::string, double)
edm::InputTag thePfMETCollectionLabel
MonitorElement * meTriggerName_PhysDec
MonitorElement * mePfMETSig
MonitorElement * mePfMEx
edm::InputTag thePfJetCollectionLabel
void bookMESet(std::string)
bool selectLowPtJetEvent(const edm::Event &)
MonitorElement * mePhotonEt
edm::InputTag PFCandidatesTag
std::vector< std::string > elecExpr_
MonitorElement * mePfMETRate
MonitorElement * meMuonEtFraction_profile
MonitorElement * meChargedHadronEt_profile
MonitorElement * meElectronEtFraction_profile
void bookMonitorElement(std::string, bool)
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
MonitorElement * meElectronEtFraction
MonitorElement * meNeutralHadronEtFraction_profile
MonitorElement * mePfSumET_logx
MonitorElement * mePhotonEtFraction_profile
bool _tightBHFiltering
double _lowPFMETThreshold
double _etThreshold
std::vector< std::string > _FolderNames
MonitorElement * meChargedHadronEtFraction
bool selectHighPtJetEvent(const edm::Event &)
MonitorElement * meHFHadronEtFraction
MonitorElement * mePfMET_logx
MonitorElement * mePhotonEt_profile
MonitorElement * meTriggerName_HighMET
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
edm::InputTag theJetCollectionLabel
MonitorElement * mePfMETPhi
bool selectWElectronEvent(const edm::Event &)
MonitorElement * meHFHadronEt
MonitorElement * meElectronEt_profile
MonitorElement * meMuonEt
MonitorElement * metME
GenericTriggerEventFlag * _MinBiasEventFlag
MonitorElement * meHFHadronEt_profile
edm::InputTag HBHENoiseFilterResultTag
edm::InputTag HcalNoiseRBXCollectionTag
bool _cleanupSelection
MonitorElement * mePfMET
std::vector< unsigned > _techTrigsNOT
MonitorElement * meNeutralHadronEt_profile
MonitorElement * mePfSumET_profile
std::vector< std::string > minbiasExpr_
std::vector< std::string > HLTPathsJetMBByName_
MonitorElement * meMuonEtFraction
edm::InputTag vertexTag
MonitorElement * mePfMEy_profile
MonitorElement * mePfMEx_profile
double hfCalibFactor_
static std::string const source
Definition: EdmProvDump.cc:43
MonitorElement * meNeutralHadronEtFraction
MonitorElement * meElectronEt
Definition: Run.h:41