test
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 beginJob(void);
32  virtual void beginRun(void) {}
33  virtual void setup(void) {}
34 
35  virtual void analyze(void) {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(std::string htmlDir);
48  virtual void setStatusMap(std::map<HcalDetId, unsigned int>& map);
49  virtual void updateChannelStatus(std::map<HcalDetId, unsigned int>& myqual){};
50 
51  virtual bool validHtmlOutput();
52 
53  void getLogicalMap(const edm::EventSetup& es);
54 
55  inline void setEventSetup(const edm::EventSetup& es)
56  { c = &(es); }
58  std::string name(){return name_;};
59  // make these private, with public accessors, at some point?
63  bool cloneME_;
65  int debug_;
68 
69  bool Online_; // fix to problem of April 2011, in which online DQM crashes in endJob
70 
72  int minevents_; // minimum number of events for test to pass
73  double minerrorrate_;
74 
77 
78  std::vector<std::string> problemnames_;
79 
80  std::map<HcalDetId, unsigned int> badstatusmap;
83 
86 
87 }; // class HcalBaseDQClient
88 
89 
90 
91 #endif
virtual void beginJob(void)
MonitorElement * ProblemCells
std::string name()
virtual void endRun(void)
virtual void cleanup(void)
virtual bool hasWarnings_Temp(void)
const edm::EventSetup * c
virtual void setup(void)
virtual void endJob(void)
virtual bool hasOther_Temp(void)
std::vector< std::string > problemnames_
EtaPhiHists * ProblemCellsByDepth
virtual bool hasErrors_Temp(void)
virtual bool validHtmlOutput()
virtual void calculateProblems(void)
virtual void setStatusMap(std::map< HcalDetId, unsigned int > &map)
void setEventSetup(const edm::EventSetup &es)
virtual bool test_enabled(void)
virtual void htmlOutput(std::string htmlDir)
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)
virtual void analyze(void)
DQMStore * dqmStore_
void getLogicalMap(const edm::EventSetup &es)