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;
47 
48  protected:
49  // protected funcs
50  virtual void _resetMonitors(UpdateFreq);
51  virtual void _process(edm::Event const &, edm::EventSetup const &) = 0;
52  virtual bool _isApplicable(edm::Event const &) { return true; }
53  virtual int _getCalibType(edm::Event const &);
54 
55  // protected vars
61 
62  // counters
63  int _procLSs;
64 
65  // container of quality masks from conddb
67  // vector of Electronics raw Ids of HCAL FEDs
68  // registered at cDAQ for the Run
69  std::vector<uint32_t> _vcdaqEids;
70 
71  // Tags and corresponding Tokens
74 
75  // Conditions and emap
79 
81  HcalElectronicsMap const *_emap = nullptr;
82  };
83 } // namespace hcaldqm
84 
85 #endif
hcaldqm::DQTask::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQTask.cc:139
hcaldqm::DQTask::_tokRaw
edm::EDGetTokenT< FEDRawDataCollection > _tokRaw
Definition: DQTask.h:73
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
hcaldqm::DQModule
Definition: DQModule.h:30
hcaldqm::DQTask::_cRunKeyName
ContainerS _cRunKeyName
Definition: DQTask.h:59
RunSummaryRcd.h
hcaldqm::DQTask::_tagRaw
edm::InputTag _tagRaw
Definition: DQTask.h:72
ESHandle.h
hcaldqm::DQTask::globalBeginLuminosityBlock
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
Definition: DQTask.cc:102
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
hcaldqm
Definition: Constants.h:8
DQModule.h
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
hcaldqm::DQTask::_procLSs
int _procLSs
Definition: DQTask.h:63
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
hcaldqm::DQTask::hcalDbServiceToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: DQTask.h:76
ESGetToken.h
hcaldqm::DQTask::_cEvsPerLS
ContainerI _cEvsPerLS
Definition: DQTask.h:57
hcaldqm::DQTask::_xQuality
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:66
hcaldqm::Cache::currentLS
int currentLS
Definition: DQTask.h:28
hcaldqm::DQTask::dqmBeginRun
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:94
hcaldqm::DQTask::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: DQTask.h:77
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:52
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:80
hcaldqm::Cache::EvtCntLS
int EvtCntLS
Definition: DQTask.h:27
edm::EventSetup
Definition: EventSetup.h:58
hcaldqm::DQTask::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &des)
Definition: DQTask.cc:26
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:54
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:69
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:37
hcaldqm::DQTask::_emap
const HcalElectronicsMap * _emap
Definition: DQTask.h:81
hcaldqm::f10LS
Definition: DQTask.h:32
hcaldqm::DQTask::hcalChannelQualityToken_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: DQTask.h:78
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalDbService.h
hcaldqm::DQTask::_getCalibType
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:160
hcaldqm::DQTask
Definition: DQTask.h:33
hcaldqm::DQTask::_cProcessingTypeName
ContainerS _cProcessingTypeName
Definition: DQTask.h:60
hcaldqm::DQTask::_cEvsTotal
ContainerI _cEvsTotal
Definition: DQTask.h:56
hcaldqm::Cache
Definition: DQTask.h:26
hcaldqm::DQTask::_resetMonitors
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:141
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:58