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 
14 
17 
19 
21 
23 
27 
28 #include <vector>
29 #include <string>
30 #include <map>
31 
33 
34 class DTScalerInfoTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
35  friend class DTMonitorModule;
36 
37 public:
40 
42  ~DTScalerInfoTask() override;
43 
44 protected:
45  // Book the histograms
46  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
47 
49  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
50 
52  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
53 
55  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
56 
58  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
59 
60 private:
61  int nEvents;
63 
65 
67 
68  std::map<std::string, DTTimeEvolutionHisto*> trendHistos;
70 };
71 
72 #endif
73 
74 /* Local Variables: */
75 /* show-trailing-whitespace: t */
76 /* truncate-lines: t */
77 /* 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.
~DTScalerInfoTask() override
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
std::map< std::string, DTTimeEvolutionHisto * > trendHistos
friend class DTMonitorModule
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
Definition: Run.h:45
edm::ParameterSet theParams