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:
16  ~RecoSummaryTask() override {}
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 
37  };
38 
39  inline bool RecoSummaryTask::analyze(void const* _p, Collections _collection) {
40  switch (_collection) {
41  case kEBRecHit:
42  case kEERecHit:
43  if (_p)
44  runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
45  return true;
46  break;
47  case kEBReducedRecHit:
48  case kEEReducedRecHit:
49  if (_p && fillRecoFlagReduced_)
50  runOnReducedRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
51  return fillRecoFlagReduced_;
52  break;
53  case kEBBasicCluster:
54  case kEEBasicCluster:
55  if (_p)
56  runOnBasicClusters(*static_cast<edm::View<reco::CaloCluster> const*>(_p), _collection);
57  return true;
58  break;
59  default:
60  break;
61  }
62  return false;
63  }
64 
65 } // namespace ecaldqm
66 
67 #endif
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