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