CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgammaHLTNxNClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_EgammaHLTNxNClusterProducer_h_
2 #define RecoEcal_EgammaClusterProducers_EgammaHLTNxNClusterProducer_h_
3 
4 
16 #include <memory>
17 #include <time.h>
18 
23 
25 
29 
30 //
34 
35 //Ecal status
38 
39 #include "TVector3.h"
40 #include <vector>
41 
42 
43 
44 // Less than operator for sorting EcalRecHits according to energy.
45 class ecalRecHitSort : public std::binary_function<EcalRecHit, EcalRecHit, bool>
46 {
47  public:
49  {
50  return (x.energy() > y.energy());
51  }
52 };
53 
54 
55 
56 
58 {
59  public:
60 
62 
64 
65 
66 
67  virtual void produce(edm::Event&, const edm::EventSetup&);
68 
69  private:
70 
71  void makeNxNClusters(edm::Event &evt, const edm::EventSetup &es,const EcalRecHitCollection *hits, const reco::CaloID::Detectors detector);
72 
73  bool checkStatusOfEcalRecHit(const EcalChannelStatus &channelStatus, const EcalRecHit &rh);
74 
75 
78 
79 
80  std::string barrelHits_;
81  std::string endcapHits_;
82 
83 
84 
85  PositionCalc posCalculator_; // position calculation algorithm
86 
87 
88 
89  std::map<std::string,double> providedParameters;
90 
91 
92 
95 
96 
97  double clusSeedThr_;
99 
100  bool doBarrel_;
102 
103 
108 
111 
112 
113  int debug_;
114 
115 
118 
119 
120 
121 
122 };
123 
124 
125 #endif
std::map< std::string, double > providedParameters
float energy() const
Definition: CaloRecHit.h:19
EgammaHLTNxNClusterProducer(const edm::ParameterSet &ps)
bool operator()(EcalRecHit x, EcalRecHit y)
void makeNxNClusters(edm::Event &evt, const edm::EventSetup &es, const EcalRecHitCollection *hits, const reco::CaloID::Detectors detector)
bool checkStatusOfEcalRecHit(const EcalChannelStatus &channelStatus, const EcalRecHit &rh)
Definition: DDAxes.h:10
virtual void produce(edm::Event &, const edm::EventSetup &)