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 
16 
17 // HARD CODE THE NUMBER OF HISTOGRAMS TO 200, LENGTH OF MONITOR to 2000
18 // segments
19 #define MAX_ALGOS 140
20 #define MAX_TT 80
21 #define MAX_LUMI_SEG 2000
22 
24 public:
27 
29  ~L1ScalersClient() override{};
30 
32  void beginJob(void) override;
33 
34  // /// Endjob
35  // void endJob(void);
36 
38  void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
39 
41  void endRun(const edm::Run &run, const edm::EventSetup &c) override;
42 
45  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
46 
47  // unused
48  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
49 
50 private:
52 
53  int nev_; // Number of events processed
54  int nLumi_; // number of lumi blocks
56 
59 
60  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
65 
66  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
71 
72  // this is a selected list of guys
75  std::vector<int> algoSelected_;
76  std::vector<int> techSelected_;
79 
81  bool first_algo;
82  bool first_tt;
83 };
84 
85 #endif // L1ScalersCLIENT_H
unsigned long int l1AlgoScalerCounters_[140]
std::vector< int > algoSelected_
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
std::string folderName_
void endRun(const edm::Run &run, const edm::EventSetup &c) override
EndRun.
MonitorElement * l1AlgoCurrentRatePerAlgo_[140]
MonitorElement * l1AlgoCurrentRate_
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_