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  ~L1ScalersClient() override{};
33 
35  void beginJob(void) override;
36 
37  // /// Endjob
38  // void endJob(void);
39 
41  void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
42 
44  void endRun(const edm::Run &run, const edm::EventSetup &c) override;
45 
48  void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override {}
49  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
50 
51  // unused
52  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
53 
54 private:
56 
57  int nev_; // Number of events processed
58  int nLumi_; // number of lumi blocks
60 
63 
64  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
69 
70  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
75 
76  // this is a selected list of guys
79  std::vector<int> algoSelected_;
80  std::vector<int> techSelected_;
83 
85  bool first_algo;
86  bool first_tt;
87 };
88 
89 #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
~L1ScalersClient() override
Destructor.
Definition: Run.h:45
MonitorElement * selected_
MonitorElement * l1TechTrigCurrentRate_