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 
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: */
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
LumiScalers.h
Handle.h
DTLocalTriggerCollection.h
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< LumiScalersCollection >
LuminosityBlock.h
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
DTScalerInfoTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
Definition: DTScalerInfoTask.cc:44
EDAnalyzer.h
DTScalerInfoTask::nEventsInLS
int nEventsInLS
Definition: DTScalerInfoTask.h:65
DQMOneEDAnalyzer.h
DTScalerInfoTask::trendHistos
std::map< std::string, DTTimeEvolutionHisto * > trendHistos
Definition: DTScalerInfoTask.h:71
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
MakerMacros.h
DTScalerInfoTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
Definition: DTScalerInfoTask.cc:34
DTScalerInfoTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
Definition: DTScalerInfoTask.cc:38
Service.h
DTScalerInfoTask::DTMonitorModule
friend class DTMonitorModule
Definition: DTScalerInfoTask.h:38
DTScalerInfoTask::nEvents
int nEvents
Definition: DTScalerInfoTask.h:64
DTScalerInfoTask
Definition: DTScalerInfoTask.h:37
DTScalerInfoTask::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTScalerInfoTask.h:72
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
LumiDetails.h
DTScalerInfoTask::scalerToken_
edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: DTScalerInfoTask.h:69
DTScalerInfoTask::theParams
edm::ParameterSet theParams
Definition: DTScalerInfoTask.h:67
edm::EventSetup
Definition: EventSetup.h:57
DTScalerInfoTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTScalerInfoTask.cc:77
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
Frameworkfwd.h
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
DTScalerInfoTask::DTScalerInfoTask
DTScalerInfoTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTScalerInfoTask.cc:23
ParameterSet.h
DTScalerInfoTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTScalerInfoTask.cc:56
edm::Event
Definition: Event.h:73
DTScalerInfoTask::~DTScalerInfoTask
~DTScalerInfoTask() override
Destructor.
Definition: DTScalerInfoTask.cc:30
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37