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 
18 
23 
26 
27 #include <vector>
28 #include <memory>
29 #include <time.h>
30 
31 
32 namespace edm {
34 }
35 
36 // Less than operator for sorting EcalRecHits according to energy.
37 class ecalRecHitSort : public std::binary_function<EcalRecHit, EcalRecHit, bool>
38 {
39  public:
41  {
42  return (x.energy() > y.energy());
43  }
44 };
45 
46 
48  public:
49 
52 
53  virtual void produce(edm::Event&, const edm::EventSetup&);
54  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
55 
56  private:
57 
58  void makeNxNClusters(edm::Event &evt, const edm::EventSetup &es,const EcalRecHitCollection *hits, const reco::CaloID::Detectors detector);
59 
60  bool checkStatusOfEcalRecHit(const EcalChannelStatus &channelStatus, const EcalRecHit &rh);
61 
62 
65 
68 
69  PositionCalc posCalculator_; // position calculation algorithm
70  std::map<std::string,double> providedParameters;
71 
74 
75  double clusSeedThr_;
77 
78  bool doBarrel_;
79  bool doEndcaps_;
80 
81  bool useRecoFlag_;
82  bool useDBStatus_;
85 
88 
89  int debug_;
90 
93 };
94 #endif
std::map< std::string, double > providedParameters
EgammaHLTNxNClusterProducer(const edm::ParameterSet &ps)
float energy() const
Definition: EcalRecHit.h:68
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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)
edm::EDGetTokenT< EcalRecHitCollection > endcapHitProducer_
Definition: DDAxes.h:10
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< EcalRecHitCollection > barrelHitProducer_