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  // CLCTs and LCTs are considered duplicates if there is an earlier copy
27  bool isDuplicateCLCT(const CSCCLCTDigi& clct, const std::vector<CSCCLCTDigi>& container) const;
28  bool isDuplicateLCT(const CSCCorrelatedLCTDigi& lct, const std::vector<CSCCorrelatedLCTDigi>& container) const;
29 
30  // all properties are the same, except for the BX which is off by +1
31  bool isCLCTOffByOneBX(const CSCCLCTDigi& lhs, const CSCCLCTDigi& rhs) const;
32  bool isLCTOffByOneBX(const CSCCorrelatedLCTDigi& lhs, const CSCCorrelatedLCTDigi& rhs) const;
33 
42 
43  // ME1/1 combines trigger data from ME1/a and ME1/b
44  std::vector<std::string> chambers_;
45  std::vector<std::string> dataEmul_;
46 
47  std::vector<std::string> alctVars_;
48  std::vector<std::string> clctVars_;
49  std::vector<std::string> lctVars_;
50 
51  std::vector<unsigned> alctNBin_;
52  std::vector<unsigned> clctNBin_;
53  std::vector<unsigned> lctNBin_;
54  std::vector<double> alctMinBin_;
55  std::vector<double> clctMinBin_;
56  std::vector<double> lctMinBin_;
57  std::vector<double> alctMaxBin_;
58  std::vector<double> clctMaxBin_;
59  std::vector<double> lctMaxBin_;
60 
61  /*
62  When set to True, we assume that the data comes from
63  the Building 904 CSC test-stand. This test-stand is a single
64  ME1/1 chamber.
65  */
66  bool B904Setup_;
67 
68  bool isRun3_;
69 
70  // check the data CLCTs and emul CLCTs against emul preCLCTs
72 
73  // first key is the chamber number
74  // second key is the variable
75  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
76 };
77 
78 #endif
L1TdeCSCTPG::dataLCT_token_
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > dataLCT_token_
Definition: L1TdeCSCTPG.h:39
CSCCorrelatedLCTDigiCollection.h
L1TdeCSCTPG::alctVars_
std::vector< std::string > alctVars_
Definition: L1TdeCSCTPG.h:47
MessageLogger.h
L1TdeCSCTPG::lctMaxBin_
std::vector< double > lctMaxBin_
Definition: L1TdeCSCTPG.h:59
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< CSCALCTDigiCollection >
L1TdeCSCTPG::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TdeCSCTPG.cc:95
DQMStore.h
CSCCLCTDigi
Definition: CSCCLCTDigi.h:17
L1TdeCSCTPG::alctNBin_
std::vector< unsigned > alctNBin_
Definition: L1TdeCSCTPG.h:51
L1TdeCSCTPG::emulLCT_token_
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > emulLCT_token_
Definition: L1TdeCSCTPG.h:40
CSCCLCTPreTriggerDigiCollection.h
L1TdeCSCTPG::isCLCTOffByOneBX
bool isCLCTOffByOneBX(const CSCCLCTDigi &lhs, const CSCCLCTDigi &rhs) const
Definition: L1TdeCSCTPG.cc:327
L1TdeCSCTPG::isRun3_
bool isRun3_
Definition: L1TdeCSCTPG.h:68
L1TdeCSCTPG::preTriggerAnalysis_
bool preTriggerAnalysis_
Definition: L1TdeCSCTPG.h:71
L1TdeCSCTPG::alctMinBin_
std::vector< double > alctMinBin_
Definition: L1TdeCSCTPG.h:54
L1TdeCSCTPG::~L1TdeCSCTPG
~L1TdeCSCTPG() override
Definition: L1TdeCSCTPG.cc:37
L1TdeCSCTPG::B904Setup_
bool B904Setup_
Definition: L1TdeCSCTPG.h:66
L1TdeCSCTPG::chamberHistos
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
Definition: L1TdeCSCTPG.h:75
L1TdeCSCTPG::L1TdeCSCTPG
L1TdeCSCTPG(const edm::ParameterSet &ps)
Definition: L1TdeCSCTPG.cc:5
DQMEDAnalyzer.h
L1TdeCSCTPG::isLCTOffByOneBX
bool isLCTOffByOneBX(const CSCCorrelatedLCTDigi &lhs, const CSCCorrelatedLCTDigi &rhs) const
Definition: L1TdeCSCTPG.cc:340
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1TdeCSCTPG::alctMaxBin_
std::vector< double > alctMaxBin_
Definition: L1TdeCSCTPG.h:57
edm::EventSetup
Definition: EventSetup.h:58
L1TdeCSCTPG::emulALCT_token_
edm::EDGetTokenT< CSCALCTDigiCollection > emulALCT_token_
Definition: L1TdeCSCTPG.h:35
L1TdeCSCTPG::lctNBin_
std::vector< unsigned > lctNBin_
Definition: L1TdeCSCTPG.h:53
L1TdeCSCTPG::chambers_
std::vector< std::string > chambers_
Definition: L1TdeCSCTPG.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TdeCSCTPG::clctMaxBin_
std::vector< double > clctMaxBin_
Definition: L1TdeCSCTPG.h:58
L1TdeCSCTPG::emulpreCLCT_token_
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > emulpreCLCT_token_
Definition: L1TdeCSCTPG.h:38
L1TdeCSCTPG::clctNBin_
std::vector< unsigned > clctNBin_
Definition: L1TdeCSCTPG.h:52
L1TdeCSCTPG::dataCLCT_token_
edm::EDGetTokenT< CSCCLCTDigiCollection > dataCLCT_token_
Definition: L1TdeCSCTPG.h:36
L1TdeCSCTPG::isDuplicateCLCT
bool isDuplicateCLCT(const CSCCLCTDigi &clct, const std::vector< CSCCLCTDigi > &container) const
Definition: L1TdeCSCTPG.cc:300
L1TdeCSCTPG::bookHistograms
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
Definition: L1TdeCSCTPG.cc:39
L1TdeCSCTPG::lctMinBin_
std::vector< double > lctMinBin_
Definition: L1TdeCSCTPG.h:56
L1TdeCSCTPG
Definition: L1TdeCSCTPG.h:16
L1TdeCSCTPG::emulCLCT_token_
edm::EDGetTokenT< CSCCLCTDigiCollection > emulCLCT_token_
Definition: L1TdeCSCTPG.h:37
L1TdeCSCTPG::isDuplicateLCT
bool isDuplicateLCT(const CSCCorrelatedLCTDigi &lct, const std::vector< CSCCorrelatedLCTDigi > &container) const
Definition: L1TdeCSCTPG.cc:313
dqm::implementation::IBooker
Definition: DQMStore.h:43
L1TdeCSCTPG::clctVars_
std::vector< std::string > clctVars_
Definition: L1TdeCSCTPG.h:48
CSCALCTDigiCollection.h
ParameterSet.h
CSCCLCTDigiCollection.h
L1TdeCSCTPG::dataEmul_
std::vector< std::string > dataEmul_
Definition: L1TdeCSCTPG.h:45
edm::Event
Definition: Event.h:73
L1TdeCSCTPG::monitorDir_
std::string monitorDir_
Definition: L1TdeCSCTPG.h:41
L1TdeCSCTPG::lctVars_
std::vector< std::string > lctVars_
Definition: L1TdeCSCTPG.h:49
L1TdeCSCTPG::clctMinBin_
std::vector< double > clctMinBin_
Definition: L1TdeCSCTPG.h:55
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19
L1TdeCSCTPG::dataALCT_token_
edm::EDGetTokenT< CSCALCTDigiCollection > dataALCT_token_
Definition: L1TdeCSCTPG.h:34