CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZDCMonitorClient.h
Go to the documentation of this file.
1 #ifndef ZDCMonitorClient_H
2 #define ZDCMonitorClient_H
3 
4 // Update on September 21, 2012 to match HcalMonitorClient
10 
14 
15 class DQMStore;
16 //class TH2F;
17 //class TH1F;
18 //class TFile;
19 
21 
22 public:
23 
25  //ZDCMonitorClient();
26  ZDCMonitorClient(std::string myname, const edm::ParameterSet& ps);
27 
29  virtual ~ZDCMonitorClient();
30 
32  void analyze(void);
33  /* void analyze(int LS=-1); */
34  void analyze(const edm::Event& evt, const edm::EventSetup& es);
35 
37  void beginJob();
38 
40  void endJob(void);
41 
43  void beginRun();
44  void beginRun(const edm::Run& r, const edm::EventSetup & c);
45 
47  void endRun();
48  void endRun(const edm::Run & r, const edm::EventSetup & c);
49 
52 
54  void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
55 
57  void reset(void);
58 
60  void setup(void);
61 
63  void cleanup(void);
64 
66  void softReset(bool flag);
67 
68  // Write channelStatus info
69  void writeChannelStatus();
70 
71  // Write html output
72  void writeHtml();
73 
74  private:
75 
76  int ievt_; // all events
77  int jevt_; // events in current run
78  int run_;
79  int evt_;
80  bool begin_run_;
81  bool end_run_;
82 
90 
91  // parameter set inputs
92 
93  std::vector<double> ZDCGoodLumi_;
94 
95  int debug_;
96  std::string inputFile_;
97  bool mergeRuns_;
98  bool cloneME_;
100  std::string prefixME_;
102  std::vector<std::string > enabledClients_;
103 
104  int updateTime_; // update time for updating histograms
105  std::string baseHtmlDir_;
106  int htmlUpdateTime_; //update time for updating histograms
107  std::string databasedir_;
108  int databaseUpdateTime_; //update time for dumping db info (offset by 10 minutes, so that always dump after 10 minutes)
109  int databaseFirstUpdate_; // first update time (in minutes)
110  int htmlFirstUpdate_; // first update for html
111 
113 
114  bool saveByLumiSection_; //produces separate LS certification values when enabled
115  bool Online_; // fix to April 2011 problem where online DQM client crashes in endJob. Is endRun perhaps not called?
116  std::string subdir_;
117 
118  // time parameters
123 
124  std::vector<HcalBaseDQClient*> clients_;
125 
128 
130 
138 
140 };
141 
142 #endif
long int flag
Definition: mlp_lapack.h:47
void endRun()
EndRun.
std::string inputFile_
void endJob(void)
EndJob.
void writeChannelStatus()
ZDCMonitorClient(std::string myname, const edm::ParameterSet &ps)
Constructors.
MonitorElement * ZDCColdChannelFraction_
const edm::EventSetup * c
MonitorElement * ZDCReportSummary_
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
BeginLumiBlock.
void cleanup(void)
Cleanup.
MonitorElement * ZDCHotChannelFraction_
HcalSummaryClient * summaryClient_
std::vector< HcalBaseDQClient * > clients_
HcalChannelQuality * chanquality_
std::string prefixME_
void setup(void)
Setup.
std::vector< std::string > enabledClients_
MonitorElement * ZDCChannelSummary_
void analyze(void)
Analyze.
void beginJob()
BeginJob.
MonitorElement * ZDCDigiErrorFraction_
std::string databasedir_
virtual ~ZDCMonitorClient()
Destructor.
std::string baseHtmlDir_
void reset(void)
Reset.
void beginRun()
BeginRun.
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
std::vector< double > ZDCGoodLumi_
void softReset(bool flag)
SoftReset.
MonitorElement * ZDCDeadChannelFraction_
Definition: Run.h:33