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 
21 
22  private:
23  void setParams(edm::ParameterSet const&) override;
24 
29  };
30 
31  inline bool TimingTask::analyze(void const* _p, Collections _collection){
32  switch(_collection){
33  case kEBRecHit:
34  case kEERecHit:
35  if(_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
36  return true;
37  break;
38  case kEBUncalibRecHit:
39  case kEEUncalibRecHit:
40  if(_p) runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p));
41  return true;
42  break;
43  default:
44  break;
45  }
46  return false;
47  }
48 
49 }
50 
51 #endif
52 
void setParams(edm::ParameterSet const &) override
Definition: TimingTask.cc:21
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition: TimingTask.cc:45
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
Definition: TimingTask.cc:102
float energyThresholdEE_
Definition: TimingTask.h:28
float energyThresholdEB_
Definition: TimingTask.h:27
bool analyze(void const *, Collections) override
Definition: TimingTask.h:31
bool filterRunType(short const *) override
Definition: TimingTask.cc:30