CMS 3D CMS Logo

HGCalMulticlusteringImpl.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalMulticlusteringImpl_h__
2 #define __L1Trigger_L1THGCal_HGCalMulticlusteringImpl_h__
3 
8 
13 
15 public:
17 
18  void eventSetup(const edm::EventSetup& es) {
20  shape_.eventSetup(es);
21  }
22 
23  bool isPertinent(const l1t::HGCalCluster& clu, const l1t::HGCalMulticluster& mclu, double dR) const;
24 
25  void clusterizeDR(const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtr,
27  const HGCalTriggerGeometryBase& triggerGeometry);
28 
29  void clusterizeDBSCAN(const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtr,
31  const HGCalTriggerGeometryBase& triggerGeometry);
32 
33 private:
34  void findNeighbor(const std::vector<std::pair<unsigned int, double>>& rankedList,
35  unsigned int searchInd,
36  const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtr,
37  std::vector<unsigned int>& neigbors);
38  void finalizeClusters(std::vector<l1t::HGCalMulticluster>&,
41 
42  double dr_;
45  double distDbscan_ = 0.005;
46  unsigned minNDbscan_ = 3;
47 
50  std::unique_ptr<HGCalTriggerClusterIdentificationBase> id_;
51 };
52 
53 #endif
void eventSetup(const edm::EventSetup &es)
void eventSetup(const edm::EventSetup &)
HGCalMulticlusteringImpl(const edm::ParameterSet &conf)
std::unique_ptr< HGCalTriggerClusterIdentificationBase > id_
void findNeighbor(const std::vector< std::pair< unsigned int, double >> &rankedList, unsigned int searchInd, const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtr, std::vector< unsigned int > &neigbors)
bool isPertinent(const l1t::HGCalCluster &clu, const l1t::HGCalMulticluster &mclu, double dR) const
void eventSetup(const edm::EventSetup &es)
void clusterizeDR(const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtr, l1t::HGCalMulticlusterBxCollection &multiclusters, const HGCalTriggerGeometryBase &triggerGeometry)
void finalizeClusters(std::vector< l1t::HGCalMulticluster > &, l1t::HGCalMulticlusterBxCollection &, const HGCalTriggerGeometryBase &)
void clusterizeDBSCAN(const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtr, l1t::HGCalMulticlusterBxCollection &multiclusters, const HGCalTriggerGeometryBase &triggerGeometry)