CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DQHarvester.h
Go to the documentation of this file.
1 #ifndef DQHarvester_h
2 #define DQHarvester_h
3 
4 /*
5  * file: DQHarvester.h
6  * Author: VK
7  */
8 
12 
13 #include <string>
14 #include <vector>
15 
16 namespace hcaldqm {
17  class DQHarvester : public DQMEDHarvester, public DQModule {
18  public:
20  ~DQHarvester() override {}
21 
22  void beginRun(edm::Run const &, edm::EventSetup const &) override;
25  edm::LuminosityBlock const &lb,
26  edm::EventSetup const &es);
29  edm::LuminosityBlock const &,
30  edm::EventSetup const &) override;
31  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
32 
33  protected:
34  // emap
36 
37  // some counters
38  int _totalLS;
39 
40  // Crate and crate eid lists
41  std::vector<int> _vCrates;
42  std::vector<uint32_t> _vhashCrates;
43 
44  // all FEDs
45  std::vector<int> _vFEDs;
46  std::vector<uint32_t> _vhashFEDs;
47  // container of quality masks from conddb
49  // vector of Electronics raw Ids of HCAL FEDs
50  // that were registered at cDAQ for the Run
51  std::vector<uint32_t> _vcdaqEids;
52 
56 
59  edm::LuminosityBlock const &,
60  edm::EventSetup const &) = 0;
61  virtual void _dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) = 0;
62  };
63 } // namespace hcaldqm
64 
65 #endif
ContainerXXX< uint32_t > _xQuality
Definition: DQHarvester.h:48
std::vector< uint32_t > _vhashFEDs
Definition: DQHarvester.h:46
int ib
Definition: cuy.py:661
virtual void _dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)=0
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: DQHarvester.h:53
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQHarvester.cc:101
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: DQHarvester.h:54
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: DQHarvester.h:55
virtual void _dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)=0
void dqmBeginLuminosityBlock(DQMStore::IBooker &ib, DQMStore::IGetter &ig, edm::LuminosityBlock const &lb, edm::EventSetup const &es)
Definition: DQHarvester.cc:81
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DQHarvester.cc:110
HcalElectronicsMap const * _emap
Definition: DQHarvester.h:35
std::vector< uint32_t > _vhashCrates
Definition: DQHarvester.h:42
DQHarvester(edm::ParameterSet const &)
Definition: DQHarvester.cc:7
std::vector< int > _vCrates
Definition: DQHarvester.h:41
~DQHarvester() override
Definition: DQHarvester.h:20
std::vector< int > _vFEDs
Definition: DQHarvester.h:45
std::vector< uint32_t > _vcdaqEids
Definition: DQHarvester.h:51
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQHarvester.cc:15
Definition: Run.h:45