test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TimingTask.h
Go to the documentation of this file.
1 #ifndef TimingTask_H
2 #define TimingTask_H
3 
4 #include "DQWorkerTask.h"
5 
7 
8 namespace ecaldqm {
9 
10  class TimingTask : public DQWorkerTask {
11  public:
12  TimingTask();
14 
15  bool filterRunType(short const*) override;
16 
17  bool analyze(void const*, Collections) override;
18 
20 
21  private:
22  void setParams(edm::ParameterSet const&) override;
23 
26  };
27 
28  inline bool TimingTask::analyze(void const* _p, Collections _collection){
29  switch(_collection){
30  case kEBRecHit:
31  case kEERecHit:
32  if(_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
33  return true;
34  break;
35  default:
36  break;
37  }
38  return false;
39  }
40 
41 }
42 
43 #endif
44 
void setParams(edm::ParameterSet const &) override
Definition: TimingTask.cc:19
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition: TimingTask.cc:41
float energyThresholdEE_
Definition: TimingTask.h:25
float energyThresholdEB_
Definition: TimingTask.h:24
bool analyze(void const *, Collections) override
Definition: TimingTask.h:28
bool filterRunType(short const *) override
Definition: TimingTask.cc:26