CMS 3D CMS Logo

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