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