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 
14 
15 namespace hcaldqm {
16  enum UpdateFreq { fEvent = 0, f1LS = 1, f10LS = 2, f50LS = 3, f100LS = 4, nUpdateFreq = 5 };
17  class DQTask : public one::DQMEDAnalyzer<one::DQMLuminosityBlockElements>, public DQModule {
18  public:
19  // constructor
20  DQTask(edm::ParameterSet const &);
21  ~DQTask() override {}
22 
23  // base inheritance to override from DQMEDAnalyzer
24  void analyze(edm::Event const &, edm::EventSetup const &) override;
25  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
26  void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
27  void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
28  void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
29 
30  protected:
31  // protected funcs
32  virtual void _resetMonitors(UpdateFreq);
33  virtual void _process(edm::Event const &, edm::EventSetup const &) = 0;
34  virtual bool _isApplicable(edm::Event const &) { return true; }
35  virtual int _getCalibType(edm::Event const &);
36 
37  // protected vars
43 
44  // counters
45  int _procLSs;
46 
47  // container of quality masks from conddb
49  // vector of Electronics raw Ids of HCAL FEDs
50  // registered at cDAQ for the Run
51  std::vector<uint32_t> _vcdaqEids;
52 
53  // Tags and corresponding Tokens
56 
57  // Conditions and emap
60  };
61 } // namespace hcaldqm
62 
63 #endif
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:137
ContainerI _cEvsTotal
Definition: DQTask.h:38
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQTask.cc:84
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:5
ContainerS _cRunKeyName
Definition: DQTask.h:41
edm::InputTag _tagRaw
Definition: DQTask.h:54
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:76
edm::EDGetTokenT< FEDRawDataCollection > _tokRaw
Definition: DQTask.h:55
UpdateFreq
Definition: DQTask.h:16
ContainerI _cEvsPerLS
Definition: DQTask.h:39
int _procLSs
Definition: DQTask.h:45
virtual bool _isApplicable(edm::Event const &)
Definition: DQTask.h:34
virtual void _process(edm::Event const &, edm::EventSetup const &)=0
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:48
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQTask.cc:116
HcalElectronicsMap const * _emap
Definition: DQTask.h:59
~DQTask() override
Definition: DQTask.h:21
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:118
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:58
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:35
ContainerS _cProcessingTypeName
Definition: DQTask.h:42
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:51
ContainerI _cRunKeyVal
Definition: DQTask.h:40
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: DQTask.cc:22
Definition: Run.h:45