CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TTestsSummary.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITORCLIENT_L1TOCCUPANCYCLIENT_H
2 #define DQM_L1TMONITORCLIENT_L1TOCCUPANCYCLIENT_H
3 
9 
13 
14 #include <memory>
15 #include <iostream>
16 #include <fstream>
17 #include <string>
18 #include <vector>
19 #include <map>
20 #include <TH1F.h>
21 #include <TH1D.h>
22 #include <TH2F.h>
23 #include <TF1.h>
24 #include <TProfile2D.h>
25 
27 
28  public:
29 
30  // Constructor
32 
33  // Destructor
34  virtual ~L1TTestsSummary();
35 
36  protected:
37 
38  // Job methods
39  void beginJob(void);
40  void endJob();
41 
42  // Run methods
43  void beginRun(const edm::Run& r, const edm::EventSetup& c);
44  void endRun(const edm::Run& r, const edm::EventSetup& c);
45 
46  // Luminosity Block methods
47  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,const edm::EventSetup& context);
48  void endLuminosityBlock (const edm::LuminosityBlock& lumiSeg,const edm::EventSetup& c); // DQM Client Diagnostic
49 
50  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
51 
52  private:
53 
54  DQMStore* mDBE; //store service
55  edm::ParameterSet mParameters; //parameter set from python
56 
57  // bool
58  bool mVerbose; // verbose mode
59  bool mMonitorL1TRate; // If we are going to monitor the L1TRate Module
60  bool mMonitorL1TSync; // If we are going to monitor the L1TSync Module
61  bool mMonitorL1TOccupancy; // If we are going to monitor the L1TOccupancy Module
62 
63  // int
64  int binYRate,binYSync,binYOccpancy; // What bin in Y corresponds to which test in L1TSummary
65 
66  // string
67  std::string mL1TRatePath; // Path to histograms produced by L1TRate Module
68  std::string mL1TSyncPath; // Path to histograms produced by L1TSync Module
69  std::string mL1TOccupancyPath; // Path to histograms produced by L1TOccupancy Module
70 
71  // vector
72  std::vector<int> mProcessedLS; // Already processed Luminosity Blocks
73 
74  // MonitorElement
79 
80  // Private Functions
81  private:
82 
83  void updateL1TRateMonitor();
84  void updateL1TSyncMonitor();
86  void updateL1TSummary();
87 };
88 
89 #endif
MonitorElement * mL1TOccupancyMonitor
void beginRun(const edm::Run &r, const edm::EventSetup &c)
void beginJob(void)
std::vector< int > mProcessedLS
MonitorElement * mL1TSummary
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * mL1TSyncMonitor
MonitorElement * mL1TRateMonitor
std::string mL1TRatePath
void endRun(const edm::Run &r, const edm::EventSetup &c)
std::string mL1TSyncPath
std::string mL1TOccupancyPath
L1TTestsSummary(const edm::ParameterSet &ps)
virtual ~L1TTestsSummary()
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
void updateL1TOccupancyMonitor()
edm::ParameterSet mParameters
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Definition: Run.h:41