CMS 3D CMS Logo

Multi5x5ClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_Multi5x5ClusterProducer_h_
2 #define RecoEcal_EgammaClusterProducers_Multi5x5ClusterProducer_h_
3 
4 #include <memory>
5 #include <ctime>
6 
11 
13 
18 
21 
22 //
23 
25 public:
27 
28  ~Multi5x5ClusterProducer() override;
29 
30  void produce(edm::Event&, const edm::EventSetup&) override;
31 
32 private:
33  int nMaxPrintout_; // max # of printouts
34  int nEvt_; // internal counter of events
35 
36  // cluster which regions
37  bool doBarrel_;
38  bool doEndcap_;
39 
42 
45 
46  PositionCalc posCalculator_; // position calculation algorithm
48 
49  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
50 
52 
54  const edm::EventSetup& es,
56  const std::string& clusterCollection,
58 
59  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
60 };
61 
62 #endif
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelHitToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapHitToken_
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
void produce(edm::Event &, const edm::EventSetup &) override
Multi5x5ClusterAlgo * island_p
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const reco::CaloID::Detectors detector)
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)