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 
20 
23 
24 //
25 
26 
28 {
29  public:
30 
32 
34 
35  virtual void produce(edm::Event&, const edm::EventSetup&) override;
36 
37  private:
38 
39  int nMaxPrintout_; // max # of printouts
40  int nEvt_; // internal counter of events
41 
43 
44 
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 
66 
67 
68  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
70  const std::string& clusterCollection,
71  const std::string& clusterShapeAssociation,
72  const IslandClusterAlgo::EcalPart& ecalPart);
73 
74  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
75 };
76 
77 
78 #endif
IslandClusterProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHits_
std::string barrelClusterShapeAssociation_
IslandClusterAlgo * island_p
std::string endcapClusterShapeAssociation_
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
IslandClusterAlgo::VerbosityLevel verbosity
virtual void produce(edm::Event &, const edm::EventSetup &) override