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
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:160
ContainerI _cEvsTotal
Definition: DQTask.h:56
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
Definition: DQTask.cc:102
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
ContainerS _cRunKeyName
Definition: DQTask.h:59
edm::InputTag _tagRaw
Definition: DQTask.h:72
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:94
edm::EDGetTokenT< FEDRawDataCollection > _tokRaw
Definition: DQTask.h:73
UpdateFreq
Definition: DQTask.h:32
ContainerI _cEvsPerLS
Definition: DQTask.h:57
int _procLSs
Definition: DQTask.h:63
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: DQTask.h:77
virtual bool _isApplicable(edm::Event const &)
Definition: DQTask.h:52
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: DQTask.h:76
virtual void _process(edm::Event const &, edm::EventSetup const &)=0
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:66
int currentLS
Definition: DQTask.h:28
int EvtCntLS
Definition: DQTask.h:27
ContainerXXX< uint32_t > xQuality
Definition: DQTask.h:29
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
~DQTask() override
Definition: DQTask.h:37
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:141
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:80
static void fillPSetDescription(edm::ParameterSetDescription &des)
Definition: DQTask.cc:26
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DQTask.cc:54
ContainerS _cProcessingTypeName
Definition: DQTask.h:60
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:69
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: DQTask.h:78
ContainerI _cRunKeyVal
Definition: DQTask.h:58
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: DQTask.cc:37
Definition: Run.h:45
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQTask.cc:139