CMS 3D CMS Logo

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 beginEvent(edm::Event const&, edm::EventSetup const&) override;
25  void setParams(edm::ParameterSet const&) override;
26 
27  std::vector<int> bxBinEdges_;
28  double bxBin_;
29 
35 
37  };
38 
39  inline bool TimingTask::analyze(void const* _p, Collections _collection){
40  switch(_collection){
41  case kEBRecHit:
42  case kEERecHit:
43  if(_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
44  return true;
45  break;
46  case kEBUncalibRecHit:
47  case kEEUncalibRecHit:
48  if(_p) runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p));
49  return true;
50  break;
51  default:
52  break;
53  }
54  return false;
55  }
56 
57 }
58 
59 #endif
60 
void beginEvent(edm::Event const &, edm::EventSetup const &) override
Definition: TimingTask.cc:65
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: TimingTask.cc:54
void setParams(edm::ParameterSet const &) override
Definition: TimingTask.cc:28
float timingVsBXThreshold_
Definition: TimingTask.h:34
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition: TimingTask.cc:73
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
Definition: TimingTask.cc:129
float energyThresholdEE_
Definition: TimingTask.h:33
MESet * meTimeMapByLS
Definition: TimingTask.h:36
float energyThresholdEB_
Definition: TimingTask.h:32
bool analyze(void const *, Collections) override
Definition: TimingTask.h:39
std::vector< int > bxBinEdges_
Definition: TimingTask.h:27
bool filterRunType(short const *) override
Definition: TimingTask.cc:39