CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalBaseDQClient.h
Go to the documentation of this file.
1 #ifndef HcalBaseDQClient_GUARD_H
2 #define HcalBaseDQClient_GUARD_H
3 
4 #include <string>
12 
13 class HcalLogicalMap;
14 
15 /*
16  * \file HcalBaseDQClient.h
17  *
18  * \author J. Temple
19  * \brief Hcal Monitor Client base class
20  * based on code in EcalBarrelMonitorClient/interface/EBClient.h
21  */
22 
23 
25 {
26  public:
29  virtual ~HcalBaseDQClient(void);
30 
31  // Overload these functions with client-specific instructions
32  virtual void beginRun(void) {}
33  virtual void setup(void) {}
34 
35  virtual void analyze(DQMStore::IBooker &, DQMStore::IGetter &) {enoughevents_=true;} // fill new histograms
36  virtual void calculateProblems(void) {} // update/fill ProblemCell histograms
37 
38  //virtual void endRun(void) {}
39  virtual void endJob(void) {}
40  virtual void cleanup(void) {}
41 
42  virtual bool hasErrors_Temp(void) {return false;};
43  virtual bool hasWarnings_Temp(void) {return false;};
44  virtual bool hasOther_Temp(void) {return false;};
45  virtual bool test_enabled(void) {return false;};
46 
47  virtual void htmlOutput(DQMStore::IBooker &, DQMStore::IGetter &, std::string htmlDir);
48  virtual void setStatusMap(std::map<HcalDetId, unsigned int>& map);
49  virtual void updateChannelStatus(std::map<HcalDetId, unsigned int>& myqual){};
50 
52 
53  void getLogicalMap(const edm::EventSetup& es);
54 
55  inline void setEventSetup(const edm::EventSetup& es)
56  { c = &(es); }
58 
59  inline void setTopo(const HcalTopology* topo) { topo_ = topo;}
61 
62  std::string name(){return name_;};
63  // make these private, with public accessors, at some point?
67  bool cloneME_;
69  int debug_;
72 
73  bool Online_; // fix to problem of April 2011, in which online DQM crashes in endJob
74 
76  int minevents_; // minimum number of events for test to pass
77  double minerrorrate_;
78 
81 
82  std::vector<std::string> problemnames_;
83 
84  std::map<HcalDetId, unsigned int> badstatusmap;
86 
89 
90 }; // class HcalBaseDQClient
91 
92 
93 
94 #endif
MonitorElement * ProblemCells
std::string name()
virtual void cleanup(void)
void setTopo(const HcalTopology *topo)
virtual bool hasWarnings_Temp(void)
const edm::EventSetup * c
virtual void htmlOutput(DQMStore::IBooker &, DQMStore::IGetter &, std::string htmlDir)
const HcalTopology * topo_
virtual bool validHtmlOutput(DQMStore::IBooker &, DQMStore::IGetter &)
virtual void setup(void)
virtual void analyze(DQMStore::IBooker &, DQMStore::IGetter &)
virtual void endJob(void)
virtual bool hasOther_Temp(void)
std::vector< std::string > problemnames_
EtaPhiHists * ProblemCellsByDepth
virtual bool hasErrors_Temp(void)
virtual void calculateProblems(void)
virtual void setStatusMap(std::map< HcalDetId, unsigned int > &map)
void setEventSetup(const edm::EventSetup &es)
virtual bool test_enabled(void)
std::string subdir_
std::map< HcalDetId, unsigned int > badstatusmap
virtual ~HcalBaseDQClient(void)
virtual void updateChannelStatus(std::map< HcalDetId, unsigned int > &myqual)
std::string prefixME_
HcalLogicalMap * logicalMap_
virtual void beginRun(void)
void getLogicalMap(const edm::EventSetup &es)