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 
24 
26 {
27  public:
28 
30 
31  ~Multi5x5ClusterProducer() override;
32 
33  void produce(edm::Event&, const edm::EventSetup&) override;
34 
35  private:
36 
37  int nMaxPrintout_; // max # of printouts
38  int nEvt_; // internal counter of events
39 
40  // cluster which regions
41  bool doBarrel_;
42  bool doEndcap_;
43 
46 
49 
50  PositionCalc posCalculator_; // position calculation algorithm
52 
53  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
54 
57 
58 
59  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
61  const std::string& clusterCollection,
63 
64  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
65 };
66 
67 
68 #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)