CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
BeamConditionsMonitor.h
Go to the documentation of this file.
1 #ifndef BeamConditionsMonitor_H
2 #define BeamConditionsMonitor_H
3 
10 // C++
11 #include <string>
12 // CMS
21 
22 //
23 // class declaration
24 //
25 class BeamSpotObjectsRcd;
27  : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
28 public:
30  ~BeamConditionsMonitor() override;
31 
34 
35 protected:
36  // BeginJob
37  void beginJob() override;
38 
39  // BeginRun
40  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
41 
42  // Fake Analyze
43  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
44 
45  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
46 
47  // DQM Client Diagnostic
48  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c) override;
49 
50  // EndRun
51  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
52 
53  // Endjob
54  void endJob() override;
55 
56 private:
59  edm::InputTag bsSrc_; // beam spot
61  bool debug_;
62 
64 
65  int countEvt_; //counter
66  int countLumi_; //counter
67 
68  // ----------member data ---------------------------
70 
71  // MonitorElements
74 };
75 
76 #endif
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
dqm::legacy::DQMStore DQMStore
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
void endRun(const edm::Run &r, const edm::EventSetup &c) override
edm::ParameterSet parameters_
BeamConditionsMonitor(const edm::ParameterSet &)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > beamSpotToken_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
dqm::legacy::MonitorElement MonitorElement
Definition: Run.h:45