CMS 3D CMS Logo

L1ScalersClient.h
Go to the documentation of this file.
1 // -*-c++-*-
2 //
3 // Client class for L1 Scalers module.
4 //
5 
6 #ifndef L1ScalersCLIENT_H
7 #define L1ScalersCLIENT_H
8 
11 
13 
15 
16 // HARD CODE THE NUMBER OF HISTOGRAMS TO 200, LENGTH OF MONITOR to 2000
17 // segments
18 #define MAX_ALGOS 140
19 #define MAX_TT 80
20 #define MAX_LUMI_SEG 2000
21 
23  : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
24 public:
27 
30 
32  void beginJob(void) override;
33 
35  void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
36 
38  void endRun(const edm::Run &run, const edm::EventSetup &c) override;
39 
42  void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override {}
43  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
44 
45  // unused
46  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
47 
48 private:
50 
51  int nev_; // Number of events processed
52  int nLumi_; // number of lumi blocks
54 
57 
58  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
63 
64  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
69 
70  // this is a selected list of guys
73  std::vector<int> algoSelected_;
74  std::vector<int> techSelected_;
77 
79  bool first_algo;
80  bool first_tt;
81 };
82 
83 #endif // L1ScalersCLIENT_H
unsigned long int l1AlgoScalerCounters_[140]
std::vector< int > algoSelected_
dqm::legacy::MonitorElement MonitorElement
L1ScalersClient(const edm::ParameterSet &ps)
Constructors.
MonitorElement * l1TechTrigCurrentRatePerAlgo_[80]
void beginJob(void) override
BeginJob.
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
std::string folderName_
void endRun(const edm::Run &run, const edm::EventSetup &c) override
EndRun.
MonitorElement * l1AlgoCurrentRatePerAlgo_[140]
MonitorElement * l1AlgoCurrentRate_
dqm::legacy::DQMStore DQMStore
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
BeginRun.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
unsigned long int l1TechTrigScalerCounters_[80]
std::vector< int > techSelected_
MonitorElement * totalTtRate_
#define MAX_ALGOS
MonitorElement * totalAlgoRate_
MonitorElement * l1TechTrigRateHistories_[80]
MonitorElement * bxSelected_
MonitorElement * l1AlgoRateHistories_[140]
#define MAX_TT
Definition: Run.h:45
MonitorElement * selected_
MonitorElement * l1TechTrigCurrentRate_