CMS 3D CMS Logo

HGCalDepthPreClusterer.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalDepthPreClusterer
2 #define RecoLocalCalo_HGCalRecAlgos_HGCalDepthPreClusterer
3 
4 
8 
9 #include <list>
10 
12 
14 {
15 public:
16 
18  {
19  }
20 
21  HGCalDepthPreClusterer(const edm::ParameterSet& conf, edm::ConsumesCollector& sumes, double radius_in, uint32_t min_clusters) :
22  radius(radius_in),
23  minClusters(min_clusters),
24  clusterTools(std::make_unique<hgcal::ClusterTools>(conf,sumes)) {
25  }
26 
27  void getEvent(const edm::Event& ev) { clusterTools->getEvent(ev); }
28  void getEventSetup(const edm::EventSetup& es) { clusterTools->getEventSetup(es); }
29 
30  typedef std::vector<reco::BasicCluster> ClusterCollection;
31  // typedef std::vector<reco::BasicCluster> MultiCluster;
32 
33  std::vector<reco::HGCalMultiCluster> makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const;
34 
35 private:
36  float radius;
37  uint32_t minClusters;
38 
39  std::unique_ptr<hgcal::ClusterTools> clusterTools;
40 
41 };
42 
43 #endif
HGCalDepthPreClusterer(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes, double radius_in, uint32_t min_clusters)
std::vector< reco::HGCalMultiCluster > makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const
bool ev
#define nullptr
std::unique_ptr< hgcal::ClusterTools > clusterTools
void getEvent(const edm::Event &ev)
void getEventSetup(const edm::EventSetup &es)
std::vector< reco::BasicCluster > ClusterCollection