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
ecaldqm
Definition: DQWorker.h:24
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
ecaldqm::EnergyTask::isPhysicsRun_
bool isPhysicsRun_
Definition: EnergyTask.h:26
edm::SortedCollection< EcalRecHit >
EcalRecHitCollections.h
ecaldqm::DQWorkerTask
Definition: DQWorkerTask.h:71
ecaldqm::EnergyTask
Definition: EnergyTask.h:10
ecaldqm::EnergyTask::runOnRecHits
void runOnRecHits(EcalRecHitCollection const &)
Definition: EnergyTask.cc:34
ecaldqm::EnergyTask::filterRunType
bool filterRunType(short const *) override
Definition: EnergyTask.cc:17
ecaldqm::kEBRecHit
Definition: Collections.h:36
ecaldqm::EnergyTask::~EnergyTask
~EnergyTask() override
Definition: EnergyTask.h:13
edm::ParameterSet
Definition: ParameterSet.h:36
ecaldqm::EnergyTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: EnergyTask.cc:29
ecaldqm::Collections
Collections
Definition: Collections.h:8
edm::EventSetup
Definition: EventSetup.h:57
ecaldqm::EnergyTask::analyze
bool analyze(void const *, Collections) override
Definition: EnergyTask.h:30
ecaldqm::kEERecHit
Definition: Collections.h:37
DQWorkerTask.h
ecaldqm::EnergyTask::setParams
void setParams(edm::ParameterSet const &) override
Definition: EnergyTask.cc:13
ecaldqm::EnergyTask::EnergyTask
EnergyTask()
Definition: EnergyTask.cc:11