test
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_;
84 
86  bool first_algo;
87  bool first_tt;
88 };
89 
90 
91 #endif // L1ScalersCLIENT_H
virtual ~L1ScalersClient()
Destructor.
unsigned long int l1AlgoScalerCounters_[140]
std::vector< int > algoSelected_
void analyze(const edm::Event &e, const edm::EventSetup &c)
L1ScalersClient(const edm::ParameterSet &ps)
Constructors.
MonitorElement * l1TechTrigCurrentRatePerAlgo_[80]
void beginJob(void)
BeginJob.
std::string folderName_
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
MonitorElement * l1AlgoCurrentRatePerAlgo_[140]
MonitorElement * l1AlgoCurrentRate_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
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
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:43
MonitorElement * selected_
MonitorElement * l1TechTrigCurrentRate_