CMS 3D CMS Logo

L1TdeStage2CaloLayer2.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMonitor_L1TdeStage2CaloLayer2
2 #define DQM_L1TMonitor_L1TdeStage2CaloLayer2
3 
5 
8 
12 
17 
25 
26  public:
41 
42 
43  protected:
44 
63  const edm::Run&,
64  const edm::EventSetup&) override;
65 
78  void analyze (const edm::Event&, const edm::EventSetup&) override;
79 
80  private:
81 
104  bool compareJets(const edm::Handle<l1t::JetBxCollection> & dataCol,
105  const edm::Handle<l1t::JetBxCollection> & emulCol);
106 
132  const edm::Handle<l1t::EGammaBxCollection> & emulCol);
133 
158  bool compareTaus(const edm::Handle<l1t::TauBxCollection> & dataCol,
159  const edm::Handle<l1t::TauBxCollection> & emulCol);
160 
181  const edm::Handle<l1t::EtSumBxCollection> & emulCol);
182 
183  // Holds the name of directory in DQM where module hostograms will be shown.
184  // Value is taken from python configuration file (passed in class constructor)
186 
187  // collections to hold entities reconstructed from data and emulation
196 
197  enum summaryBins {
198  NEVENTS = 1, // total number of events
199  EVENTGOOD, // number of good events (100% agreement)
200  NJETS_S, // total number of jets objects found
201  JETGOOD_S, // number of jets in agreement (energy and pos)
202  NEGS_S, // total number of e/g objects found
203  EGGOOD_S, // number of e/g in agremeent (energy and pos)
204  NTAUS_S, // total number of tau objects found
205  TAUGOOD_S, // number of taus in agremenet (energy and pos)
206  NSUMS_S, // total number of sums
207  SUMGOOD_S // number of good sums across all events
208  };
209 
211  NEVENTS_P = 1, // total number of events
212  JETCOLLSIZE, // no. events with different data/emul obj. in jet coll.
213  EGCOLLSIZE, // no. events with different data/emul obj. in eg coll.
214  TAUCOLLSIZE, // no. events with different data/emul obj. in tau coll.
215  JETMISMATCH, // no. events failed due to a jet mismatch
216  EGMISMATCH, // no. events failed due to an e/g mismatch
217  TAUMISMATCH, // no. events failed due to a tau mismatch
218  SUMMISMATCH // no. events failed due to a sum mismatch
219  };
220 
221  enum jetVars {
222  NJETS = 1,
226  };
227 
228  enum egVars {
229  NEGS = 1,
237  };
238 
239  enum tauVars {
240  NTAUS = 1,
248  };
249 
250  enum sumVars {
251  NSUMS = 1,
269  };
270 
271  // objects to represent individual plots shown in DQM
278 
279  // histograms to store the properties of mismatched jets
286  MonitorElement * jet2DEtaPhiData; // This histogram will be filled only if enable2DComp is true
287  MonitorElement * jet2DEtaPhiEmul; // This histogram will be filled only if enable2DComp is true
288 
289  // histograms to store the properties of mismatched non-isolated e/g
296  MonitorElement * eg2DEtaPhiData; // This histogram will be filled only if enable2DComp is true
297  MonitorElement * eg2DEtaPhiEmul; // This histogram will be filled only if enable2DComp is true
298 
299  // histograms to store the properties of mismatched isolated e/g
306  MonitorElement * isoEg2DEtaPhiData; // This histogram will be filled only if enable2DComp is true
307  MonitorElement * isoEg2DEtaPhiEmul; // This histogram will be filled only if enable2DComp is true
308 
309  // histograms to store the properties of mismatched non-isolated taus
316  MonitorElement * tau2DEtaPhiData; // This histogram will be filled only if enable2DComp is true
317  MonitorElement * tau2DEtaPhiEmul; // This histogram will be filled only if enable2DComp is true
318 
319  // histograms to store the properties of mismatched isolated taus
326  MonitorElement * isoTau2DEtaPhiData; // This histogram will be filled only if enable2DComp is true
327  MonitorElement * isoTau2DEtaPhiEmul; // This histogram will be filled only if enable2DComp is true
328 
329  // histograms for mismatched ett sums
336 
337  // mismatched htt sums
342 
343  // mismatched met sums
352 
353  // mismatched mht sums
362 
363  // mismatched min bias sums
372 
373  // mismatched towercount sum
376 
377  // mismatched assymetry
378 
381 
382  // mismatched centrality
383 
386 
387 
388 
389  bool verbose;
390  bool enable2DComp; // Default value is false. Set to true in the configuration file for enabling 2D eta-phi histograms
391 
392  // use only bx = 0 since it only contains RAW data (needed for emulator)
393  const unsigned int currBx = 0;
394 };
395 
396 #endif
edm::EDGetTokenT< l1t::JetBxCollection > calol2JetCollectionEmul
edm::EDGetTokenT< l1t::TauBxCollection > calol2TauCollectionEmul
MonitorElement * jet2DEtaPhiData
MonitorElement * eg2DEtaPhiEmul
MonitorElement * problemSummary
MonitorElement * centrCountData
MonitorElement * isoTauPhiEmul
L1TdeStage2CaloLayer2(const edm::ParameterSet &ps)
MonitorElement * centrCountEmul
edm::EDGetTokenT< l1t::EtSumBxCollection > calol2EtSumCollectionData
MonitorElement * isoTauEtaData
MonitorElement * agreementSummary
MonitorElement * jet2DEtaPhiEmul
bool compareSums(const edm::Handle< l1t::EtSumBxCollection > &dataCol, const edm::Handle< l1t::EtSumBxCollection > &emulCol)
MonitorElement * asymCountData
edm::EDGetTokenT< l1t::EGammaBxCollection > calol2EGammaCollectionEmul
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< l1t::EGammaBxCollection > calol2EGammaCollectionData
MonitorElement * tau2DEtaPhiEmul
bool compareEGs(const edm::Handle< l1t::EGammaBxCollection > &dataCol, const edm::Handle< l1t::EGammaBxCollection > &emulCol)
MonitorElement * isoTauEtaEmul
MonitorElement * asymCountEmul
void analyze(const edm::Event &, const edm::EventSetup &) override
bool compareTaus(const edm::Handle< l1t::TauBxCollection > &dataCol, const edm::Handle< l1t::TauBxCollection > &emulCol)
MonitorElement * isoTau2DEtaPhiData
edm::EDGetTokenT< l1t::JetBxCollection > calol2JetCollectionData
bool compareJets(const edm::Handle< l1t::JetBxCollection > &dataCol, const edm::Handle< l1t::JetBxCollection > &emulCol)
MonitorElement * isoTauPhiData
MonitorElement * isoTau2DEtaPhiEmul
MonitorElement * isoEg2DEtaPhiData
edm::EDGetTokenT< l1t::TauBxCollection > calol2TauCollectionData
MonitorElement * tau2DEtaPhiData
edm::EDGetTokenT< l1t::EtSumBxCollection > calol2EtSumCollectionEmul
MonitorElement * isoEg2DEtaPhiEmul
MonitorElement * eg2DEtaPhiData
Definition: Run.h:45