CMS 3D CMS Logo

DQTask.h
Go to the documentation of this file.
1 #ifndef DQTask_h
2 #define DQTask_h
3 
4 /*
5  * file: DQTask.h
6  * Author: VK
7  * Date: 13.10.2015
8  */
9 
16 
23 
24 namespace hcaldqm {
25 
26  struct Cache {
27  int EvtCntLS;
28  int currentLS;
30  };
31 
32  enum UpdateFreq { fEvent = 0, f1LS = 1, f10LS = 2, f50LS = 3, f100LS = 4, nUpdateFreq = 5 };
33  class DQTask : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<hcaldqm::Cache>>, public DQModule {
34  public:
35  // constructor
36  DQTask(edm::ParameterSet const &);
37  ~DQTask() override {}
38 
39  // base inheritance to override from DQMEDAnalyzer
40  void analyze(edm::Event const &, edm::EventSetup const &) override;
41  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
42  void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
43  std::shared_ptr<hcaldqm::Cache> globalBeginLuminosityBlock(edm::LuminosityBlock const &,
44  edm::EventSetup const &) const override;
45  void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
46 
47  protected:
48  // protected funcs
49  virtual void _resetMonitors(UpdateFreq);
50  virtual void _process(edm::Event const &, edm::EventSetup const &) = 0;
51  virtual bool _isApplicable(edm::Event const &) { return true; }
52  virtual int _getCalibType(edm::Event const &);
53 
54  // protected vars
60 
61  // counters
62  int _procLSs;
63 
64  // container of quality masks from conddb
66  // vector of Electronics raw Ids of HCAL FEDs
67  // registered at cDAQ for the Run
68  std::vector<uint32_t> _vcdaqEids;
69 
70  // Tags and corresponding Tokens
73 
74  // Conditions and emap
78 
80  HcalElectronicsMap const *_emap = nullptr;
81  };
82 } // namespace hcaldqm
83 
84 #endif
hcaldqm::DQTask::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQTask.cc:132
hcaldqm::DQTask::_tokRaw
edm::EDGetTokenT< FEDRawDataCollection > _tokRaw
Definition: DQTask.h:72
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
hcaldqm::DQModule
Definition: DQModule.h:30
hcaldqm::DQTask::_cRunKeyName
ContainerS _cRunKeyName
Definition: DQTask.h:58
RunSummaryRcd.h
hcaldqm::DQTask::_tagRaw
edm::InputTag _tagRaw
Definition: DQTask.h:71
ESHandle.h
hcaldqm::DQTask::globalBeginLuminosityBlock
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
Definition: DQTask.cc:95
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
hcaldqm
Definition: Constants.h:8
DQModule.h
hcaldqm::DQTask::_procLSs
int _procLSs
Definition: DQTask.h:62
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
hcaldqm::DQTask::hcalDbServiceToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: DQTask.h:75
ESGetToken.h
hcaldqm::DQTask::_cEvsPerLS
ContainerI _cEvsPerLS
Definition: DQTask.h:56
hcaldqm::DQTask::_xQuality
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:65
hcaldqm::Cache::currentLS
int currentLS
Definition: DQTask.h:28
hcaldqm::DQTask::dqmBeginRun
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:87
hcaldqm::DQTask::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: DQTask.h:76
hcaldqm::nUpdateFreq
Definition: DQTask.h:32
edm::ESHandle< HcalDbService >
ContainerI.h
ContainerXXX.h
HcalDbRecord.h
hcaldqm::DQTask::_isApplicable
virtual bool _isApplicable(edm::Event const &)
Definition: DQTask.h:51
edm::ParameterSet
Definition: ParameterSet.h:47
hcaldqm::DQTask::_process
virtual void _process(edm::Event const &, edm::EventSetup const &)=0
hcaldqm::ContainerXXX< uint32_t >
hcaldqm::DQTask::_dbService
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:79
hcaldqm::Cache::EvtCntLS
int EvtCntLS
Definition: DQTask.h:27
edm::EventSetup
Definition: EventSetup.h:57
hcaldqm::Cache::xQuality
ContainerXXX< uint32_t > xQuality
Definition: DQTask.h:29
hcaldqm::f1LS
Definition: DQTask.h:32
edm::ESGetToken< HcalDbService, HcalDbRecord >
ContainerS.h
hcaldqm::DQTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:47
HcalChannelQualityRcd.h
hcaldqm::DQTask::~DQTask
~DQTask() override
Definition: DQTask.h:37
hcaldqm::f100LS
Definition: DQTask.h:32
hcaldqm::DQTask::_vcdaqEids
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:68
HcalChannelQuality.h
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
hcaldqm::fEvent
Definition: DQTask.h:32
RunInfo.h
hcaldqm::DQTask::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: DQTask.cc:30
hcaldqm::DQTask::_emap
const HcalElectronicsMap * _emap
Definition: DQTask.h:80
hcaldqm::f10LS
Definition: DQTask.h:32
hcaldqm::DQTask::hcalChannelQualityToken_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: DQTask.h:77
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalDbService.h
hcaldqm::DQTask::_getCalibType
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:153
hcaldqm::DQTask
Definition: DQTask.h:33
hcaldqm::DQTask::_cProcessingTypeName
ContainerS _cProcessingTypeName
Definition: DQTask.h:59
hcaldqm::DQTask::_cEvsTotal
ContainerI _cEvsTotal
Definition: DQTask.h:55
hcaldqm::Cache
Definition: DQTask.h:26
hcaldqm::DQTask::_resetMonitors
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:134
hcaldqm::ContainerS
Definition: ContainerS.h:8
hcaldqm::DQTask::DQTask
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::Event
Definition: Event.h:73
hcaldqm::f50LS
Definition: DQTask.h:32
hcaldqm::ContainerI
Definition: ContainerI.h:7
edm::InputTag
Definition: InputTag.h:15
hcaldqm::DQTask::_cRunKeyVal
ContainerI _cRunKeyVal
Definition: DQTask.h:57