CMS 3D CMS Logo

BeamSpotProblemMonitor.h
Go to the documentation of this file.
1 #ifndef BeamSpotProblemMonitor_H
2 #define BeamSpotProblemMonitor_H
3 
10 // C++
11 #include <string>
12 // CMS
25 #include <fstream>
26 
27 
28 //
29 // class declaration
30 //
31 
33  public:
34 
36  ~BeamSpotProblemMonitor() override;
37 
38  protected:
39 
40  //The order it runs
41 
42 
43  // BeginJob
44  void beginJob() override;
45 
46  // BeginRun
47  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
48  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
49  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
50  const edm::EventSetup& context) override;
51  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
52  const edm::EventSetup& c) override;
53  // EndRun
54  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
55  // Endjob
56  void endJob(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c);
57 
58 
59  private:
60 
61  void FillPlots(const edm::LuminosityBlock& lumiSeg,int&,int&,int&);
67 
68  int Ntracks_;
70  int fitNLumi_;
72  bool debug_;
74  bool doTest_;
77 
79 
80  int lastlumi_; // previous LS processed
81  int nextlumi_; // next LS of Fit
83  bool processed_;
84 
85  //Alarm Variable
86  bool ALARM_ON_;
87  double BeamSpotStatus_;
89  bool dcsTk[6];
90 
91  // MonitorElements:
92  std::map<TString, MonitorElement*> hs;
94 
95 };
96 
97 #endif
98 
99 
100 // Local Variables:
101 // show-trailing-whitespace: t
102 // truncate-lines: t
103 // End:
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
edm::EDGetTokenT< DcsStatusCollection > dcsStatus_
std::map< TString, MonitorElement * > hs
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
edm::EDGetTokenT< BeamSpotOnlineCollection > scalertag_
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
BeamSpotProblemMonitor(const edm::ParameterSet &)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
virtual void endJob()
Definition: EDAnalyzer.h:86
void endRun(const edm::Run &r, const edm::EventSetup &c) override
edm::EDGetTokenT< reco::TrackCollection > trkSrc_
Definition: Run.h:44
void FillPlots(const edm::LuminosityBlock &lumiSeg, int &, int &, int &)