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