CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalBaseDQMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_HCALMONITORTASKS_GUARD_HCALBASE_H
2 #define DQM_HCALMONITORTASKS_GUARD_HCALBASE_H
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
10 #include "FWCore/Framework/interface/ESHandle.h" // needed to grab objects
11 
15 
19 
21 
22 class HcalLogicalMap;
23 
25 {
26 
27 public:
28 
29  // Constructor
31  // Constructor with no arguments
33 
34  // Destructor
35  virtual ~HcalBaseDQMonitor();
36 
37 protected:
38 
39  // Analyze
40  virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
41 
42  void getLogicalMap(const edm::EventSetup& c);
43 
44  // BeginJob
45  virtual void beginJob();
46 
47  // BeginRun
48  virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
49 
50  // Begin LumiBlock
51  virtual void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
52  const edm::EventSetup& c) ;
53 
54  // End LumiBlock
55  virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
56  const edm::EventSetup& c);
57 
58  // EndJob
59  virtual void endJob(void);
60 
61  // EndRun
62  virtual void endRun(const edm::Run& run, const edm::EventSetup& c);
63 
64  // Reset
65  virtual void reset(void);
66 
67  // cleanup
68  virtual void cleanup(void);
69 
70  // setup
71  virtual void setup(void);
72 
73  // LumiOutOfOrder
74  bool LumiInOrder(int lumisec);
75 
77  {
78  hh.setup(dbe_, Name, Units);
79  return;
80  }
81 
82  // IsAllowedCalibType
83  bool IsAllowedCalibType();
85 
86  std::vector<int> AllowedCalibTypes_;
87  bool Online_;
88  bool mergeRuns_;
90  int debug_;
93 
94  int currentLS;
96  int ievt_;
97  int levt_; // number of events in current lumi block
98  int tevt_; // number of events overall
103 
107 
108  // check that each subdetector is present
110 
111  // Define problem-tracking monitor elements -- keep here, or in the client?
115  MonitorElement* ProblemsCurrentLB; // show problems just for this LB
116 
118  // Store known channels to be ignored during plots of problems vs LB
119  // store vector of vectors
120  // index 0 = HB, 1 = HE, 2 = HF, 3 HO (index = subdetector - 1)
121  std::map<unsigned int, int> KnownBadCells_;
122 
125 
127  private:
129 };// class HcalBaseDQMonitor : public edm::EDAnalyzer
130 
131 
132 #endif
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
bool LumiInOrder(int lumisec)
MonitorElement * ProblemsCurrentLB
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * ProblemsVsLB_HF
std::map< unsigned int, int > KnownBadCells_
std::vector< int > AllowedCalibTypes_
virtual void cleanup(void)
void setup(DQMStore *&m_dbe, std::string Name, std::string Units="")
virtual void endJob(void)
void getLogicalMap(const edm::EventSetup &c)
MonitorElement * meTevt_
virtual void beginJob()
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * meTevtHist_
MonitorElement * ProblemsVsLB_HBHEHF
virtual ~HcalBaseDQMonitor()
MonitorElement * ProblemsVsLB_HB
HcalLogicalMap * logicalMap_
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * meIevt_
virtual void reset(void)
MonitorElement * ProblemsVsLB_HE
virtual void endRun(const edm::Run &run, const edm::EventSetup &c)
void SetupEtaPhiHists(EtaPhiHists &hh, std::string Name, std::string Units)
MonitorElement * ProblemsVsLB_HO
volatile std::atomic< bool > shutdown_flag false
MonitorElement * ProblemsVsLB
virtual void setup(void)
MonitorElement * meLevt_
Definition: Run.h:41