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 
13 class DQMStore;
14 class TH2F;
15 class TH1F;
16 class TFile;
17 
19 
20 public:
21 
25 
28 
29  // Initialize
30  void initialize(const edm::ParameterSet& ps);
31  void offlineSetup();
32 
34  void analyze(void);
35  void analyze(const edm::Event& evt, const edm::EventSetup& es);
36 
38  void beginJob();
40  void beginRun(const edm::Run& r, const edm::EventSetup & c);
43 
45  void endJob(void);
47  void endRun(const edm::Run & r, const edm::EventSetup & c);
49  void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
50 
52  void htmlOutput(void);
53 
55  void report(bool update);
56 
58  void errorSummary();
59 
61  void createTests(void);
62 
64  void resetAllME(void);
65 
66  //Offline output functions
67  void loadHistograms(TFile* infile, const char* fname);
68  void dumpHistograms(int& runNum, std::vector<TH1F*> &hist1d, std::vector<TH2F*> &hist2d);
69 
71  bool prescale();
72 
73  private:
74  void removeAllME(void);
75  void writeDBfile();
76  /********************************************************/
77  // The following member variables can be specified in //
78  // the configuration input file for the process. //
79  /********************************************************/
80 
88 
92 
94  int debug_ ;
95 
96  // Timing diagnostic switch
97  bool showTiming_; // controls whether to show timing diagnostic info
99 
101  //int nevt_; // counts number of events actually analyzed by ZDCMonitorClient
103  bool saved_;
104  bool Online_;
105 
106  struct{
107  timeval startTV,updateTV;
108  double startTime;
109  double elapsedTime;
110  double updateTime;
111  } psTime_;
112 
115 
116  // environment variables
120 
121  time_t mytime_;
122 
124 
125  int ievt_; // counts number of events read by client (and analyzed by tasks)
127  int resetLS_;
128 
131 
134 
135 };
136 
137 #endif
bool prescale()
Boolean prescale test for this event.
std::string inputFile_
void endJob(void)
EndJob.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
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)
struct ZDCMonitorClient::@254 psTime_
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)
list infile
Definition: EdgesToViz.py:90
std::string monitorName_
units of &quot;updates&quot;, TBD
ZDCMonitorClient()
Constructors.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void htmlOutput(void)
HtmlOutput.
edm::CPUTimer cpu_timer
Definition: Run.h:36
void loadHistograms(TFile *infile, const char *fname)