CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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();
13  ~TimingTask() override {}
14 
15  bool filterRunType(short const*) override;
16 
17  bool analyze(void const*, Collections) override;
18 
21 
22  private:
23  void beginEvent(edm::Event const&, edm::EventSetup const&, bool const&, bool&) override;
24  void setParams(edm::ParameterSet const&) override;
25 
26  std::vector<int> bxBinEdges_;
27  double bxBin_;
28 
37 
39  };
40 
41  inline bool TimingTask::analyze(void const* _p, Collections _collection) {
42  switch (_collection) {
43  case kEBRecHit:
44  case kEERecHit:
45  if (_p)
46  runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
47  return true;
48  break;
49  case kEBUncalibRecHit:
50  case kEEUncalibRecHit:
51  if (_p)
52  runOnUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(_p));
53  return true;
54  break;
55  default:
56  break;
57  }
58  return false;
59  }
60 
61 } // namespace ecaldqm
62 
63 #endif
~TimingTask() override
Definition: TimingTask.h:13
void setParams(edm::ParameterSet const &) override
Definition: TimingTask.cc:26
float timingVsBXThreshold_
Definition: TimingTask.h:34
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition: TimingTask.cc:62
float energyThresholdEEFwd_
Definition: TimingTask.h:33
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
Definition: TimingTask.cc:134
float energyThresholdEE_
Definition: TimingTask.h:32
MESet * meTimeMapByLS
Definition: TimingTask.h:38
float energyThresholdEB_
Definition: TimingTask.h:31
bool analyze(void const *, Collections) override
Definition: TimingTask.h:41
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition: TimingTask.cc:51
std::vector< int > bxBinEdges_
Definition: TimingTask.h:26
bool filterRunType(short const *) override
Definition: TimingTask.cc:39
float timeErrorThreshold_
Definition: TimingTask.h:35