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 
10 
13 
14 #define MAX_LUMI_SEG 2000
15 #define MAX_LUMI_BIN 400
16 
17 class L1Scalers : public DQMEDAnalyzer {
18  public:
19  L1Scalers(const edm::ParameterSet &ps);
20  virtual ~L1Scalers(){};
22  edm::EventSetup const &) override;
23  void analyze(const edm::Event &e, const edm::EventSetup &c);
25  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg,
26  const edm::EventSetup &c);
27 
28  private:
29  int nev_; // Number of events processed
30 
31  bool verbose_;
34 
36  unsigned int denomBit_;
37  bool tfIsTech_;
38  unsigned int tfBit_;
39  std::vector<unsigned int> algoSelected_;
40  std::vector<unsigned int> techSelected_;
41 
42  std::string folderName_; // dqm folder name
47 
48  // 2d versions
51 
52  // Int
54  MonitorElement *l1AlgoCounter_; // for total Algo Rate
55  MonitorElement *l1TtCounter_; // for total TT Rate
56 
57  // timing plots
58  std::vector<MonitorElement *> algoBxDiff_;
59  std::vector<MonitorElement *> techBxDiff_;
60  std::vector<MonitorElement *> algoBxDiffLumi_;
61  std::vector<MonitorElement *> techBxDiffLumi_;
70 
71  // steal from HLTrigger/special
72  unsigned int threshold_;
73  unsigned int fedStart_, fedStop_;
74  // total Rates
75  unsigned int rateAlgoCounter_; // for total Algo Rate
76  unsigned int rateTtCounter_; // for total TT Rate
77 
79 
80  std::vector<int> maskedList_;
82 
84  std::vector<int> earliestTech_;
85  std::vector<int> earliestAlgo_;
86 };
87 
88 #endif // L1Scalers_H
bool tfIsTech_
Definition: L1Scalers.h:37
MonitorElement * l1scalers_
Definition: L1Scalers.h:43
std::vector< MonitorElement * > techBxDiff_
Definition: L1Scalers.h:59
bool verbose_
Definition: L1Scalers.h:31
std::vector< MonitorElement * > algoBxDiffLumi_
Definition: L1Scalers.h:60
std::vector< MonitorElement * > algoBxDiff_
Definition: L1Scalers.h:58
std::string folderName_
Definition: L1Scalers.h:42
unsigned int fedStop_
Definition: L1Scalers.h:73
MonitorElement * rpcfBxDiffLumi_
Definition: L1Scalers.h:69
edm::InputTag HcalRecHitCollection_
Definition: L1Scalers.h:81
L1Scalers(const edm::ParameterSet &ps)
Definition: L1Scalers.cc:37
edm::InputTag fedRawCollection_
Definition: L1Scalers.h:78
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: L1Scalers.cc:74
MonitorElement * rpcbBxDiffLumi_
Definition: L1Scalers.h:67
MonitorElement * dtBxDiffLumi_
Definition: L1Scalers.h:63
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
DQM Client Diagnostic should be performed here:
Definition: L1Scalers.cc:383
std::vector< int > earliestTech_
Definition: L1Scalers.h:84
bool denomIsTech_
Definition: L1Scalers.h:35
virtual ~L1Scalers()
Definition: L1Scalers.h:20
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1Scalers.cc:160
MonitorElement * cscBxDiff_
Definition: L1Scalers.h:64
MonitorElement * l1techScalers_
Definition: L1Scalers.h:44
unsigned int threshold_
Definition: L1Scalers.h:72
MonitorElement * l1scalersBx_
Definition: L1Scalers.h:49
int nev_
Definition: L1Scalers.h:29
unsigned int fedStart_
Definition: L1Scalers.h:73
MonitorElement * l1TtCounter_
Definition: L1Scalers.h:55
std::vector< MonitorElement * > techBxDiffLumi_
Definition: L1Scalers.h:61
std::vector< unsigned int > algoSelected_
Definition: L1Scalers.h:39
std::vector< int > maskedList_
Definition: L1Scalers.h:80
MonitorElement * l1Correlations_
Definition: L1Scalers.h:45
std::vector< unsigned int > techSelected_
Definition: L1Scalers.h:40
MonitorElement * rpcbBxDiff_
Definition: L1Scalers.h:66
MonitorElement * dtBxDiff_
Definition: L1Scalers.h:62
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > l1GtDataSource_
Definition: L1Scalers.h:32
unsigned int rateAlgoCounter_
Definition: L1Scalers.h:75
std::vector< int > earliestAlgo_
Definition: L1Scalers.h:85
int earliestDenom_
Definition: L1Scalers.h:83
edm::EDGetTokenT< L1MuGMTReadoutCollection > l1GmtDataSource_
Definition: L1Scalers.h:33
MonitorElement * nLumiBlock_
Definition: L1Scalers.h:53
unsigned int tfBit_
Definition: L1Scalers.h:38
MonitorElement * bxNum_
Definition: L1Scalers.h:46
MonitorElement * l1techScalersBx_
Definition: L1Scalers.h:50
MonitorElement * l1AlgoCounter_
Definition: L1Scalers.h:54
unsigned int denomBit_
Definition: L1Scalers.h:36
MonitorElement * rpcfBxDiff_
Definition: L1Scalers.h:68
Definition: Run.h:43
unsigned int rateTtCounter_
Definition: L1Scalers.h:76
MonitorElement * cscBxDiffLumi_
Definition: L1Scalers.h:65