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