CMS 3D CMS Logo

HGCalDepthPreClusterer.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalDepthPreClusterer
2 #define RecoLocalCalo_HGCalRecAlgos_HGCalDepthPreClusterer
3 
7 
8 #include <list>
9 
12 
14 public:
16  : radii({
17  0.,
18  0.,
19  0.,
20  }),
21  minClusters(0),
22  realSpaceCone(false),
23  clusterTools(nullptr) {}
24 
27  std::vector<float> radii_in,
28  uint32_t min_clusters,
29  bool real_space_cone)
30  : radii(radii_in),
31  minClusters(min_clusters),
32  realSpaceCone(real_space_cone),
33  clusterTools(std::make_unique<hgcal::ClusterTools>(conf, sumes)),
35 
36  void getEvent(const edm::Event& ev) { clusterTools->getEvent(ev); }
37  void getEventSetup(const edm::EventSetup& es) {
38  clusterTools->getEventSetup(es);
41  }
42 
43  typedef std::vector<reco::BasicCluster> ClusterCollection;
44  // typedef std::vector<reco::BasicCluster> MultiCluster;
45 
46  std::vector<reco::HGCalMultiCluster> makePreClusters(const reco::HGCalMultiCluster::ClusterCollection&) const;
47 
48 private:
49  std::vector<float> radii;
50  uint32_t minClusters;
53  std::unique_ptr<hgcal::ClusterTools> clusterTools;
56 };
57 
58 #endif
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
HGCalDepthPreClusterer(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes, std::vector< float > radii_in, uint32_t min_clusters, bool real_space_cone)
std::unique_ptr< hgcal::ClusterTools > clusterTools
void getEvent(const edm::Event &ev)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
std::vector< float > radii
void getEventSetup(const edm::EventSetup &es)
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:68
std::vector< reco::BasicCluster > ClusterCollection
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
std::vector< reco::HGCalMultiCluster > makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const