CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalMonitorClient.h
Go to the documentation of this file.
1 #ifndef HcalMonitorClient_GUARD_H
2 #define HcalMonitorClient_GUARD_H
3 
4 /*
5  * \file HcalMonitorClient.h
6  *
7  * \author J. Temple
8  *
9  */
10 
16 
19 
21 
22 class HcalChannelQuality;
23 class HcalSummaryClient;
24 
26 {
27 
28 public:
29 
30  // Constructor
32 
33  // Destructor
34  virtual ~HcalMonitorClient();
35 
37  void analyze(DQMStore::IBooker &ib, DQMStore::IGetter &, int LS=-1);
38  //void analyze(const edm::Event & e, const edm::EventSetup & c);
39 
42 
44  //void beginRun();
45  void beginRun(const edm::Run & r, const edm::EventSetup & c);
46 
49  void endRun(const edm::Run & r, const edm::EventSetup & c);
50 
51 
54 
56  void reset(void);
57 
59  void setup(void);
60 
62  void cleanup(void);
63 
65  void softReset(bool flag);
66 
67  // Write channelStatus info
68  void writeChannelStatus();
69 
70  // Write html output
72 
73  void PlotPedestalValues(const HcalDbService& cond);
74 
75 private:
76  // Event counters
77  int ievt_; // all events
78  int jevt_; // events in current run
80  int evt_;
81  bool begin_run_;
82  bool end_run_;
83 
84  // parameter set inputs
85  int debug_;
87  bool mergeRuns_;
88  bool cloneME_;
92  std::vector<std::string > enabledClients_;
93 
94  int updateTime_; // update time for updating histograms
96  int htmlUpdateTime_; //update time for updating histograms
98  int databaseUpdateTime_; //update time for dumping db info (offset by 10 minutes, so that always dump after 10 minutes)
99  int databaseFirstUpdate_; // first update time (in minutes)
100  int htmlFirstUpdate_; // first update for html
101 
103 
104  bool saveByLumiSection_; //produces separate LS certification values when enabled
105  bool Online_; // fix to April 2011 problem where online DQM client crashes in endJob. Is endRun perhaps not called?
106 
107  // time parameters
112 
113  std::vector<HcalBaseDQClient*> clients_;
114 
116 
123 
124  // --
126  // This function creates the EtaPhiHists for pedestal monitoring
127  // The doPedSetup_ flag is set to false during the execution of the function.
129 
131  // The setupChannelStatusMon function creates the EtaPhiHists to record ChannelStatus.
132  // It will be retrieved by the HcalSummaryClient in the analysis(LS) method.
133  // The doChanStatSetup_ flag is set to false during the xectuion of the function.
135 
136 };
137 
138 #endif
std::vector< std::string > enabledClients_
void setup(void)
Setup.
void cleanup(void)
Cleanup.
EtaPhiHists * fC_WidthFromDBByDepth
EtaPhiHists * ADC_PedestalFromDBByDepth
int ib
Definition: cuy.py:660
void reset(void)
Reset.
void setupPedestalMon(DQMStore::IBooker &)
void PlotPedestalValues(const HcalDbService &cond)
std::string databasedir_
EtaPhiHists * fC_PedestalFromDBByDepth
void softReset(bool flag)
SoftReset.
EtaPhiHists * ADC_WidthFromDBByDepth
void setupChannelStatusMon(DQMStore::IBooker &)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
EndJob.
std::string baseHtmlDir_
HcalMonitorClient(const edm::ParameterSet &ps)
std::string inputFile_
void analyze(DQMStore::IBooker &ib, DQMStore::IGetter &, int LS=-1)
Analyze.
HcalSummaryClient * summaryClient_
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
std::vector< HcalBaseDQClient * > clients_
EtaPhiHists * ChannelStatus
void writeHtml(DQMStore::IBooker &, DQMStore::IGetter &)
const HcalChannelQuality * chanquality_
edm::RunNumber_t run_
unsigned int RunNumber_t
void endRun(DQMStore::IBooker &, DQMStore::IGetter &)
EndRun.
Definition: Run.h:41