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