CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <time.h>
6 #include <vector> //TEMP JHAUPT 4-27
7 
12 
14 
21 
23 
24 //
25 
26 
28 {
29  public:
30 
32 
34 
35  virtual void produce(edm::Event&, const edm::EventSetup&);
36 
37  private:
38 
39  int nMaxPrintout_; // max # of printouts
40  int nEvt_; // internal counter of events
41 
43 
44  std::string barrelHitProducer_;
45  std::string endcapHitProducer_;
46  std::string barrelHitCollection_;
47  std::string endcapHitCollection_;
48 
49  std::string barrelUHitProducer_;
50  std::string endcapUHitProducer_;
51  std::string barrelUHitCollection_;
52  std::string endcapUHitCollection_;
53 
56 
59 
60  //BasicClusterShape AssociationMap
63 
64  PositionCalc posCalculator_; // position calculation algorithm
65  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
67 
68  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
69 
71  const std::string& hitProducer_,
72  const std::string& hitCollection_);
73 
75  const std::string& hitProducer_,
76  const std::string& hitCollection_);
77 
78  void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es,
79  const std::string& hitProducer,
80  const std::string& hitCollection,
81  const std::string& uhitProducer,
82  const std::string& uhitCollection,
83  const std::string& clusterCollection,
84  const std::string& clusterShapeAssociation,
85  const CosmicClusterAlgo::EcalPart& ecalPart);
86 
87  void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector);
88 
89 
90 };
91 
92 
93 #endif
const EcalRecHitCollection * getCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
CosmicClusterAlgo * island_p
virtual void produce(edm::Event &, const edm::EventSetup &)
CosmicClusterProducer(const edm::ParameterSet &ps)
CosmicClusterAlgo::VerbosityLevel verbosity
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const std::string &hitProducer, const std::string &hitCollection, const std::string &uhitProducer, const std::string &uhitCollection, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const CosmicClusterAlgo::EcalPart &ecalPart)
std::string endcapClusterShapeAssociation_
const EcalUncalibratedRecHitCollection * getUCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
std::string barrelClusterShapeAssociation_