CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IslandClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_IslandClusterProducer_h_
2 #define RecoEcal_EgammaClusterProducers_IslandClusterProducer_h_
3 
4 #include <memory>
5 #include <time.h>
6 
11 
13 
19 
22 
23 //
24 
25 
27 {
28  public:
29 
31 
33 
34  virtual void produce(edm::Event&, const edm::EventSetup&);
35 
36  private:
37 
38  int nMaxPrintout_; // max # of printouts
39  int nEvt_; // internal counter of events
40 
42 
47 
50 
53 
54  //BasicClusterShape AssociationMap
57 
58  PositionCalc posCalculator_; // position calculation algorithm
59  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
61 
62  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
63 
65  const std::string& hitProducer_,
66  const std::string& hitCollection_);
67 
68 
69  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
70  const std::string& hitProducer,
72  const std::string& clusterCollection,
73  const std::string& clusterShapeAssociation,
74  const IslandClusterAlgo::EcalPart& ecalPart);
75 
76  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
77 };
78 
79 
80 #endif
IslandClusterProducer(const edm::ParameterSet &ps)
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string barrelClusterShapeAssociation_
IslandClusterAlgo * island_p
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const std::string &hitProducer, const std::string &hitCollection, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)
std::string endcapClusterShapeAssociation_
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
IslandClusterAlgo::VerbosityLevel verbosity
const EcalRecHitCollection * getCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)