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 
15 class DQMStore;
16 class TH2F;
17 class TH1F;
18 class TFile;
19 
21 
22 public:
23 
27 
30 
31  // Initialize
32  void initialize(const edm::ParameterSet& ps);
33  void offlineSetup();
34 
36  void analyze(void);
37  void analyze(const edm::Event& evt, const edm::EventSetup& es);
38 
40  void beginJob();
42  void beginRun(const edm::Run& r, const edm::EventSetup & c);
45 
47  void endJob(void);
49  void endRun(const edm::Run & r, const edm::EventSetup & c);
51  void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
52 
54  void htmlOutput(void);
55 
57  void report(bool update);
58 
60  void errorSummary();
61 
63  void createTests(void);
64 
66  void resetAllME(void);
67 
68  //Offline output functions
69  void loadHistograms(TFile* infile, const char* fname);
70  void dumpHistograms(int& runNum, std::vector<TH1F*> &hist1d, std::vector<TH2F*> &hist2d);
71 
73  bool prescale();
74 
75  private:
76  void removeAllME(void);
77  void writeDBfile();
78  /********************************************************/
79  // The following member variables can be specified in //
80  // the configuration input file for the process. //
81  /********************************************************/
82 
90 
94 
96  int debug_ ;
97 
98  // Timing diagnostic switch
99  bool showTiming_; // controls whether to show timing diagnostic info
101 
103  //int nevt_; // counts number of events actually analyzed by ZDCMonitorClient
105  bool saved_;
106  bool Online_;
107 
108  struct{
109  timeval startTV,updateTV;
110  double startTime;
111  double elapsedTime;
112  double updateTime;
113  } psTime_;
114 
117 
118  // environment variables
122 
123  time_t mytime_;
124 
126 
127  int ievt_; // counts number of events read by client (and analyzed by tasks)
129  int resetLS_;
130 
133 
136 
137 };
138 
139 #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.
struct ZDCMonitorClient::@259 psTime_
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)
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:41
void loadHistograms(TFile *infile, const char *fname)