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  void produce(edm::Event&, const edm::EventSetup&) override ;
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  //std::map<std::string,double> providedParameters;
63 
64  const bool doBarrel_;
65  const bool doEndcaps_;
68  const int clusEtaSize_ ;
69  const int clusPhiSize_;
72  const double clusSeedThr_;
73  const double clusSeedThrEndCap_;
74 
75  const bool useRecoFlag_;
77  const bool useDBStatus_;
79 
80  const int maxNumberofSeeds_ ;
82 
83  const int debug_;
84 
85  PositionCalc posCalculator_; // position calculation algorithm
86 };
87 #endif
EgammaHLTNxNClusterProducer(const edm::ParameterSet &ps)
const edm::EDGetTokenT< EcalRecHitCollection > endcapHitProducer_
float energy() const
Definition: EcalRecHit.h:68
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool operator()(EcalRecHit x, EcalRecHit y)
void produce(edm::Event &, const edm::EventSetup &) override
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
const edm::EDGetTokenT< EcalRecHitCollection > barrelHitProducer_