CMS 3D CMS Logo

EnergyTask.h
Go to the documentation of this file.
1 #ifndef EnergyTask_H
2 #define EnergyTask_H
3 
4 #include "DQWorkerTask.h"
5 
7 
8 namespace ecaldqm {
9 
10  class EnergyTask : public DQWorkerTask {
11  public:
12  EnergyTask();
13  ~EnergyTask() override {}
14 
15  bool filterRunType(short const*) override;
16 
17  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
18 
19  bool analyze(void const*, Collections) override;
20 
22 
23  private:
24  void setParams(edm::ParameterSet const&) override;
25 
27  // float threshS9_;
28  };
29 
30  inline bool EnergyTask::analyze(void const* _p, Collections _collection) {
31  switch (_collection) {
32  case kEBRecHit:
33  case kEERecHit:
34  if (_p)
35  runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p));
36  return true;
37  break;
38  default:
39  break;
40  }
41 
42  return false;
43  }
44 
45 } // namespace ecaldqm
46 
47 #endif
bool analyze(void const *, Collections) override
Definition: EnergyTask.h:30
~EnergyTask() override
Definition: EnergyTask.h:13
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: EnergyTask.cc:29
void setParams(edm::ParameterSet const &) override
Definition: EnergyTask.cc:13
void runOnRecHits(EcalRecHitCollection const &)
Definition: EnergyTask.cc:34
bool filterRunType(short const *) override
Definition: EnergyTask.cc:17