CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
37 
38  protected:
39 
40  //The order it runs
41 
42 
43  // BeginJob
44  void beginJob();
45 
46  // BeginRun
47  void beginRun(const edm::Run& r, const edm::EventSetup& c);
48  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
49  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
50  const edm::EventSetup& context) ;
51  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
52  const edm::EventSetup& c);
53  // EndRun
54  void endRun(const edm::Run& r, const edm::EventSetup& c);
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 analyze(const edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< DcsStatusCollection > dcsStatus_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
std::map< TString, MonitorElement * > hs
void endRun(const edm::Run &r, const edm::EventSetup &c)
edm::EDGetTokenT< BeamSpotOnlineCollection > scalertag_
BeamSpotProblemMonitor(const edm::ParameterSet &)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
virtual void endJob()
Definition: EDAnalyzer.h:73
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
edm::EDGetTokenT< reco::TrackCollection > trkSrc_
Definition: Run.h:43
void FillPlots(const edm::LuminosityBlock &lumiSeg, int &, int &, int &)