CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
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 {
25 public:
28 
30  virtual ~L1ScalersClient() {
31  };
32 
34  void beginJob(void);
35 
36 // /// Endjob
37 // void endJob(void);
38 
40  void beginRun(const edm::Run& run, const edm::EventSetup& c);
41 
43  void endRun(const edm::Run& run, const edm::EventSetup& c);
44 
45 
48  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
49  const edm::EventSetup& c);
50 
51  // unused
52  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
53 
54 
55 private:
57 
58  int nev_; // Number of events processed
59  int nLumi_; // number of lumi blocks
61 
64 
65  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
70 
71  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
76 
77  // this is a selected list of guys
80  std::vector<int> algoSelected_;
81  std::vector<int> techSelected_;
82  std::string folderName_;
84 
86  bool first_algo;
87  bool first_tt;
88 };
89 
90 
91 #endif // L1ScalersCLIENT_H
MonitorElement * l1AlgoRateHistories_[MAX_ALGOS]
virtual ~L1ScalersClient()
Destructor.
std::vector< int > algoSelected_
void analyze(const edm::Event &e, const edm::EventSetup &c)
L1ScalersClient(const edm::ParameterSet &ps)
Constructors.
void beginJob(void)
BeginJob.
MonitorElement * l1AlgoCurrentRatePerAlgo_[MAX_ALGOS]
unsigned long int l1TechTrigScalerCounters_[MAX_TT]
std::string folderName_
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
unsigned long int l1AlgoScalerCounters_[MAX_ALGOS]
MonitorElement * l1AlgoCurrentRate_
MonitorElement * l1TechTrigCurrentRatePerAlgo_[MAX_TT]
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
std::vector< int > techSelected_
MonitorElement * l1TechTrigRateHistories_[MAX_TT]
MonitorElement * totalTtRate_
#define MAX_ALGOS
MonitorElement * totalAlgoRate_
MonitorElement * bxSelected_
#define MAX_TT
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:32
MonitorElement * selected_
MonitorElement * l1TechTrigCurrentRate_