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
21 
22 
23 //
24 // class declaration
25 //
26 
27 class BeamSpotProblemMonitor : public one::DQMEDAnalyzer<one::DQMLuminosityBlockElements> {
28  public:
29 
30  explicit BeamSpotProblemMonitor( const edm::ParameterSet& );
32 
33  protected:
34 
35  //The order it runs
36 
37 
38  // BeginRun
39  void bookHistograms(DQMStore::IBooker& i, const edm::Run& r, const edm::EventSetup& c) override;
40  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
41  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
42  const edm::EventSetup& context) override;
43  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
44  const edm::EventSetup& c) override;
45  // EndRun
46  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
47 
48 
49  private:
50 
51  void fillPlots(int&,int&,int);
53  const edm::EDGetTokenT<DcsStatusCollection> dcsStatus_; // dcs status collection
56 
57  int nTracks_;
58  const int nCosmicTrk_;
59  const int fitNLumi_;
60  const bool debug_;
61  const bool onlineMode_;
62  const bool doTest_;
63  const int alarmONThreshold_;
64  const int alarmOFFThreshold_;
65 
66  int lastlumi_; // previous LS processed
67  int nextlumi_; // next LS of Fit
68  bool processed_;
69 
70  //Alarm Variable
71  bool alarmOn_;
74 
75  // MonitorElements:
79 
80 };
81 
82 #endif
83 
84 
85 // Local Variables:
86 // show-trailing-whitespace: t
87 // truncate-lines: t
88 // End:
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
const edm::EDGetTokenT< BeamSpotOnlineCollection > scalertag_
MonitorElement * beamSpotStatusLumi_
static void fillDescriptions(edm::ConfigurationDescriptions &)
void fillPlots(int &, int &, int)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
MonitorElement * beamSpotStatusLumiAll_
BeamSpotProblemMonitor(const edm::ParameterSet &)
void bookHistograms(DQMStore::IBooker &i, const edm::Run &r, const edm::EventSetup &c) override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void endRun(const edm::Run &r, const edm::EventSetup &c) override
const edm::EDGetTokenT< DcsStatusCollection > dcsStatus_
const edm::EDGetTokenT< reco::TrackCollection > trkSrc_
Definition: Run.h:45