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 
17  HGCalDepthPreClusterer() : radii({0.,0.,0.,}), minClusters(0), realSpaceCone(false), clusterTools(nullptr)
18  {
19  }
20 
21  HGCalDepthPreClusterer(const edm::ParameterSet& conf, edm::ConsumesCollector& sumes, std::vector<float> radii_in, uint32_t min_clusters, bool real_space_cone) :
22  radii(radii_in),
23  minClusters(min_clusters),
24  realSpaceCone(real_space_cone),
25  clusterTools(std::make_unique<hgcal::ClusterTools>(conf,sumes)) {
26  }
27 
28  void getEvent(const edm::Event& ev) { clusterTools->getEvent(ev); }
29  void getEventSetup(const edm::EventSetup& es) { clusterTools->getEventSetup(es); }
30 
31  typedef std::vector<reco::BasicCluster> ClusterCollection;
32  // typedef std::vector<reco::BasicCluster> MultiCluster;
33 
34  std::vector<reco::HGCalMultiCluster> makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const;
35 
36 private:
37  std::vector<float> radii;
38  uint32_t minClusters;
41  std::unique_ptr<hgcal::ClusterTools> clusterTools;
42 
43  static const unsigned int lastLayerEE = 28;
44  static const unsigned int lastLayerFH = 40;
45  static const unsigned int lastLayerBH = 52;
46 
47 };
48 
49 #endif
static const unsigned int lastLayerBH
HGCalDepthPreClusterer(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes, std::vector< float > radii_in, uint32_t min_clusters, bool real_space_cone)
std::vector< reco::HGCalMultiCluster > makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const
bool ev
std::unique_ptr< hgcal::ClusterTools > clusterTools
void getEvent(const edm::Event &ev)
std::vector< float > radii
static const unsigned int lastLayerEE
static const unsigned int lastLayerFH
void getEventSetup(const edm::EventSetup &es)
std::vector< reco::BasicCluster > ClusterCollection