CMS 3D CMS Logo

CosmicClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_CosmicClusterProducer_h_
2 #define RecoEcal_EgammaClusterProducers_CosmicClusterProducer_h_
3 
4 #include <memory>
5 #include <ctime>
6 #include <vector> //TEMP JHAUPT 4-27
7 
12 
14 
21 
23 
24 //
25 
26 
28 {
29  public:
30 
32 
33  ~CosmicClusterProducer() override;
34 
35  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 
46 
49 
52 
55 
56  //BasicClusterShape AssociationMap
59 
60  PositionCalc posCalculator_; // position calculation algorithm
61  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
63 
64  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
65 
66 
67  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
70  const std::string& clusterCollection,
71  const std::string& clusterShapeAssociation,
72  const CosmicClusterAlgo::EcalPart& ecalPart);
73 
74  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
75 
76 
77 };
78 
79 
80 #endif
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &hitsToken, const edm::EDGetTokenT< EcalUncalibratedRecHitCollection > &uhitsToken, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const CosmicClusterAlgo::EcalPart &ecalPart)
CosmicClusterAlgo * island_p
void produce(edm::Event &, const edm::EventSetup &) override
CosmicClusterProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > eeHitsToken_
CosmicClusterAlgo::VerbosityLevel verbosity
std::string endcapClusterShapeAssociation_
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUHitsToken_
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
std::string barrelClusterShapeAssociation_