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 
13 
14 namespace hcaldqm
15 {
17  {
18  fEvent = 0,
19  fLS = 1,
20  f10LS = 2,
21  f50LS = 3,
22  f100LS = 4,
23 
25  };
26 
27  class DQTask : public DQMEDAnalyzer, public DQModule
28  {
29  public:
30  DQTask(edm::ParameterSet const&);
31  virtual ~DQTask(){}
32 
33  // base inheritance to override from DQMEDAnalyzer
34  virtual void analyze(edm::Event const&, edm::EventSetup const&);
35  virtual void bookHistograms(DQMStore::IBooker &, edm::Run const&,
36  edm::EventSetup const&);
37  virtual void dqmBeginRun(edm::Run const&, edm::EventSetup const&);
38  virtual void beginLuminosityBlock(edm::LuminosityBlock const&,
39  edm::EventSetup const&);
40  virtual void endLuminosityBlock(edm::LuminosityBlock const&,
41  edm::EventSetup const&);
42 
43  protected:
44  // protected funcs
45  virtual void _resetMonitors(UpdateFreq);
46  virtual void _process(edm::Event const&, edm::EventSetup const&) = 0;
47  virtual bool _isApplicable(edm::Event const&) {return true;}
48  virtual int _getCalibType(edm::Event const&);
49 
50  // protected vars
56 
57  // counters
58  int _procLSs;
59 
60  // Tags and corresponding Tokens
63  };
64 }
65 
66 #endif
67 
68 
69 
70 
71 
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:107
virtual ~DQTask()
Definition: DQTask.h:31
ContainerI _cEvsTotal
Definition: DQTask.h:51
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:79
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
ContainerS _cRunKeyName
Definition: DQTask.h:54
edm::InputTag _tagRaw
Definition: DQTask.h:61
edm::EDGetTokenT< FEDRawDataCollection > _tokRaw
Definition: DQTask.h:62
UpdateFreq
Definition: DQTask.h:16
ContainerI _cEvsPerLS
Definition: DQTask.h:52
int _procLSs
Definition: DQTask.h:58
virtual bool _isApplicable(edm::Event const &)
Definition: DQTask.h:47
virtual void _process(edm::Event const &, edm::EventSetup const &)=0
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: DQTask.cc:66
virtual void _resetMonitors(UpdateFreq)
Definition: DQTask.cc:86
ContainerS _cProcessingTypeName
Definition: DQTask.h:55
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
Definition: DQTask.cc:40
ContainerI _cRunKeyVal
Definition: DQTask.h:53
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &)
Definition: DQTask.cc:56
Definition: Run.h:43