CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METAnalyzer.h
Go to the documentation of this file.
1 #ifndef METAnalyzer_H
2 #define METAnalyzer_H
3 
4 
15 #include <memory>
16 #include <fstream>
17 #include "TMath.h"
26 //
28 //
33 
35 
39 
48 
51 
53 
54 class METAnalyzer : public METAnalyzerBase {
55  public:
56 
59 
61  virtual ~METAnalyzer();
62 
64  void beginJob(DQMStore * dbe);
65 
67  void endJob();
68 
69  // Book MonitorElements
70  void bookMESet(std::string);
71  void bookMonitorElement(std::string, bool);
72 
74  void analyze(const edm::Event&, const edm::EventSetup&,
75  const edm::TriggerResults&);
76 
78  void beginRun(const edm::Run&, const edm::EventSetup&);
79 
81  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup, DQMStore *dbe);
82 
83  // Fill MonitorElements
84  void fillMESet(const edm::Event&, std::string, const reco::MET&);
85  void fillMonitorElement(const edm::Event&, std::string, std::string, const reco::MET&, bool);
86  void makeRatePlot(std::string, double);
87 
88  bool selectHighPtJetEvent(const edm::Event&);
89  bool selectLowPtJetEvent(const edm::Event&);
90  bool selectWElectronEvent(const edm::Event&);
91  bool selectWMuonEvent(const edm::Event&);
92 
93  void setSource(std::string source) {
94  _source = source;
95  }
96 
98 
99  private:
100  // ----------member data ---------------------------
101 
103  // Switch for verbosity
104  int _verbose;
105 
106  std::string metname;
107  std::string _source;
108 
109  std::string _FolderName;
110 
120 
125 
126 
127  // list of Jet or MB HLT triggers
128  std::vector<std::string > HLTPathsJetMBByName_;
129 
134  // GenericTriggerEventFlag * _LowMETEventFlag;
137 
138  std::vector<std::string> highPtJetExpr_;
139  std::vector<std::string> lowPtJetExpr_;
140  std::vector<std::string> highMETExpr_;
141  // std::vector<std::string> lowMETExpr_;
142  std::vector<std::string> muonExpr_;
143  std::vector<std::string> elecExpr_;
144  std::vector<std::string> minbiasExpr_;
145 
147  std::string _hlt_PhysDec;
148 
149  std::vector<unsigned > _techTrigsAND;
150  std::vector<unsigned > _techTrigsOR;
151  std::vector<unsigned > _techTrigsNOT;
152 
155 
158 
162  double _vtxchi2_max;
163  double _vtxz_max;
164 
170  // int _trig_LowMET;
174 
175 
179  // double _lowMETThreshold;
180 
181  // Et threshold for MET plots
182  double _etThreshold;
183 
184  // HF calibration factor (in 31X applied by TcProducer)
185  double hfCalibFactor_; //
186 
187  // JetID helper
189 
190 
191  // DCS filter
193 
194  //
195  bool _allhist;
198 
199  //
200  std::vector<std::string> _FolderNames;
201 
202  //
204 
210 
211  //
213 
214  //trigger histos
215  // lines commented out have been removed to improve the bin usage of JetMET DQM
220  // MonitorElement* hTriggerName_LowMET;
223 
224  //the histos
226 
228  //MonitorElement* hNevents;
231  //MonitorElement* hEz;
236 
239 
240  //MonitorElement* hMETIonFeedbck;
241  //MonitorElement* hMETHPDNoise;
242  //MonitorElement* hMETRBXNoise;
243 
246 
260 
264 
265 
266 };
267 #endif
bool _allSelection
Definition: METAnalyzer.h:196
MonitorElement * htrkEta
Definition: METAnalyzer.h:248
MonitorElement * hMExLS
Definition: METAnalyzer.h:244
MonitorElement * hTriggerName_MinBias
Definition: METAnalyzer.h:218
MonitorElement * hSumET
Definition: METAnalyzer.h:235
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
Definition: METAnalyzer.cc:79
edm::InputTag inputMuonLabel
Definition: METAnalyzer.h:122
MonitorElement * hMExCorrection
Definition: METAnalyzer.h:261
void endJob()
Finish up a job.
Definition: METAnalyzer.cc:195
MonitorElement * helePt
Definition: METAnalyzer.h:252
MonitorElement * hMEy
Definition: METAnalyzer.h:230
bool _tightBHFiltering
Definition: METAnalyzer.h:156
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
Definition: METAnalyzer.cc:311
std::vector< unsigned > _techTrigsAND
Definition: METAnalyzer.h:149
MonitorElement * hTriggerName_Muon
Definition: METAnalyzer.h:222
std::vector< unsigned > _techTrigsOR
Definition: METAnalyzer.h:150
MonitorElement * hmuNhits
Definition: METAnalyzer.h:257
double _vtxz_max
Definition: METAnalyzer.h:163
MonitorElement * heleHoE
Definition: METAnalyzer.h:254
int _trig_PhysDec
Definition: METAnalyzer.h:173
MonitorElement * hMEx
Definition: METAnalyzer.h:229
edm::InputTag gtTag
Definition: METAnalyzer.h:119
int _trig_MinBias
Definition: METAnalyzer.h:168
bool selectLowPtJetEvent(const edm::Event &)
MonitorElement * hMEyLS
Definition: METAnalyzer.h:245
edm::InputTag inputBeamSpotLabel
Definition: METAnalyzer.h:124
void fillMonitorElement(const edm::Event &, std::string, std::string, const reco::MET &, bool)
Definition: METAnalyzer.cc:887
double _highPtJetThreshold
Definition: METAnalyzer.h:176
void fillMESet(const edm::Event &, std::string, const reco::MET &)
Definition: METAnalyzer.cc:859
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
double _etThreshold
Definition: METAnalyzer.h:182
MonitorElement * hmuD0
Definition: METAnalyzer.h:259
MonitorElement * hMET_logx
Definition: METAnalyzer.h:237
edm::InputTag HcalNoiseRBXCollectionTag
Definition: METAnalyzer.h:112
JetMETDQMDCSFilter * DCSFilter
Definition: METAnalyzer.h:192
GenericTriggerEventFlag * _MuonEventFlag
Definition: METAnalyzer.h:136
MonitorElement * htrkPt
Definition: METAnalyzer.h:247
edm::ParameterSet theCleaningParameters
Definition: METAnalyzer.h:146
MonitorElement * hMEyCorrection
Definition: METAnalyzer.h:262
GenericTriggerEventFlag * _LowPtJetEventFlag
Definition: METAnalyzer.h:131
double _highMETThreshold
Definition: METAnalyzer.h:178
MonitorElement * hMET
Definition: METAnalyzer.h:233
double _lowPtJetThreshold
Definition: METAnalyzer.h:177
void setSource(std::string source)
Definition: METAnalyzer.h:93
GenericTriggerEventFlag * _HighMETEventFlag
Definition: METAnalyzer.h:133
double hfCalibFactor_
Definition: METAnalyzer.h:185
math::XYZPoint bspot
Definition: METAnalyzer.h:203
edm::Handle< reco::MuonCollection > muon_h
Definition: METAnalyzer.h:206
edm::Handle< edm::View< reco::Track > > track_h
Definition: METAnalyzer.h:207
std::vector< std::string > highMETExpr_
Definition: METAnalyzer.h:140
void makeRatePlot(std::string, double)
Definition: METAnalyzer.cc:394
edm::Handle< edm::ValueMap< reco::MuonMETCorrectionData > > tcMet_ValueMap_Handle
Definition: METAnalyzer.h:205
void bookMonitorElement(std::string, bool)
Definition: METAnalyzer.cc:251
std::vector< unsigned > _techTrigsNOT
Definition: METAnalyzer.h:151
MonitorElement * hMETPhi
Definition: METAnalyzer.h:234
int _trig_HighPtJet
Definition: METAnalyzer.h:166
MonitorElement * hTriggerName_HighMET
Definition: METAnalyzer.h:219
edm::InputTag BeamHaloSummaryTag
Definition: METAnalyzer.h:116
MonitorElement * hTriggerName_LowPtJet
Definition: METAnalyzer.h:217
edm::InputTag thePfJetCollectionLabel
Definition: METAnalyzer.h:114
Definition: MET.h:32
edm::Handle< reco::BeamSpot > beamSpot_h
Definition: METAnalyzer.h:209
GenericTriggerEventFlag * _HighPtJetEventFlag
Definition: METAnalyzer.h:130
bool _doPVCheck
Definition: METAnalyzer.h:153
MonitorElement * hSumET_logx
Definition: METAnalyzer.h:238
bool selectWElectronEvent(const edm::Event &)
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
Definition: METAnalyzer.cc:339
edm::InputTag inputElectronLabel
Definition: METAnalyzer.h:123
int _trig_HighMET
Definition: METAnalyzer.h:169
std::string metname
Definition: METAnalyzer.h:106
bool _doHLTPhysicsOn
Definition: METAnalyzer.h:154
MonitorElement * hMETSig
Definition: METAnalyzer.h:232
std::vector< std::string > _FolderNames
Definition: METAnalyzer.h:200
int _tightJetIDFiltering
Definition: METAnalyzer.h:157
reco::helper::JetIDHelper * jetID
Definition: METAnalyzer.h:188
edm::Handle< edm::View< reco::GsfElectron > > electron_h
Definition: METAnalyzer.h:208
std::vector< std::string > lowPtJetExpr_
Definition: METAnalyzer.h:139
MonitorElement * hMuonCorrectionFlag
Definition: METAnalyzer.h:263
edm::InputTag vertexTag
Definition: METAnalyzer.h:118
std::vector< std::string > minbiasExpr_
Definition: METAnalyzer.h:144
MonitorElement * hTriggerName_Ele
Definition: METAnalyzer.h:221
std::vector< std::string > elecExpr_
Definition: METAnalyzer.h:143
MonitorElement * htrkChi2
Definition: METAnalyzer.h:250
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
std::vector< std::string > muonExpr_
Definition: METAnalyzer.h:142
bool selectWMuonEvent(const edm::Event &)
edm::ParameterSet parameters
Definition: METAnalyzer.h:102
std::string _hlt_PhysDec
Definition: METAnalyzer.h:147
MonitorElement * hmetME
Definition: METAnalyzer.h:227
bool _cleanupSelection
Definition: METAnalyzer.h:197
METAnalyzer(const edm::ParameterSet &)
Constructor.
Definition: METAnalyzer.cc:35
MonitorElement * hTriggerName_HighPtJet
Definition: METAnalyzer.h:216
edm::InputTag theJetCollectionLabel
Definition: METAnalyzer.h:113
double _vtxchi2_max
Definition: METAnalyzer.h:162
MonitorElement * hmuChi2
Definition: METAnalyzer.h:258
int evtCounter
Definition: METAnalyzer.h:97
std::vector< std::string > HLTPathsJetMBByName_
Definition: METAnalyzer.h:128
std::string _FolderName
Definition: METAnalyzer.h:109
MonitorElement * htrkD0
Definition: METAnalyzer.h:251
std::string _source
Definition: METAnalyzer.h:107
GenericTriggerEventFlag * _MinBiasEventFlag
Definition: METAnalyzer.h:132
edm::InputTag TcCandidatesTag
Definition: METAnalyzer.h:115
void bookMESet(std::string)
Definition: METAnalyzer.cc:203
DQMStore * _dbe
Definition: METAnalyzer.h:212
virtual ~METAnalyzer()
Destructor.
Definition: METAnalyzer.cc:67
int _nvtxtrks_min
Definition: METAnalyzer.h:160
std::vector< std::string > highPtJetExpr_
Definition: METAnalyzer.h:138
MonitorElement * hMETRate
Definition: METAnalyzer.h:225
edm::InputTag inputTrackLabel
Definition: METAnalyzer.h:121
edm::InputTag HBHENoiseFilterResultTag
Definition: METAnalyzer.h:117
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
Definition: METAnalyzer.cc:423
MonitorElement * heleEta
Definition: METAnalyzer.h:253
Definition: Run.h:33
MonitorElement * hmuEta
Definition: METAnalyzer.h:256
int _trig_LowPtJet
Definition: METAnalyzer.h:167
MonitorElement * hmuPt
Definition: METAnalyzer.h:255
GenericTriggerEventFlag * _EleEventFlag
Definition: METAnalyzer.h:135
bool selectHighPtJetEvent(const edm::Event &)
int _vtxndof_min
Definition: METAnalyzer.h:161
MonitorElement * htrkNhits
Definition: METAnalyzer.h:249
edm::InputTag theMETCollectionLabel
Definition: METAnalyzer.h:111