CMS 3D CMS Logo

TopMonitor.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Trigger_TopMonitor_h
2 #define DQMOffline_Trigger_TopMonitor_h
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
22 
23 //DataFormats
39 // Marina
41 //Suvankar
45 
46 //ATHER
48 
50 
51 
52 //
53 // class declaration
54 //
55 
56 class TopMonitor : public DQMEDAnalyzer, public TriggerDQMBase
57 {
58 public:
59  TopMonitor( const edm::ParameterSet& );
60  ~TopMonitor() throw() override;
61  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
62 
63 protected:
64 
65  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
66  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
67 
68  // Marina
69  struct JetRefCompare :
70  public std::binary_function<edm::RefToBase<reco::Jet>, edm::RefToBase<reco::Jet>, bool> {
72  const {return j1.id() < j2.id() || (j1.id() == j2.id() && j1.key() < j2.key());}
73  };
74  // Marina
75  typedef std::map<edm::RefToBase<reco::Jet>, float, JetRefCompare> JetTagMap;
76 
77 
78 
79 private:
80 
83 
90  // Marina
92  //Suvankar
94 
95  //Suvankar
96  struct PVcut {
97  double dxy;
98  double dz;
99  };
100 
108  // Marina
110  //george
113 
114 
115  std::vector<double> met_variable_binning_;
116  std::vector<double> HT_variable_binning_;
117  std::vector<double> jetPt_variable_binning_;
118  std::vector<double> muPt_variable_binning_;
119  std::vector<double> elePt_variable_binning_;
120  std::vector<double> jetEta_variable_binning_;
121  std::vector<double> muEta_variable_binning_;
122  std::vector<double> eleEta_variable_binning_;
123  //george
124  std::vector<double> invMass_mumu_variable_binning_;
125  std::vector<double> MHT_variable_binning_;
126 
127  std::vector<double> HT_variable_binning_2D_;
128  std::vector<double> jetPt_variable_binning_2D_;
129  std::vector<double> muPt_variable_binning_2D_;
130  std::vector<double> elePt_variable_binning_2D_;
131  std::vector<double> phoPt_variable_binning_2D_;
132  std::vector<double> jetEta_variable_binning_2D_;
133  std::vector<double> muEta_variable_binning_2D_;
134  std::vector<double> eleEta_variable_binning_2D_;
135  std::vector<double> phoEta_variable_binning_2D_;
136  std::vector<double> phi_variable_binning_2D_;
137 
138  ObjME metME_;
140  ObjME metVsLS_;
141  ObjME metPhiME_;
142 
143  ObjME jetVsLS_;
144  ObjME muVsLS_;
145  ObjME eleVsLS_;
146  //Menglei
147  ObjME phoVsLS_;
148  // Marina
149  ObjME bjetVsLS_;
150  ObjME htVsLS_;
151 
152  ObjME jetEtaPhi_HEP17_; // for HEP17 monitoring
153 
154  ObjME jetMulti_;
155  ObjME eleMulti_;
156  ObjME muMulti_;
157  //Menglei
158  ObjME phoMulti_;
159  // Marina
160  ObjME bjetMulti_;
161 
164 
169  ObjME elePt_muPt_;
171  //george
173  ObjME eventMHT_;
176  //Menglei
177  ObjME muPt_phoPt_;
179 
180  //BTV
182 
183  ObjME eventHT_;
185 
186  std::vector<ObjME> muPhi_;
187  std::vector<ObjME> muEta_;
188  std::vector<ObjME> muPt_;
189 
190  std::vector<ObjME> elePhi_;
191  std::vector<ObjME> eleEta_;
192  std::vector<ObjME> elePt_;
193 
194  std::vector<ObjME> jetPhi_;
195  std::vector<ObjME> jetEta_;
196  std::vector<ObjME> jetPt_;
197 
198  std::vector<ObjME> phoPhi_;
199  std::vector<ObjME> phoEta_;
200  std::vector<ObjME> phoPt_;
201 
202 
203  // Marina
204  std::vector<ObjME> bjetPhi_;
205  std::vector<ObjME> bjetEta_;
206  std::vector<ObjME> bjetPt_;
207  std::vector<ObjME> bjetCSV_;
208 
209  std::vector<ObjME> muPt_variableBinning_;
210  std::vector<ObjME> elePt_variableBinning_;
211  std::vector<ObjME> jetPt_variableBinning_;
212  // Marina
213  std::vector<ObjME> bjetPt_variableBinning_;
214 
215  std::vector<ObjME> muEta_variableBinning_;
216  std::vector<ObjME> eleEta_variableBinning_;
217  std::vector<ObjME> jetEta_variableBinning_;
218  // Marina
219  std::vector<ObjME> bjetEta_variableBinning_;
220 
221 
222  //2D distributions
223  std::vector<ObjME> jetPtEta_;
224  std::vector<ObjME> jetEtaPhi_;
225  std::vector<ObjME> elePtEta_;
226  std::vector<ObjME> eleEtaPhi_;
227  std::vector<ObjME> muPtEta_;
228  std::vector<ObjME> muEtaPhi_;
229  //Menglei
230  std::vector<ObjME> phoPtEta_;
231  std::vector<ObjME> phoEtaPhi_;
232  // Marina
233  std::vector<ObjME> bjetPtEta_;
234  std::vector<ObjME> bjetEtaPhi_;
235  std::vector<ObjME> bjetCSVHT_;
236 
237  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
238  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
239 
246 
247  //Suvankar
249 
251 
252  unsigned int njets_;
253  unsigned int nelectrons_;
254  unsigned int nmuons_;
255  unsigned int nphotons_;
259  double HTcut_;
260  // Marina
261  unsigned int nbjets_;
263 
264  //Suvankar
267 
268  bool applyMETcut_ = false;
269 
270  //george
273  bool opsign_;
275  double MHTcut_;
276  double mll;
277  int sign;
279 
280  //Menglei
282 
283 };
284 
285 #endif // DQMOffline_Trigger_TopMonitor_h
StringCutObjectSelector< reco::Jet, true > bjetSelection_
Definition: TopMonitor.h:250
ObjME mu1Pt_mu2Pt_
Definition: TopMonitor.h:167
std::vector< double > elePt_variable_binning_2D_
Definition: TopMonitor.h:130
std::vector< ObjME > jetEta_variableBinning_
Definition: TopMonitor.h:217
ObjME jetVsLS_
Definition: TopMonitor.h:143
std::vector< double > jetEta_variable_binning_
Definition: TopMonitor.h:120
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: TopMonitor.h:241
std::vector< ObjME > jetEtaPhi_
Definition: TopMonitor.h:224
std::vector< ObjME > bjetPtEta_
Definition: TopMonitor.h:233
ObjME jetEtaPhi_HEP17_
Definition: TopMonitor.h:152
double bJetMuDeltaRmax_
Definition: TopMonitor.h:257
std::vector< double > muEta_variable_binning_
Definition: TopMonitor.h:121
ObjME DeltaR_jet_Mu_
Definition: TopMonitor.h:181
ObjME muEta_phoEta_
Definition: TopMonitor.h:178
std::vector< ObjME > muPt_
Definition: TopMonitor.h:188
std::vector< ObjME > jetPtEta_
Definition: TopMonitor.h:223
MEbinning invMass_mumu_binning_
Definition: TopMonitor.h:111
std::vector< ObjME > bjetCSVHT_
Definition: TopMonitor.h:235
std::vector< ObjME > bjetPt_variableBinning_
Definition: TopMonitor.h:213
ObjME muVsLS_
Definition: TopMonitor.h:144
std::vector< ObjME > muEta_
Definition: TopMonitor.h:187
MEbinning HT_binning_
Definition: TopMonitor.h:106
ObjME eleEta_muEta_
Definition: TopMonitor.h:170
ObjME eventMHT_variableBinning_
Definition: TopMonitor.h:175
std::vector< ObjME > elePt_variableBinning_
Definition: TopMonitor.h:210
std::vector< double > jetPt_variable_binning_
Definition: TopMonitor.h:117
ObjME phoVsLS_
Definition: TopMonitor.h:147
ObjME ele1Pt_ele2Pt_
Definition: TopMonitor.h:165
ObjME ele1Eta_ele2Eta_
Definition: TopMonitor.h:166
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
ObjME elePt_eventHT_
Definition: TopMonitor.h:163
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
Definition: TopMonitor.h:93
std::string histoSuffix_
Definition: TopMonitor.h:82
std::vector< ObjME > bjetCSV_
Definition: TopMonitor.h:207
std::vector< ObjME > phoEta_
Definition: TopMonitor.h:199
ObjME muMulti_
Definition: TopMonitor.h:156
std::vector< ObjME > eleEtaPhi_
Definition: TopMonitor.h:226
std::vector< double > muPt_variable_binning_
Definition: TopMonitor.h:118
ObjME metME_variableBinning_
Definition: TopMonitor.h:139
ProductID id() const
Definition: RefToBase.h:242
StringCutObjectSelector< reco::Vertex, true > vtxSelection_
Definition: TopMonitor.h:248
ObjME metME_
Definition: TopMonitor.h:138
MEbinning met_binning_
Definition: TopMonitor.h:101
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: TopMonitor.h:84
bool invMassCutInAllMuPairs_
Definition: TopMonitor.h:278
ObjME eventMHT_
Definition: TopMonitor.h:173
double bJetDeltaEtaMax_
Definition: TopMonitor.h:258
ObjME bjetVsLS_
Definition: TopMonitor.h:149
std::string folderName_
Definition: TopMonitor.h:81
ObjME metVsLS_
Definition: TopMonitor.h:140
TopMonitor(const edm::ParameterSet &)
Definition: TopMonitor.cc:17
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: TopMonitor.h:88
PVcut lepPVcuts_
Definition: TopMonitor.h:265
std::vector< ObjME > jetPt_variableBinning_
Definition: TopMonitor.h:211
bool enablePhotonPlot_
Definition: TopMonitor.h:281
unsigned int nphotons_
Definition: TopMonitor.h:255
ObjME elePt_jetPt_
Definition: TopMonitor.h:162
std::vector< ObjME > muPhi_
Definition: TopMonitor.h:186
std::vector< double > HT_variable_binning_
Definition: TopMonitor.h:116
edm::EDGetTokenT< reco::JetTagCollection > jetTagToken_
Definition: TopMonitor.h:91
std::vector< ObjME > muPt_variableBinning_
Definition: TopMonitor.h:209
int iEvent
Definition: GenABIO.cc:230
ObjME metPhiME_
Definition: TopMonitor.h:141
unsigned int njets_
Definition: TopMonitor.h:252
std::vector< ObjME > bjetPt_
Definition: TopMonitor.h:206
ObjME jetMulti_
Definition: TopMonitor.h:154
size_t key() const
Definition: RefToBase.h:250
StringCutObjectSelector< reco::PFJet, true > HTdefinition_
Definition: TopMonitor.h:245
std::vector< double > invMass_mumu_variable_binning_
Definition: TopMonitor.h:124
std::vector< double > MHT_variable_binning_
Definition: TopMonitor.h:125
bool usePVcuts_
Definition: TopMonitor.h:266
bool operator()(const edm::RefToBase< reco::Jet > &j1, const edm::RefToBase< reco::Jet > &j2) const
Definition: TopMonitor.h:71
ObjME invMass_mumu_variableBinning_
Definition: TopMonitor.h:174
std::vector< ObjME > muEtaPhi_
Definition: TopMonitor.h:228
edm::EDGetTokenT< edm::View< reco::GsfElectron > > eleToken_
Definition: TopMonitor.h:86
std::vector< ObjME > jetEta_
Definition: TopMonitor.h:195
unsigned int nelectrons_
Definition: TopMonitor.h:253
std::vector< ObjME > phoEtaPhi_
Definition: TopMonitor.h:231
edm::EDGetTokenT< reco::PhotonCollection > phoToken_
Definition: TopMonitor.h:89
unsigned int nmuons_
Definition: TopMonitor.h:254
ObjME bjetMulti_
Definition: TopMonitor.h:160
ObjME eleVsLS_
Definition: TopMonitor.h:145
std::vector< double > met_variable_binning_
Definition: TopMonitor.h:115
std::vector< ObjME > jetPhi_
Definition: TopMonitor.h:194
std::vector< ObjME > eleEta_
Definition: TopMonitor.h:191
std::vector< ObjME > muPtEta_
Definition: TopMonitor.h:227
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: TopMonitor.h:243
bool applyMETcut_
Definition: TopMonitor.h:268
std::vector< double > jetPt_variable_binning_2D_
Definition: TopMonitor.h:128
double MHTcut_
Definition: TopMonitor.h:275
std::vector< double > HT_variable_binning_2D_
Definition: TopMonitor.h:127
MEbinning MHT_binning_
Definition: TopMonitor.h:112
std::vector< double > phi_variable_binning_2D_
Definition: TopMonitor.h:136
std::vector< ObjME > jetPt_
Definition: TopMonitor.h:196
double HTcut_
Definition: TopMonitor.h:259
std::vector< ObjME > eleEta_variableBinning_
Definition: TopMonitor.h:216
ObjME elePt_muPt_
Definition: TopMonitor.h:169
std::vector< ObjME > elePhi_
Definition: TopMonitor.h:190
std::vector< double > jetEta_variable_binning_2D_
Definition: TopMonitor.h:132
ObjME invMass_mumu_
Definition: TopMonitor.h:172
std::vector< ObjME > bjetEta_variableBinning_
Definition: TopMonitor.h:219
std::vector< double > muPt_variable_binning_2D_
Definition: TopMonitor.h:129
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: TopMonitor.h:240
StringCutObjectSelector< reco::PFJet, true > MHTdefinition_
Definition: TopMonitor.h:274
StringCutObjectSelector< reco::Photon, true > phoSelection_
Definition: TopMonitor.h:244
unsigned int nbjets_
Definition: TopMonitor.h:261
std::map< edm::RefToBase< reco::Jet >, float, JetRefCompare > JetTagMap
Definition: TopMonitor.h:75
ObjME phoMulti_
Definition: TopMonitor.h:158
std::vector< ObjME > elePt_
Definition: TopMonitor.h:192
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: TopMonitor.cc:159
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: TopMonitor.h:242
std::vector< ObjME > bjetEtaPhi_
Definition: TopMonitor.h:234
ObjME htVsLS_
Definition: TopMonitor.h:150
std::vector< ObjME > phoPt_
Definition: TopMonitor.h:200
std::vector< double > elePt_variable_binning_
Definition: TopMonitor.h:119
MEbinning csv_binning_
Definition: TopMonitor.h:109
double workingpoint_
Definition: TopMonitor.h:262
ObjME mu1Eta_mu2Eta_
Definition: TopMonitor.h:168
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TopMonitor.cc:1043
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: TopMonitor.h:238
double invMassUppercut_
Definition: TopMonitor.h:271
std::vector< ObjME > bjetEta_
Definition: TopMonitor.h:205
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: TopMonitor.cc:538
MEbinning DR_binning_
Definition: TopMonitor.h:107
std::vector< ObjME > phoPtEta_
Definition: TopMonitor.h:230
ObjME muPt_phoPt_
Definition: TopMonitor.h:177
std::vector< ObjME > elePtEta_
Definition: TopMonitor.h:225
bool opsign_
Definition: TopMonitor.h:273
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: TopMonitor.h:85
MEbinning phi_binning_
Definition: TopMonitor.h:103
MEbinning eta_binning_
Definition: TopMonitor.h:105
edm::EDGetTokenT< edm::ValueMap< bool > > elecIDToken_
Definition: TopMonitor.h:87
ObjME eleMulti_
Definition: TopMonitor.h:155
std::vector< double > phoEta_variable_binning_2D_
Definition: TopMonitor.h:135
double mll
Definition: TopMonitor.h:276
double leptJetDeltaRmin_
Definition: TopMonitor.h:256
std::vector< double > muEta_variable_binning_2D_
Definition: TopMonitor.h:133
MEbinning ls_binning_
Definition: TopMonitor.h:102
std::vector< double > eleEta_variable_binning_2D_
Definition: TopMonitor.h:134
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: TopMonitor.h:237
std::vector< ObjME > phoPhi_
Definition: TopMonitor.h:198
double invMassLowercut_
Definition: TopMonitor.h:272
~TopMonitor() override
Definition: TopMonitor.cc:153
MEbinning pt_binning_
Definition: TopMonitor.h:104
Definition: Run.h:43
std::vector< double > phoPt_variable_binning_2D_
Definition: TopMonitor.h:131
ObjME eventHT_variableBinning_
Definition: TopMonitor.h:184
std::vector< ObjME > muEta_variableBinning_
Definition: TopMonitor.h:215
std::vector< ObjME > bjetPhi_
Definition: TopMonitor.h:204
std::vector< double > eleEta_variable_binning_
Definition: TopMonitor.h:122
ObjME eventHT_
Definition: TopMonitor.h:183