CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~DQTask(){}
33 
34  // base inheritance to override from DQMEDAnalyzer
35  virtual void analyze(edm::Event const&, edm::EventSetup const&);
36  virtual void bookHistograms(DQMStore::IBooker &, edm::Run const&,
37  edm::EventSetup const&);
38  virtual void dqmBeginRun(edm::Run const&, edm::EventSetup const&);
39  virtual void beginLuminosityBlock(edm::LuminosityBlock const&,
40  edm::EventSetup const&);
41  virtual void endLuminosityBlock(edm::LuminosityBlock const&,
42  edm::EventSetup const&);
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 }
72 
73 #endif
74 
75 
76 
77 
78 
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:167
virtual ~DQTask()
Definition: DQTask.h:32
ContainerI _cEvsTotal
Definition: DQTask.h:52
virtual void analyze(edm::Event const &, edm::EventSetup const &)
Definition: DQTask.cc:26
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: DQTask.cc:139
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
ContainerS _cRunKeyName
Definition: DQTask.h:55
edm::InputTag _tagRaw
Definition: DQTask.h:68
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
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: DQTask.cc:123
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:146
ContainerS _cProcessingTypeName
Definition: DQTask.h:56
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
Definition: DQTask.cc:39
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:65
ContainerI _cRunKeyVal
Definition: DQTask.h:54
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &)
Definition: DQTask.cc:113
Definition: Run.h:43