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 /*
13  * \file HcalBaseDQClient.h
14  *
15  * $Date: 2010/11/17 19:17:36 $
16  * $Revision: 1.5 $
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:
27  HcalBaseDQClient(std::string s, const edm::ParameterSet& ps);
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  inline void setEventSetup(const edm::EventSetup& es)
54  { c = &(es); }
56  std::string name(){return name_;};
57  // make these private, with public accessors, at some point?
58  std::string name_;
59  std::string prefixME_;
60  std::string subdir_;
61  bool cloneME_;
63  int debug_;
66 
67  bool Online_; // fix to problem of April 2011, in which online DQM crashes in endJob
68 
70  int minevents_; // minimum number of events for test to pass
71  double minerrorrate_;
72 
75 
76  std::vector<std::string> problemnames_;
77 
78  std::map<HcalDetId, unsigned int> badstatusmap;
81 }; // class HcalBaseDQClient
82 
83 
84 
85 #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 void updateChannelStatus(std::map< HcalDetId, unsigned int > &myqual)
std::string prefixME_
virtual void beginRun(void)
string s
Definition: asciidump.py:422
virtual void analyze(void)
DQMStore * dqmStore_