CMS 3D CMS Logo

L1TdeCSCTPG.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMonitor_L1TdeCSCTPG_h
2 #define DQM_L1TMonitor_L1TdeCSCTPG_h
3 
7 
10 
15 
16 class L1TdeCSCTPG : public DQMEDAnalyzer {
17 public:
18  L1TdeCSCTPG(const edm::ParameterSet& ps);
19  ~L1TdeCSCTPG() override;
20 
21 protected:
22  void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override;
23  void analyze(const edm::Event&, const edm::EventSetup&) override;
24 
25 private:
26  // customized equality function
27  bool areSameCLCTs(const CSCCLCTDigi& lhs, const CSCCLCTDigi& rhs) const;
28  bool areSameLCTs(const CSCCorrelatedLCTDigi& lhs, const CSCCorrelatedLCTDigi& rhs) const;
29 
38 
39  // ME1/1 combines trigger data from ME1/a and ME1/b
40  std::vector<std::string> chambers_;
41  std::vector<std::string> dataEmul_;
42 
43  std::vector<std::string> alctVars_;
44  std::vector<std::string> clctVars_;
45  std::vector<std::string> lctVars_;
46 
47  std::vector<unsigned> alctNBin_;
48  std::vector<unsigned> clctNBin_;
49  std::vector<unsigned> lctNBin_;
50  std::vector<double> alctMinBin_;
51  std::vector<double> clctMinBin_;
52  std::vector<double> lctMinBin_;
53  std::vector<double> alctMaxBin_;
54  std::vector<double> clctMaxBin_;
55  std::vector<double> lctMaxBin_;
56 
57  /*
58  When set to True, we assume that the data comes from
59  the Building 904 CSC test-stand. This test-stand is a single
60  ME1/1 chamber, ME2/1, or ME4/2 chamber.
61  */
62  bool useB904_;
66 
67  bool isRun3_;
68  /*
69  By default the DQM will make 2D summary plots. Do you also want
70  the very large number of 1D plots? Would recommend to keep it to
71  true so that it may help in the debugging process (S.D.)
72  */
74 
75  // check the data CLCTs and emul CLCTs against emul preCLCTs
77 
78  // first key is the chamber number
79  // second key is the variable
80  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
81 
82  // 2D plots
89 
96 };
97 
98 #endif
MonitorElement * lctEmulSummary_denom_
Definition: L1TdeCSCTPG.h:90
std::vector< double > lctMaxBin_
Definition: L1TdeCSCTPG.h:55
edm::EDGetTokenT< CSCALCTDigiCollection > dataALCT_token_
Definition: L1TdeCSCTPG.h:30
MonitorElement * lctEmulSummary_num_
Definition: L1TdeCSCTPG.h:91
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > dataLCT_token_
Definition: L1TdeCSCTPG.h:35
bool useB904ME234s2_
Definition: L1TdeCSCTPG.h:65
std::vector< std::string > alctVars_
Definition: L1TdeCSCTPG.h:43
MonitorElement * clctEmulSummary_num_
Definition: L1TdeCSCTPG.h:95
std::vector< unsigned > alctNBin_
Definition: L1TdeCSCTPG.h:47
bool useB904ME11_
Definition: L1TdeCSCTPG.h:63
std::vector< double > alctMinBin_
Definition: L1TdeCSCTPG.h:50
MonitorElement * alctDataSummary_num_
Definition: L1TdeCSCTPG.h:86
bool isRun3_
Definition: L1TdeCSCTPG.h:67
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > emulLCT_token_
Definition: L1TdeCSCTPG.h:36
bool useB904_
Definition: L1TdeCSCTPG.h:62
MonitorElement * lctDataSummary_denom_
Definition: L1TdeCSCTPG.h:83
bool preTriggerAnalysis_
Definition: L1TdeCSCTPG.h:76
~L1TdeCSCTPG() override
Definition: L1TdeCSCTPG.cc:44
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
Definition: L1TdeCSCTPG.h:80
bool useB904ME21_
Definition: L1TdeCSCTPG.h:64
MonitorElement * lctDataSummary_num_
Definition: L1TdeCSCTPG.h:84
std::vector< unsigned > lctNBin_
Definition: L1TdeCSCTPG.h:49
MonitorElement * alctEmulSummary_num_
Definition: L1TdeCSCTPG.h:93
std::vector< double > alctMaxBin_
Definition: L1TdeCSCTPG.h:53
MonitorElement * alctDataSummary_denom_
Definition: L1TdeCSCTPG.h:85
bool areSameLCTs(const CSCCorrelatedLCTDigi &lhs, const CSCCorrelatedLCTDigi &rhs) const
Definition: L1TdeCSCTPG.cc:600
edm::EDGetTokenT< CSCALCTDigiCollection > emulALCT_token_
Definition: L1TdeCSCTPG.h:31
std::vector< std::string > chambers_
Definition: L1TdeCSCTPG.h:40
L1TdeCSCTPG(const edm::ParameterSet &ps)
Definition: L1TdeCSCTPG.cc:6
MonitorElement * clctEmulSummary_denom_
Definition: L1TdeCSCTPG.h:94
std::vector< unsigned > clctNBin_
Definition: L1TdeCSCTPG.h:48
std::vector< double > clctMaxBin_
Definition: L1TdeCSCTPG.h:54
std::vector< std::string > dataEmul_
Definition: L1TdeCSCTPG.h:41
std::string monitorDir_
Definition: L1TdeCSCTPG.h:37
edm::EDGetTokenT< CSCCLCTDigiCollection > dataCLCT_token_
Definition: L1TdeCSCTPG.h:32
std::vector< std::string > lctVars_
Definition: L1TdeCSCTPG.h:45
std::vector< double > clctMinBin_
Definition: L1TdeCSCTPG.h:51
std::vector< double > lctMinBin_
Definition: L1TdeCSCTPG.h:52
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > emulpreCLCT_token_
Definition: L1TdeCSCTPG.h:34
bool areSameCLCTs(const CSCCLCTDigi &lhs, const CSCCLCTDigi &rhs) const
Definition: L1TdeCSCTPG.cc:586
bool make1DPlots_
Definition: L1TdeCSCTPG.h:73
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
Definition: L1TdeCSCTPG.cc:46
std::vector< std::string > clctVars_
Definition: L1TdeCSCTPG.h:44
MonitorElement * clctDataSummary_denom_
Definition: L1TdeCSCTPG.h:87
MonitorElement * alctEmulSummary_denom_
Definition: L1TdeCSCTPG.h:92
MonitorElement * clctDataSummary_num_
Definition: L1TdeCSCTPG.h:88
Definition: Run.h:45
edm::EDGetTokenT< CSCCLCTDigiCollection > emulCLCT_token_
Definition: L1TdeCSCTPG.h:33
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TdeCSCTPG.cc:198