CMS 3D CMS Logo

DTDCSByLumiTask.h
Go to the documentation of this file.
1 #ifndef DTDCSByLumiTask_H
2 #define DTDCSByLumiTask_H
3 
4 /*
5  * \file DTDCSByLumiTask.h
6  *
7  * \author C. Battilana - CIEMAT
8  * \author P. Bellan - INFN PD
9  * \author A. Branca = INFN PD
10  *
11 */
12 
20 
24 
26 
28 
29 #include <vector>
30 
31 class DTGeometry;
32 class DQMStore;
33 class MonitorElement;
34 class DTHVStatus;
35 
36 class DTDCSByLumiTask: public one::DQMEDAnalyzer<one::DQMLuminosityBlockElements> {
37 
38 public:
39 
42 
44  ~DTDCSByLumiTask() override;
45 
46 protected:
47 
49  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
50 
51  // Book the histograms
52  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
53 
55  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
56 
58  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
59 
61  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
62 
63 private:
64 
65  std::string topFolder() const;
66 
67  int theEvents;
68  int theLumis;
69 
71 
73  // CB Get HV DB and loop on half layers
75 
76  std::vector<MonitorElement*> hActiveUnits;
77 
78 };
79 
80 #endif
81 
82 /* Local Variables: */
83 /* show-trailing-whitespace: t */
84 /* truncate-lines: t */
85 /* End: */
edm::ESHandle< DTHVStatus > hvStatus
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
By Lumi DCS DB Operation.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Begin Run.
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
By Lumi DCS DB Operation.
~DTDCSByLumiTask() override
Destructor.
edm::ESHandle< DTGeometry > theDTGeom
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DTDCSByLumiTask(const edm::ParameterSet &ps)
Constructor.
std::string topFolder() const
std::vector< MonitorElement * > hActiveUnits
Definition: Run.h:45