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 
5 
7 
8 class CaloTopology;
9 
10 namespace ecaldqm {
11 
12  class EnergyTask : public DQWorkerTask {
13  public:
15  ~EnergyTask();
16 
17  bool filterRunType(const std::vector<short>&) override;
18 
19  void beginRun(const edm::Run &, const edm::EventSetup &) override;
20 
21  void analyze(const void*, Collections) override;
22 
23  void runOnRecHits(const EcalRecHitCollection &);
24 
25  enum MESets {
26  kHitMap, // profile2d
28  // k3x3Map, // profile2d
29  kHit, // h1f
31  kMiniCluster, // h1f
33  };
34 
35  static void setMEData(std::vector<MEData>&);
36 
37  private:
40  float threshS9_;
41  };
42 
43  inline void EnergyTask::analyze(const void* _p, Collections _collection){
44  switch(_collection){
45  case kEBRecHit:
46  case kEERecHit:
47  runOnRecHits(*static_cast<const EcalRecHitCollection*>(_p));
48  break;
49  default:
50  break;
51  }
52  }
53 
54 }
55 
56 #endif
57 
bool filterRunType(const std::vector< short > &) override
Definition: EnergyTask.cc:50
static void setMEData(std::vector< MEData > &)
Definition: EnergyTask.cc:112
const CaloTopology * topology_
Definition: EnergyTask.h:38
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: EnergyTask.cc:40
void analyze(const void *, Collections) override
Definition: EnergyTask.h:43
void runOnRecHits(const EcalRecHitCollection &)
Definition: EnergyTask.cc:65
EnergyTask(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: EnergyTask.cc:11
Definition: Run.h:41