CMS 3D CMS Logo

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
hcaldqm::DQHarvester::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQHarvester.cc:101
hcaldqm::DQModule
Definition: DQModule.h:30
hcaldqm::DQHarvester::hcalChannelQualityToken_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: DQHarvester.h:55
hcaldqm::DQHarvester::~DQHarvester
~DQHarvester() override
Definition: DQHarvester.h:20
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
hcaldqm::DQHarvester::_emap
const HcalElectronicsMap * _emap
Definition: DQHarvester.h:35
hcaldqm::DQHarvester::_vFEDs
std::vector< int > _vFEDs
Definition: DQHarvester.h:45
hcaldqm
Definition: Constants.h:8
hcaldqm::DQHarvester::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: DQHarvester.h:54
DQModule.h
hcaldqm::DQHarvester::_totalLS
int _totalLS
Definition: DQHarvester.h:38
hcaldqm::DQHarvester::_dqmEndJob
virtual void _dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)=0
Utilities.h
hcaldqm::DQHarvester::_vhashFEDs
std::vector< uint32_t > _vhashFEDs
Definition: DQHarvester.h:46
hcaldqm::DQHarvester::DQHarvester
DQHarvester(edm::ParameterSet const &)
Definition: DQHarvester.cc:7
hcaldqm::DQHarvester::_vCrates
std::vector< int > _vCrates
Definition: DQHarvester.h:41
ContainerXXX.h
hcaldqm::DQHarvester::_dqmEndLuminosityBlock
virtual void _dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)=0
edm::ParameterSet
Definition: ParameterSet.h:47
hcaldqm::ContainerXXX< uint32_t >
hcaldqm::DQHarvester::_vcdaqEids
std::vector< uint32_t > _vcdaqEids
Definition: DQHarvester.h:51
hcaldqm::DQHarvester::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQHarvester.cc:15
cuy.ib
ib
Definition: cuy.py:661
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< HcalDbService, HcalDbRecord >
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
DQMEDHarvester
Definition: DQMEDHarvester.py:1
hcaldqm::DQHarvester::_xQuality
ContainerXXX< uint32_t > _xQuality
Definition: DQHarvester.h:48
dqm::implementation::IGetter
Definition: DQMStore.h:484
dqm::implementation::IBooker
Definition: DQMStore.h:43
hcaldqm::DQHarvester::dqmBeginLuminosityBlock
void dqmBeginLuminosityBlock(DQMStore::IBooker &ib, DQMStore::IGetter &ig, edm::LuminosityBlock const &lb, edm::EventSetup const &es)
Definition: DQHarvester.cc:81
hcaldqm::DQHarvester
Definition: DQHarvester.h:17
hcaldqm::DQHarvester::hcalDbServiceToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: DQHarvester.h:53
hcaldqm::DQHarvester::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DQHarvester.cc:110
hcaldqm::DQHarvester::_vhashCrates
std::vector< uint32_t > _vhashCrates
Definition: DQHarvester.h:42