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 
10 
12 
14 
16 
17 class DQMStore;
18 class TH2F;
19 class TH1F;
20 class TFile;
21 
23 
24 public:
25 
29 
32 
33  // Initialize
34  void initialize(const edm::ParameterSet& ps);
35  void offlineSetup();
36 
38  void analyze(void);
39  void analyze(const edm::Event& evt, const edm::EventSetup& es);
40 
42  void beginJob();
44  void beginRun(const edm::Run& r, const edm::EventSetup & c);
47 
49  void endJob(void);
51  void endRun(const edm::Run & r, const edm::EventSetup & c);
53  void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
54 
56  void htmlOutput(void);
57 
59  void report(bool update);
60 
62  void errorSummary();
63 
65  void createTests(void);
66 
68  void resetAllME(void);
69 
70  //Offline output functions
71  void loadHistograms(TFile* infile, const char* fname);
72  void dumpHistograms(int& runNum, std::vector<TH1F*> &hist1d, std::vector<TH2F*> &hist2d);
73 
75  bool prescale();
76 
77  private:
78  void removeAllME(void);
79  void writeDBfile();
80  /********************************************************/
81  // The following member variables can be specified in //
82  // the configuration input file for the process. //
83  /********************************************************/
84 
92 
96 
98  int debug_ ;
99 
100  // Timing diagnostic switch
101  bool showTiming_; // controls whether to show timing diagnostic info
103 
105  //int nevt_; // counts number of events actually analyzed by ZDCMonitorClient
107  bool saved_;
108  bool Online_;
109 
110  struct{
111  timeval startTV,updateTV;
112  double startTime;
113  double elapsedTime;
114  double updateTime;
115  } psTime_;
116 
119 
120  // environment variables
123  int itime_;
126 
127  time_t mytime_;
128 
130 
131  int ievt_; // counts number of events read by client (and analyzed by tasks)
133  int resetLS_;
134 
137 
140 
141 };
142 
143 #endif
bool prescale()
Boolean prescale test for this event.
std::string inputFile_
void endJob(void)
EndJob.
struct ZDCMonitorClient::@278 psTime_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
unsigned long long EventNumber_t
int prescaleLS_
units of events
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
BeginLumiBlock.
int prescaleUpdate_
units of minutes
int debug_
Verbosity switch used for debugging or informational output.
std::string rootFolder_
void errorSummary()
Generate error summary.
void dumpHistograms(int &runNum, std::vector< TH1F * > &hist1d, std::vector< TH2F * > &hist2d)
void initialize(const edm::ParameterSet &ps)
DQMStore * dbe_
Connection to the DQM backend.
void analyze(void)
Analyze.
void beginJob()
BeginJob.
void report(bool update)
Create reports.
void resetAllME(void)
reset all monitor elements
~ZDCMonitorClient()
Destructor.
std::string baseHtmlDir_
void createTests(void)
Create tests.
int nlumisecs_
counters and flags
int prescaleTime_
units of lumi sections
string fname
main script
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
#define update(a, b)
edm::EventNumber_t ievent_
std::string monitorName_
units of &quot;updates&quot;, TBD
ZDCMonitorClient()
Constructors.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
unsigned int RunNumber_t
void htmlOutput(void)
HtmlOutput.
edm::CPUTimer cpu_timer
Definition: Run.h:41
edm::RunNumber_t irun_
void loadHistograms(TFile *infile, const char *fname)