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>&);
18 
19  void beginRun(const edm::Run &, const edm::EventSetup &);
20 
21  void analyze(const void*, Collections);
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 
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: EnergyTask.cc:40
static void setMEData(std::vector< MEData > &)
Definition: EnergyTask.cc:112
const CaloTopology * topology_
Definition: EnergyTask.h:38
bool filterRunType(const std::vector< short > &)
Definition: EnergyTask.cc:50
void runOnRecHits(const EcalRecHitCollection &)
Definition: EnergyTask.cc:65
void analyze(const void *, Collections)
Definition: EnergyTask.h:43
EnergyTask(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: EnergyTask.cc:11
Definition: Run.h:33