test
CMS 3D CMS Logo

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