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 
23 {
24 
25 public:
26 
27  // Constructor
29  // Constructor with no arguments
31 
32  // Destructor
34 
35 protected:
36 
37  // Analyze
38  virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
39 
40  // BeginJob
41  virtual void beginJob();
42 
43  // BeginRun
44  virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
45 
46  // Begin LumiBlock
47  virtual void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
48  const edm::EventSetup& c) ;
49 
50  // End LumiBlock
51  virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
52  const edm::EventSetup& c);
53 
54  // EndJob
55  virtual void endJob(void);
56 
57  // EndRun
58  virtual void endRun(const edm::Run& run, const edm::EventSetup& c);
59 
60  // Reset
61  virtual void reset(void);
62 
63  // cleanup
64  virtual void cleanup(void);
65 
66  // setup
67  virtual void setup(void);
68 
69  // LumiOutOfOrder
70  bool LumiInOrder(int lumisec);
71 
72  void SetupEtaPhiHists(EtaPhiHists & hh, std::string Name, std::string Units)
73  {
74  hh.setup(dbe_, Name, Units);
75  return;
76  }
77 
78  // IsAllowedCalibType
79  bool IsAllowedCalibType();
81 
82  std::vector<int> AllowedCalibTypes_;
83  bool Online_;
84  bool mergeRuns_;
86  int debug_;
87  std::string prefixME_;
88  std::string subdir_;
89 
90  int currentLS;
92  int ievt_;
93  int levt_; // number of events in current lumi block
94  int tevt_; // number of events overall
99 
103 
104  // check that each subdetector is present
106 
107  // Define problem-tracking monitor elements -- keep here, or in the client?
111  MonitorElement* ProblemsCurrentLB; // show problems just for this LB
112 
114  // Store known channels to be ignored during plots of problems vs LB
115  // store vector of vectors
116  // index 0 = HB, 1 = HE, 2 = HF, 3 HO (index = subdetector - 1)
117  std::map<unsigned int, int> KnownBadCells_;
118 
120 };// class HcalBaseDQMonitor : public edm::EDAnalyzer
121 
122 
123 #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)
MonitorElement * meTevt_
virtual void beginJob()
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * meTevtHist_
MonitorElement * ProblemsVsLB_HBHEHF
MonitorElement * ProblemsVsLB_HB
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
MonitorElement * ProblemsVsLB
virtual void setup(void)
MonitorElement * meLevt_
Definition: Run.h:32