CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <time.h>
6 
11 
13 
18 
21 
22 //
23 
24 
26 {
27  public:
28 
30 
32 
33  virtual void produce(edm::Event&, const edm::EventSetup&);
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 
44  std::string barrelHitProducer_;
45  std::string endcapHitProducer_;
46  std::string barrelHitCollection_;
47  std::string endcapHitCollection_;
48 
51 
52  PositionCalc posCalculator_; // position calculation algorithm
54 
55  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
56 
58  const std::string& hitProducer_,
59  const std::string& hitCollection_);
60 
61 
62  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
63  const std::string& hitProducer,
64  const std::string& hitCollection,
65  const std::string& clusterCollection,
66  const reco::CaloID::Detectors detector);
67 
68  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
69 };
70 
71 
72 #endif
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const std::string &hitProducer, const std::string &hitCollection, const std::string &clusterCollection, const reco::CaloID::Detectors detector)
const EcalRecHitCollection * getCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
virtual void produce(edm::Event &, const edm::EventSetup &)
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
Multi5x5ClusterAlgo * island_p