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
ecaldqm::RecoSummaryTask::fillRecoFlagReduced_
bool fillRecoFlagReduced_
Definition: RecoSummaryTask.h:36
ecaldqm
Definition: DQWorker.h:24
ecaldqm::kEBBasicCluster
Definition: Collections.h:40
ecaldqm::DependencySet
Definition: DQWorkerTask.h:44
ecaldqm::kEEReducedRecHit
Definition: Collections.h:39
ecaldqm::RecoSummaryTask::analyze
bool analyze(void const *, Collections) override
Definition: RecoSummaryTask.h:39
edm::SortedCollection< EcalRecHit >
watchdog.const
const
Definition: watchdog.py:83
ecaldqm::RecoSummaryTask::addDependencies
void addDependencies(DependencySet &) override
Definition: RecoSummaryTask.cc:31
EcalRecHitCollections.h
ecaldqm::RecoSummaryTask::runOnBasicClusters
void runOnBasicClusters(edm::View< reco::CaloCluster > const &, Collections)
Definition: RecoSummaryTask.cc:126
ecaldqm::RecoSummaryTask
Definition: RecoSummaryTask.h:13
ecaldqm::RecoSummaryTask::ebHits_
EcalRecHitCollection const * ebHits_
Definition: RecoSummaryTask.h:34
ecaldqm::DQWorkerTask
Definition: DQWorkerTask.h:71
ecaldqm::RecoSummaryTask::filterRunType
bool filterRunType(short const *) override
Definition: RecoSummaryTask.cc:36
ecaldqm::RecoSummaryTask::endEvent
void endEvent(edm::Event const &, edm::EventSetup const &) override
Definition: RecoSummaryTask.cc:48
ecaldqm::kEBRecHit
Definition: Collections.h:36
edm::View
Definition: CaloClusterFwd.h:14
ecaldqm::RecoSummaryTask::rechitThresholdEB_
float rechitThresholdEB_
Definition: RecoSummaryTask.h:32
edm::ParameterSet
Definition: ParameterSet.h:36
ecaldqm::RecoSummaryTask::eeHits_
EcalRecHitCollection const * eeHits_
Definition: RecoSummaryTask.h:35
ecaldqm::RecoSummaryTask::rechitThresholdEE_
float rechitThresholdEE_
Definition: RecoSummaryTask.h:33
ecaldqm::RecoSummaryTask::runOnRecHits
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition: RecoSummaryTask.cc:53
ecaldqm::Collections
Collections
Definition: Collections.h:8
ecaldqm::RecoSummaryTask::RecoSummaryTask
RecoSummaryTask()
Definition: RecoSummaryTask.cc:14
edm::EventSetup
Definition: EventSetup.h:57
ecaldqm::kEERecHit
Definition: Collections.h:37
SuperClusterFwd.h
ecaldqm::RecoSummaryTask::runOnReducedRecHits
void runOnReducedRecHits(EcalRecHitCollection const &, Collections)
Definition: RecoSummaryTask.cc:117
DQWorkerTask.h
ecaldqm::kEBReducedRecHit
Definition: Collections.h:38
ecaldqm::RecoSummaryTask::setParams
void setParams(edm::ParameterSet const &) override
Definition: RecoSummaryTask.cc:22
View.h
ecaldqm::kEEBasicCluster
Definition: Collections.h:41
edm::Event
Definition: Event.h:73
ecaldqm::RecoSummaryTask::~RecoSummaryTask
~RecoSummaryTask() override
Definition: RecoSummaryTask.h:16
CaloCluster.h