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 // $Id: L1Scalers.h,v 1.14 2010/05/28 14:16:55 wteo Exp $
5 
8 
10 
13 
14 #define MAX_LUMI_SEG 2000
15 #define MAX_LUMI_BIN 400
16 
18 {
19 public:
21  L1Scalers(const edm::ParameterSet& ps);
22 
24  virtual ~L1Scalers() {};
25 
27  void beginJob(void);
28 
29  // Endjob
30  void endJob(void);
31 
33  void beginRun(const edm::Run& run, const edm::EventSetup& c);
34 
36  void endRun(const edm::Run& run, const edm::EventSetup& c);
37 
38 
39 
42  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
43  const edm::EventSetup& c);
44 
45  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
46 
47 
48 private:
50  int nev_; // Number of events processed
51 
52  bool verbose_;
54 
56  unsigned int denomBit_;
57  bool tfIsTech_;
58  unsigned int tfBit_;
59  std::vector<unsigned int> algoSelected_;
60  std::vector<unsigned int> techSelected_;
61 
62  std::string folderName_; // dqm folder name
67 
68 
69  // 2d versions
72 // MonitorElement *pixFedSizeBx_;
73 // MonitorElement *hfEnergyMaxTowerBx_;
74 
75  // Int
77  MonitorElement *l1AlgoCounter_; //for total Algo Rate
78  MonitorElement *l1TtCounter_; //for total TT Rate
79 
80  //timing plots
81  std::vector<MonitorElement* > algoBxDiff_;
82  std::vector<MonitorElement* > techBxDiff_;
83  std::vector<MonitorElement* > algoBxDiffLumi_;
84  std::vector<MonitorElement* > techBxDiffLumi_;
93 
94  // Hacks for early running
95 // MonitorElement *pixFedSize_;
96 // MonitorElement *hfEnergy_;
97  // steal from HLTrigger/special
98  unsigned int threshold_;
99  unsigned int fedStart_, fedStop_ ;
100  //total Rates
101  unsigned int rateAlgoCounter_; //for total Algo Rate
102  unsigned int rateTtCounter_; //for total TT Rate
103 
104 
106 
107  std::vector<int> maskedList_;
109  // END HACK
110 
112  std::vector<int> earliestTech_;
113  std::vector<int> earliestAlgo_;
114 
115 };
116 
117 #endif // L1Scalers_H
bool tfIsTech_
Definition: L1Scalers.h:57
MonitorElement * l1scalers_
Definition: L1Scalers.h:63
void endJob(void)
Definition: L1Scalers.cc:180
bool verbose_
Definition: L1Scalers.h:52
edm::InputTag l1GtDataSource_
Definition: L1Scalers.h:53
std::string folderName_
Definition: L1Scalers.h:62
unsigned int fedStop_
Definition: L1Scalers.h:99
MonitorElement * rpcfBxDiffLumi_
Definition: L1Scalers.h:92
edm::InputTag HcalRecHitCollection_
Definition: L1Scalers.h:108
L1Scalers(const edm::ParameterSet &ps)
Constructors.
Definition: L1Scalers.cc:43
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
Definition: L1Scalers.cc:497
edm::InputTag fedRawCollection_
Definition: L1Scalers.h:105
MonitorElement * rpcbBxDiffLumi_
Definition: L1Scalers.h:90
MonitorElement * dtBxDiffLumi_
Definition: L1Scalers.h:86
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Definition: L1Scalers.cc:483
std::vector< int > earliestTech_
Definition: L1Scalers.h:112
bool denomIsTech_
Definition: L1Scalers.h:55
virtual ~L1Scalers()
Destructor.
Definition: L1Scalers.h:24
std::vector< MonitorElement * > algoBxDiff_
Definition: L1Scalers.h:81
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1Scalers.cc:184
MonitorElement * cscBxDiff_
Definition: L1Scalers.h:87
MonitorElement * l1techScalers_
Definition: L1Scalers.h:64
unsigned int threshold_
Definition: L1Scalers.h:98
MonitorElement * l1scalersBx_
Definition: L1Scalers.h:70
int nev_
Definition: L1Scalers.h:50
unsigned int fedStart_
Definition: L1Scalers.h:99
MonitorElement * l1TtCounter_
Definition: L1Scalers.h:78
std::vector< MonitorElement * > techBxDiff_
Definition: L1Scalers.h:82
std::vector< MonitorElement * > techBxDiffLumi_
Definition: L1Scalers.h:84
DQMStore * dbe_
Definition: L1Scalers.h:49
std::vector< unsigned int > algoSelected_
Definition: L1Scalers.h:59
std::vector< int > maskedList_
Definition: L1Scalers.h:107
MonitorElement * l1Correlations_
Definition: L1Scalers.h:65
std::vector< unsigned int > techSelected_
Definition: L1Scalers.h:60
MonitorElement * rpcbBxDiff_
Definition: L1Scalers.h:89
MonitorElement * dtBxDiff_
Definition: L1Scalers.h:85
unsigned int rateAlgoCounter_
Definition: L1Scalers.h:101
std::vector< int > earliestAlgo_
Definition: L1Scalers.h:113
int earliestDenom_
Definition: L1Scalers.h:111
MonitorElement * nLumiBlock_
Definition: L1Scalers.h:76
void beginJob(void)
BeginJob.
Definition: L1Scalers.cc:82
unsigned int tfBit_
Definition: L1Scalers.h:58
MonitorElement * bxNum_
Definition: L1Scalers.h:66
MonitorElement * l1techScalersBx_
Definition: L1Scalers.h:71
std::vector< MonitorElement * > algoBxDiffLumi_
Definition: L1Scalers.h:83
MonitorElement * l1AlgoCounter_
Definition: L1Scalers.h:77
unsigned int denomBit_
Definition: L1Scalers.h:56
MonitorElement * rpcfBxDiff_
Definition: L1Scalers.h:91
Definition: Run.h:32
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: L1Scalers.cc:492
unsigned int rateTtCounter_
Definition: L1Scalers.h:102
MonitorElement * cscBxDiffLumi_
Definition: L1Scalers.h:88