CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
26 
29 
31  ~L1ScalersClient() override{};
32 
34  void beginJob(void) override;
35 
36  // /// Endjob
37  // void endJob(void);
38 
40  void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
41 
43  void endRun(const edm::Run &run, const edm::EventSetup &c) override;
44 
47  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
48 
49  // unused
50  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
51 
52 private:
54 
55  int nev_; // Number of events processed
56  int nLumi_; // number of lumi blocks
58 
61 
62  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
67 
68  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
73 
74  // this is a selected list of guys
77  std::vector<int> algoSelected_;
78  std::vector<int> techSelected_;
81 
83  bool first_algo;
84  bool first_tt;
85 };
86 
87 #endif // L1ScalersCLIENT_H
const edm::EventSetup & c
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
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_