CMS 3D CMS Logo

L1TTestsSummary.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITORCLIENT_L1TOCCUPANCYCLIENT_H
2 #define DQM_L1TMONITORCLIENT_L1TOCCUPANCYCLIENT_H
3 
8 
12 
13 #include <memory>
14 #include <iostream>
15 #include <fstream>
16 #include <string>
17 #include <vector>
18 #include <map>
19 #include <TH1F.h>
20 #include <TH1D.h>
21 #include <TH2F.h>
22 #include <TF1.h>
23 #include <TProfile2D.h>
24 
26 public:
27  // Constructor
29 
30  // Destructor
31  ~L1TTestsSummary() override;
32 
33 protected:
35  DQMStore::IGetter &igetter,
36  const edm::LuminosityBlock &lumiSeg,
37  const edm::EventSetup &c) override; // DQM Client Diagnostic
38 
39  void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override;
40  virtual void book(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter);
41 
42 private:
43  edm::ParameterSet mParameters; //parameter set from python
44 
45  // bool
46  bool mVerbose; // verbose mode
47  bool mMonitorL1TRate; // If we are going to monitor the L1TRate Module
48  bool mMonitorL1TSync; // If we are going to monitor the L1TSync Module
49  bool mMonitorL1TOccupancy; // If we are going to monitor the L1TOccupancy Module
50 
51  // int
52  int binYRate, binYSync, binYOccpancy; // What bin in Y corresponds to which test in L1TSummary
53 
54  // string
55  std::string mL1TRatePath; // Path to histograms produced by L1TRate Module
56  std::string mL1TSyncPath; // Path to histograms produced by L1TSync Module
57  std::string mL1TOccupancyPath; // Path to histograms produced by L1TOccupancy Module
58 
59  // vector
60  std::vector<int> mProcessedLS; // Already processed Luminosity Blocks
61 
62  // MonitorElement
67 
68  // Private Functions
69 private:
73  void updateL1TSummary(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter);
74 };
75 
76 #endif
void updateL1TRateMonitor(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
MonitorElement * mL1TOccupancyMonitor
~L1TTestsSummary() override
void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
void updateL1TSummary(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
virtual void book(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void updateL1TOccupancyMonitor(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
std::vector< int > mProcessedLS
MonitorElement * mL1TSummary
MonitorElement * mL1TSyncMonitor
void updateL1TSyncMonitor(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void dqmEndLuminosityBlock(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
MonitorElement * mL1TRateMonitor
std::string mL1TRatePath
std::string mL1TSyncPath
std::string mL1TOccupancyPath
L1TTestsSummary(const edm::ParameterSet &ps)
edm::ParameterSet mParameters