CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1Scalers.h
Go to the documentation of this file.
1 // -*-c++-*-
2 #ifndef L1Scalers_H
3 #define L1Scalers_H
4 
9 
12 
13 #define MAX_LUMI_SEG 2000
14 #define MAX_LUMI_BIN 400
15 
16 namespace l1s {
17  struct Empty {};
18 } // namespace l1s
19 class L1Scalers : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<l1s::Empty>> {
20 public:
21  L1Scalers(const edm::ParameterSet &ps);
22  ~L1Scalers() override{};
23  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
24  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
26  std::shared_ptr<l1s::Empty> globalBeginLuminosityBlock(const edm::LuminosityBlock &lumiSeg,
27  const edm::EventSetup &c) const final;
28  void globalEndLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
29 
30 private:
31  int nev_; // Number of events processed
32 
33  bool verbose_;
36 
38  unsigned int denomBit_;
39  bool tfIsTech_;
40  unsigned int tfBit_;
41  std::vector<unsigned int> algoSelected_;
42  std::vector<unsigned int> techSelected_;
43 
44  std::string folderName_; // dqm folder name
49 
50  // 2d versions
53 
54  // Int
56  MonitorElement *l1AlgoCounter_; // for total Algo Rate
57  MonitorElement *l1TtCounter_; // for total TT Rate
58 
59  // timing plots
60  std::vector<MonitorElement *> algoBxDiff_;
61  std::vector<MonitorElement *> techBxDiff_;
62  std::vector<MonitorElement *> algoBxDiffLumi_;
63  std::vector<MonitorElement *> techBxDiffLumi_;
72 
73  // steal from HLTrigger/special
74  unsigned int threshold_;
75  unsigned int fedStart_, fedStop_;
76  // total Rates
77  unsigned int rateAlgoCounter_; // for total Algo Rate
78  unsigned int rateTtCounter_; // for total TT Rate
79 
81 
82  std::vector<int> maskedList_;
84 
86  std::vector<int> earliestTech_;
87  std::vector<int> earliestAlgo_;
88 };
89 
90 #endif // L1Scalers_H
bool tfIsTech_
Definition: L1Scalers.h:39
MonitorElement * l1scalers_
Definition: L1Scalers.h:45
std::vector< MonitorElement * > techBxDiff_
Definition: L1Scalers.h:61
const edm::EventSetup & c
bool verbose_
Definition: L1Scalers.h:33
std::vector< MonitorElement * > algoBxDiffLumi_
Definition: L1Scalers.h:62
std::vector< MonitorElement * > algoBxDiff_
Definition: L1Scalers.h:60
std::string folderName_
Definition: L1Scalers.h:44
unsigned int fedStop_
Definition: L1Scalers.h:75
MonitorElement * rpcfBxDiffLumi_
Definition: L1Scalers.h:71
edm::InputTag HcalRecHitCollection_
Definition: L1Scalers.h:83
L1Scalers(const edm::ParameterSet &ps)
Definition: L1Scalers.cc:37
edm::InputTag fedRawCollection_
Definition: L1Scalers.h:80
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: L1Scalers.cc:71
~L1Scalers() override
Definition: L1Scalers.h:22
MonitorElement * rpcbBxDiffLumi_
Definition: L1Scalers.h:69
MonitorElement * dtBxDiffLumi_
Definition: L1Scalers.h:65
std::shared_ptr< l1s::Empty > globalBeginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) const final
DQM Client Diagnostic should be performed here:
Definition: L1Scalers.cc:414
std::vector< int > earliestTech_
Definition: L1Scalers.h:86
bool denomIsTech_
Definition: L1Scalers.h:37
MonitorElement * cscBxDiff_
Definition: L1Scalers.h:66
MonitorElement * l1techScalers_
Definition: L1Scalers.h:46
unsigned int threshold_
Definition: L1Scalers.h:74
MonitorElement * l1scalersBx_
Definition: L1Scalers.h:51
int nev_
Definition: L1Scalers.h:31
unsigned int fedStart_
Definition: L1Scalers.h:75
MonitorElement * l1TtCounter_
Definition: L1Scalers.h:57
std::vector< MonitorElement * > techBxDiffLumi_
Definition: L1Scalers.h:63
std::vector< unsigned int > algoSelected_
Definition: L1Scalers.h:41
std::vector< int > maskedList_
Definition: L1Scalers.h:82
MonitorElement * l1Correlations_
Definition: L1Scalers.h:47
std::vector< unsigned int > techSelected_
Definition: L1Scalers.h:42
MonitorElement * rpcbBxDiff_
Definition: L1Scalers.h:68
MonitorElement * dtBxDiff_
Definition: L1Scalers.h:64
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > l1GtDataSource_
Definition: L1Scalers.h:34
unsigned int rateAlgoCounter_
Definition: L1Scalers.h:77
std::vector< int > earliestAlgo_
Definition: L1Scalers.h:87
int earliestDenom_
Definition: L1Scalers.h:85
edm::EDGetTokenT< L1MuGMTReadoutCollection > l1GmtDataSource_
Definition: L1Scalers.h:35
MonitorElement * nLumiBlock_
Definition: L1Scalers.h:55
void globalEndLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
Definition: L1Scalers.cc:419
unsigned int tfBit_
Definition: L1Scalers.h:40
MonitorElement * bxNum_
Definition: L1Scalers.h:48
MonitorElement * l1techScalersBx_
Definition: L1Scalers.h:52
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: L1Scalers.cc:193
MonitorElement * l1AlgoCounter_
Definition: L1Scalers.h:56
unsigned int denomBit_
Definition: L1Scalers.h:38
MonitorElement * rpcfBxDiff_
Definition: L1Scalers.h:70
Definition: Run.h:45
unsigned int rateTtCounter_
Definition: L1Scalers.h:78
MonitorElement * cscBxDiffLumi_
Definition: L1Scalers.h:67