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