CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
24 
26 
30 
31 #include <vector>
32 #include <string>
33 #include <map>
34 
36 
37 class DTScalerInfoTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
38  friend class DTMonitorModule;
39 
40 public:
43 
45  ~DTScalerInfoTask() override;
46 
47 protected:
48  // Book the histograms
49  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
50 
52  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
53 
55  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
56 
58  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
59 
61  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
62 
63 private:
64  int nEvents;
66 
68 
70 
71  std::map<std::string, DTTimeEvolutionHisto*> trendHistos;
73 };
74 
75 #endif
76 
77 /* Local Variables: */
78 /* show-trailing-whitespace: t */
79 /* truncate-lines: t */
80 /* End: */
const edm::EventSetup & c
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