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  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) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p));
35  return true;
36  break;
37  default:
38  break;
39  }
40 
41  return false;
42  }
43 
44 }
45 
46 #endif
47 
bool analyze(void const *, Collections) override
Definition: EnergyTask.h:30
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: EnergyTask.cc:40
void setParams(edm::ParameterSet const &) override
Definition: EnergyTask.cc:19
void runOnRecHits(EcalRecHitCollection const &)
Definition: EnergyTask.cc:47
bool filterRunType(short const *) override
Definition: EnergyTask.cc:25