CMS 3D CMS Logo

RecoSummaryTask.h
Go to the documentation of this file.
1 #ifndef RecoSummaryTask_H
2 #define RecoSummaryTask_H
3 
4 #include "DQWorkerTask.h"
5 
10 
11 namespace ecaldqm {
12 
13  class RecoSummaryTask : public DQWorkerTask {
14  public:
17 
18  bool filterRunType(short const*) override;
19 
20  void addDependencies(DependencySet&) override;
21 
22  bool analyze(void const*, Collections) override;
23  void endEvent(edm::Event const&, edm::EventSetup const&) override;
24 
28 
29  private:
30  void setParams(edm::ParameterSet const&) override;
31 
36  };
37 
38  inline bool RecoSummaryTask::analyze(void const* _p, Collections _collection){
39  switch(_collection){
40  case kEBRecHit:
41  case kEERecHit:
42  if(_p) runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
43  return true;
44  break;
45  case kEBReducedRecHit:
46  case kEEReducedRecHit:
47  if(_p) runOnReducedRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
48  return true;
49  break;
50  case kEBBasicCluster:
51  case kEEBasicCluster:
52  if(_p) runOnBasicClusters(*static_cast<edm::View<reco::CaloCluster> const*>(_p), _collection);
53  return true;
54  break;
55  default:
56  break;
57  }
58  return false;
59  }
60 
61 }
62 
63 #endif
64 
void runOnReducedRecHits(EcalRecHitCollection const &, Collections)
void endEvent(edm::Event const &, edm::EventSetup const &) override
bool filterRunType(short const *) override
void runOnRecHits(EcalRecHitCollection const &, Collections)
EcalRecHitCollection const * ebHits_
void runOnBasicClusters(edm::View< reco::CaloCluster > const &, Collections)
bool analyze(void const *, Collections) override
EcalRecHitCollection const * eeHits_
void addDependencies(DependencySet &) override
void setParams(edm::ParameterSet const &) override