CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 beginEvent(edm::Event const&, edm::EventSetup const&, bool const&, bool&) override;
18  bool analyze(void const*, Collections) override;
19 
21 
22  private:
23  void setParams(edm::ParameterSet const&) override;
24 
26  // float threshS9_;
27  };
28 
29  inline bool EnergyTask::analyze(void const* _p, Collections _collection) {
30  switch (_collection) {
31  case kEBRecHit:
32  case kEERecHit:
33  if (_p)
34  runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p));
35  return true;
36  break;
37  default:
38  break;
39  }
40 
41  return false;
42  }
43 
44 } // namespace ecaldqm
45 
46 #endif
bool analyze(void const *, Collections) override
Definition: EnergyTask.h:29
~EnergyTask() override
Definition: EnergyTask.h:13
void setParams(edm::ParameterSet const &) override
Definition: EnergyTask.cc:13
void runOnRecHits(EcalRecHitCollection const &)
Definition: EnergyTask.cc:35
bool filterRunType(short const *) override
Definition: EnergyTask.cc:17
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition: EnergyTask.cc:29