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>
11 
12 class HcalLogicalMap;
13 
14 /*
15  * \file HcalBaseDQClient.h
16  *
17  * \author J. Temple
18  * \brief Hcal Monitor Client base class
19  * based on code in EcalBarrelMonitorClient/interface/EBClient.h
20  */
21 
22 
24 {
25  public:
28  virtual ~HcalBaseDQClient(void);
29 
30  // Overload these functions with client-specific instructions
31  virtual void beginRun(void) {}
32  virtual void setup(void) {}
33 
34  virtual void analyze(DQMStore::IBooker &, DQMStore::IGetter &) {enoughevents_=true;} // fill new histograms
35  virtual void calculateProblems(void) {} // update/fill ProblemCell histograms
36 
37  //virtual void endRun(void) {}
38  virtual void endJob(void) {}
39  virtual void cleanup(void) {}
40 
41  virtual bool hasErrors_Temp(void) {return false;};
42  virtual bool hasWarnings_Temp(void) {return false;};
43  virtual bool hasOther_Temp(void) {return false;};
44  virtual bool test_enabled(void) {return false;};
45 
46  virtual void htmlOutput(DQMStore::IBooker &, DQMStore::IGetter &, std::string htmlDir);
47  virtual void setStatusMap(std::map<HcalDetId, unsigned int>& map);
48  virtual void updateChannelStatus(std::map<HcalDetId, unsigned int>& myqual){};
49 
51 
52  void getLogicalMap(const edm::EventSetup& es);
53 
54  inline void setEventSetup(const edm::EventSetup& es)
55  { c = &(es); }
57  std::string name(){return name_;};
58  // make these private, with public accessors, at some point?
62  bool cloneME_;
64  int debug_;
67 
68  bool Online_; // fix to problem of April 2011, in which online DQM crashes in endJob
69 
71  int minevents_; // minimum number of events for test to pass
72  double minerrorrate_;
73 
76 
77  std::vector<std::string> problemnames_;
78 
79  std::map<HcalDetId, unsigned int> badstatusmap;
81 
84 
85 }; // class HcalBaseDQClient
86 
87 
88 
89 #endif
MonitorElement * ProblemCells
std::string name()
virtual void cleanup(void)
virtual bool hasWarnings_Temp(void)
const edm::EventSetup * c
virtual void htmlOutput(DQMStore::IBooker &, DQMStore::IGetter &, std::string htmlDir)
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)