CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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&);
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)
bool filterRunType(short const *) override
void runOnRecHits(EcalRecHitCollection const &, Collections)
EcalRecHitCollection const * ebHits_
void endEvent(edm::Event const &, edm::EventSetup const &)
void runOnBasicClusters(edm::View< reco::CaloCluster > const &, Collections)
bool analyze(void const *, Collections) override
EcalRecHitCollection const * eeHits_
string const
Definition: compareJSON.py:14
void addDependencies(DependencySet &) override
void setParams(edm::ParameterSet const &) override