CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMClientExample.h
Go to the documentation of this file.
1 #ifndef DQMClientExample_H
2 #define DQMClientExample_H
3 
15 /* Jan 17, 2009: the code has been modified significantly
16  * to steer the client operations
17  * Author: D.Volyanskyy
18  */
19 
24 
25 #include <memory>
26 #include <iostream>
27 #include <fstream>
28 #include <string>
29 #include <vector>
30 #include <map>
31 
32 
34 
35 public:
36 
39 
41  virtual ~DQMClientExample();
42 
43 protected:
44 
46  void beginJob();
47 
49  void beginRun(const edm::Run& r, const edm::EventSetup& c);
50 
52  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
53 
55  void performClient();
56 
58  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
59  const edm::EventSetup& context) ;
60 
62  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
63  const edm::EventSetup& c);
64 
66  void endRun(const edm::Run& r, const edm::EventSetup& c);
67 
69  void endJob();
70 
71 private:
73  void initialize();
74 
76 
78  std::string monitorName_;
79  std::string QTestName_;
80  int counterClientOperation ; //-- counter on Client Operations
81  int counterEvt_; //-- event counter
82  int counterLS_; //-- LS counter
83  int prescaleEvt_; //-- prescale on number of events
84  int prescaleLS_; //-- prescale on number of lumisections
89 
90  // -------- member data --------
92 
93 };
94 
95 #endif
96 
97 
edm::ParameterSet parameters_
std::string QTestName_
virtual ~DQMClientExample()
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
std::string monitorName_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * clientHisto
void beginRun(const edm::Run &r, const edm::EventSetup &c)
DQMClientExample(const edm::ParameterSet &ps)
void endRun(const edm::Run &r, const edm::EventSetup &c)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: Run.h:33