CMS 3D CMS Logo

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 <ctime>
6 
11 
13 
20 
23 
24 //
25 
27 public:
29 
30  ~IslandClusterProducer() override;
31  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
32  void produce(edm::Event&, const edm::EventSetup&) override;
33 
34 private:
35  int nMaxPrintout_; // max # of printouts
36  int nEvt_; // internal counter of events
37 
39 
42 
45 
48 
49  //BasicClusterShape AssociationMap
52 
53  PositionCalc posCalculator_; // position calculation algorithm
54  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
56 
57  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
58 
60 
62  const edm::EventSetup& es,
64  const std::string& clusterCollection,
65  const std::string& clusterShapeAssociation,
66  const IslandClusterAlgo::EcalPart& ecalPart);
67 
68  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
69 };
70 
71 #endif
IslandClusterProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHits_
std::string barrelClusterShapeAssociation_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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
void produce(edm::Event &, const edm::EventSetup &) override