test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1Scalers.h
Go to the documentation of this file.
1 // -*-c++-*-
2 #ifndef L1Scalers_H
3 #define L1Scalers_H
4 
7 
9 
12 
13 #define MAX_LUMI_SEG 2000
14 #define MAX_LUMI_BIN 400
15 
17 {
18 public:
20  L1Scalers(const edm::ParameterSet& ps);
21 
23  virtual ~L1Scalers() {};
24 
26  void beginJob(void);
27 
28  // Endjob
29  void endJob(void);
30 
32  void beginRun(const edm::Run& run, const edm::EventSetup& c);
33 
35  void endRun(const edm::Run& run, const edm::EventSetup& c);
36 
37 
38 
41  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
42  const edm::EventSetup& c);
43 
44  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
45 
46 
47 private:
49  int nev_; // Number of events processed
50 
51  bool verbose_;
53 
55  unsigned int denomBit_;
56  bool tfIsTech_;
57  unsigned int tfBit_;
58  std::vector<unsigned int> algoSelected_;
59  std::vector<unsigned int> techSelected_;
60 
61  std::string folderName_; // dqm folder name
66 
67 
68  // 2d versions
71 // MonitorElement *pixFedSizeBx_;
72 // MonitorElement *hfEnergyMaxTowerBx_;
73 
74  // Int
76  MonitorElement *l1AlgoCounter_; //for total Algo Rate
77  MonitorElement *l1TtCounter_; //for total TT Rate
78 
79  //timing plots
80  std::vector<MonitorElement* > algoBxDiff_;
81  std::vector<MonitorElement* > techBxDiff_;
82  std::vector<MonitorElement* > algoBxDiffLumi_;
83  std::vector<MonitorElement* > techBxDiffLumi_;
92 
93  // Hacks for early running
94 // MonitorElement *pixFedSize_;
95 // MonitorElement *hfEnergy_;
96  // steal from HLTrigger/special
97  unsigned int threshold_;
98  unsigned int fedStart_, fedStop_ ;
99  //total Rates
100  unsigned int rateAlgoCounter_; //for total Algo Rate
101  unsigned int rateTtCounter_; //for total TT Rate
102 
103 
105 
106  std::vector<int> maskedList_;
108  // END HACK
109 
111  std::vector<int> earliestTech_;
112  std::vector<int> earliestAlgo_;
113 
114 };
115 
116 #endif // L1Scalers_H
bool tfIsTech_
Definition: L1Scalers.h:56
MonitorElement * l1scalers_
Definition: L1Scalers.h:62
void endJob(void)
Definition: L1Scalers.cc:179
bool verbose_
Definition: L1Scalers.h:51
edm::InputTag l1GtDataSource_
Definition: L1Scalers.h:52
std::string folderName_
Definition: L1Scalers.h:61
unsigned int fedStop_
Definition: L1Scalers.h:98
MonitorElement * rpcfBxDiffLumi_
Definition: L1Scalers.h:91
edm::InputTag HcalRecHitCollection_
Definition: L1Scalers.h:107
L1Scalers(const edm::ParameterSet &ps)
Constructors.
Definition: L1Scalers.cc:42
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
Definition: L1Scalers.cc:445
edm::InputTag fedRawCollection_
Definition: L1Scalers.h:104
MonitorElement * rpcbBxDiffLumi_
Definition: L1Scalers.h:89
MonitorElement * dtBxDiffLumi_
Definition: L1Scalers.h:85
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Definition: L1Scalers.cc:431
std::vector< int > earliestTech_
Definition: L1Scalers.h:111
bool denomIsTech_
Definition: L1Scalers.h:54
virtual ~L1Scalers()
Destructor.
Definition: L1Scalers.h:23
std::vector< MonitorElement * > algoBxDiff_
Definition: L1Scalers.h:80
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1Scalers.cc:183
MonitorElement * cscBxDiff_
Definition: L1Scalers.h:86
MonitorElement * l1techScalers_
Definition: L1Scalers.h:63
unsigned int threshold_
Definition: L1Scalers.h:97
MonitorElement * l1scalersBx_
Definition: L1Scalers.h:69
int nev_
Definition: L1Scalers.h:49
unsigned int fedStart_
Definition: L1Scalers.h:98
MonitorElement * l1TtCounter_
Definition: L1Scalers.h:77
std::vector< MonitorElement * > techBxDiff_
Definition: L1Scalers.h:81
std::vector< MonitorElement * > techBxDiffLumi_
Definition: L1Scalers.h:83
DQMStore * dbe_
Definition: L1Scalers.h:48
std::vector< unsigned int > algoSelected_
Definition: L1Scalers.h:58
std::vector< int > maskedList_
Definition: L1Scalers.h:106
MonitorElement * l1Correlations_
Definition: L1Scalers.h:64
std::vector< unsigned int > techSelected_
Definition: L1Scalers.h:59
MonitorElement * rpcbBxDiff_
Definition: L1Scalers.h:88
MonitorElement * dtBxDiff_
Definition: L1Scalers.h:84
unsigned int rateAlgoCounter_
Definition: L1Scalers.h:100
std::vector< int > earliestAlgo_
Definition: L1Scalers.h:112
int earliestDenom_
Definition: L1Scalers.h:110
MonitorElement * nLumiBlock_
Definition: L1Scalers.h:75
void beginJob(void)
BeginJob.
Definition: L1Scalers.cc:81
unsigned int tfBit_
Definition: L1Scalers.h:57
MonitorElement * bxNum_
Definition: L1Scalers.h:65
MonitorElement * l1techScalersBx_
Definition: L1Scalers.h:70
std::vector< MonitorElement * > algoBxDiffLumi_
Definition: L1Scalers.h:82
MonitorElement * l1AlgoCounter_
Definition: L1Scalers.h:76
unsigned int denomBit_
Definition: L1Scalers.h:55
MonitorElement * rpcfBxDiff_
Definition: L1Scalers.h:90
Definition: Run.h:41
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: L1Scalers.cc:440
unsigned int rateTtCounter_
Definition: L1Scalers.h:101
MonitorElement * cscBxDiffLumi_
Definition: L1Scalers.h:87