CMS 3D CMS Logo

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