CMS 3D CMS Logo

DTScalerInfoTask.h
Go to the documentation of this file.
1 #ifndef DTScalerInfoTask_H
2 #define DTScalerInfoTask_H
3 
4 /*
5  * \file DTScalerInfoTask.h
6  *
7  * \author C. Battilana - CIEMAT
8  *
9 */
10 
16 
19 
21 
25 
27 
31 
32 #include <vector>
33 #include <string>
34 #include <map>
35 
37 
39 
40  friend class DTMonitorModule;
41 
42  public:
43 
46 
48  virtual ~DTScalerInfoTask();
49 
50  protected:
51 
52  // Book the histograms
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54 
56  void dqmBeginRun(const edm::Run& , const edm::EventSetup&) override;
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
60 
62  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
63 
65  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
66 
67  private:
68 
69  int nEvents;
71 
73 
75 
76  std::map<std::string ,DTTimeEvolutionHisto* > trendHistos;
78 
79 };
80 
81 #endif
82 
83 /* Local Variables: */
84 /* show-trailing-whitespace: t */
85 /* truncate-lines: t */
86 /* End: */
MonitorElement * nEventMonitor
DTScalerInfoTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< LumiScalersCollection > scalerToken_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
virtual ~DTScalerInfoTask()
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
friend class DTMonitorModule
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
std::map< std::string,DTTimeEvolutionHisto * > trendHistos
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
Definition: Run.h:42
edm::ParameterSet theParams