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  * $Date: 2012/11/12 23:26:18 $
18  * $Revision: 1.9 $
19  * \author J. Temple
20  * \brief Hcal Monitor Client base class
21  * based on code in EcalBarrelMonitorClient/interface/EBClient.h
22  */
23 
24 
26 {
27  public:
30  virtual ~HcalBaseDQClient(void);
31 
32  // Overload these functions with client-specific instructions
33  virtual void beginJob(void);
34  virtual void beginRun(void) {}
35  virtual void setup(void) {}
36 
37  virtual void analyze(void) {enoughevents_=true;} // fill new histograms
38  virtual void calculateProblems(void) {} // update/fill ProblemCell histograms
39 
40  virtual void endRun(void) {}
41  virtual void endJob(void) {}
42  virtual void cleanup(void) {}
43 
44  virtual bool hasErrors_Temp(void) {return false;};
45  virtual bool hasWarnings_Temp(void) {return false;};
46  virtual bool hasOther_Temp(void) {return false;};
47  virtual bool test_enabled(void) {return false;};
48 
49  virtual void htmlOutput(std::string htmlDir);
50  virtual void setStatusMap(std::map<HcalDetId, unsigned int>& map);
51  virtual void updateChannelStatus(std::map<HcalDetId, unsigned int>& myqual){};
52 
53  virtual bool validHtmlOutput();
54 
55  void getLogicalMap(const edm::EventSetup& es);
56 
57  inline void setEventSetup(const edm::EventSetup& es)
58  { c = &(es); }
60  std::string name(){return name_;};
61  // make these private, with public accessors, at some point?
65  bool cloneME_;
67  int debug_;
70 
71  bool Online_; // fix to problem of April 2011, in which online DQM crashes in endJob
72 
74  int minevents_; // minimum number of events for test to pass
75  double minerrorrate_;
76 
79 
80  std::vector<std::string> problemnames_;
81 
82  std::map<HcalDetId, unsigned int> badstatusmap;
85 
88 
89 }; // class HcalBaseDQClient
90 
91 
92 
93 #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)
dictionary map
Definition: Association.py:205
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)