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 
14 
16 
17 public:
18 
20 
21  void eventSetup(const edm::EventSetup& es)
22  {
24  shape_.eventSetup(es);
25  }
26 
27  bool isPertinent( const l1t::HGCalCluster & clu,
28  const l1t::HGCalMulticluster & mclu,
29  double dR ) const;
30 
31  void clusterizeDR( const std::vector<edm::Ptr<l1t::HGCalCluster>> & clustersPtr,
32  l1t::HGCalMulticlusterBxCollection & multiclusters,
33  const HGCalTriggerGeometryBase & triggerGeometry
34  );
35 
36  void clusterizeDBSCAN( const std::vector<edm::Ptr<l1t::HGCalCluster>> & clustersPtr,
37  l1t::HGCalMulticlusterBxCollection & multiclusters,
38  const HGCalTriggerGeometryBase & triggerGeometry
39  );
40 
41 private:
42 
43  void findNeighbor( const std::vector<std::pair<unsigned int,double>>& rankedList,
44  unsigned int searchInd,
45  const std::vector<edm::Ptr<l1t::HGCalCluster>> & clustersPtr,
46  std::vector<unsigned int>& neigbors);
47  void finalizeClusters(std::vector<l1t::HGCalMulticluster>&,
50 
51  double dr_;
54  double distDbscan_ = 0.005;
55  unsigned minNDbscan_ = 3;
56 
59  std::unique_ptr<HGCalTriggerClusterIdentificationBase> id_;
60 
61 };
62 
63 #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)