CMS 3D CMS Logo

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 <ctime>
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 
51  ~EgammaHLTNxNClusterProducer() override;
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
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< EcalRecHitCollection > endcapHitProducer_
float energy() const
Definition: EcalRecHit.h:68
bool operator()(EcalRecHit x, EcalRecHit y)
HLT enums.
const edm::EDGetTokenT< EcalRecHitCollection > barrelHitProducer_