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)) {}
34 
35  void getEvent(const edm::Event& ev) { clusterTools->getEvent(ev); }
36  void getEventSetup(const edm::EventSetup& es) {
37  clusterTools->getEventSetup(es);
39  }
40 
41  typedef std::vector<reco::BasicCluster> ClusterCollection;
42  // typedef std::vector<reco::BasicCluster> MultiCluster;
43 
44  std::vector<reco::HGCalMultiCluster> makePreClusters(const reco::HGCalMultiCluster::ClusterCollection&) const;
45 
46 private:
47  std::vector<float> radii;
48  uint32_t minClusters;
51  std::unique_ptr<hgcal::ClusterTools> clusterTools;
53 };
54 
55 #endif
hgcal::RecHitTools
Definition: RecHitTools.h:21
BasicCluster.h
HGCalMultiCluster.h
HGCalDepthPreClusterer::realSpaceCone
bool realSpaceCone
Definition: HGCalDepthPreClusterer.h:49
HGCalDepthPreClusterer
Definition: HGCalDepthPreClusterer.h:13
hgcal
Definition: EgammaPCAHelper.h:31
HGCalDepthPreClusterer::clusterTools
std::unique_ptr< hgcal::ClusterTools > clusterTools
Definition: HGCalDepthPreClusterer.h:51
edm::PtrVector
Definition: PtrVector.h:36
HGCalDepthPreClusterer::HGCalDepthPreClusterer
HGCalDepthPreClusterer(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes, std::vector< float > radii_in, uint32_t min_clusters, bool real_space_cone)
Definition: HGCalDepthPreClusterer.h:25
HGCalDepthPreClusterer::minClusters
uint32_t minClusters
Definition: HGCalDepthPreClusterer.h:48
HGCalDepthPreClusterer::rhtools_
hgcal::RecHitTools rhtools_
Definition: HGCalDepthPreClusterer.h:52
HGCalDepthPreClusterer::ClusterCollection
std::vector< reco::BasicCluster > ClusterCollection
Definition: HGCalDepthPreClusterer.h:41
edm::ParameterSet
Definition: ParameterSet.h:36
edm::EventSetup
Definition: EventSetup.h:57
ClusterTools.h
hgcal::RecHitTools::getEventSetup
void getEventSetup(const edm::EventSetup &)
Definition: RecHitTools.cc:70
HGCalDepthPreClusterer::radii
std::vector< float > radii
Definition: HGCalDepthPreClusterer.h:47
HGCalDepthPreClusterer::getEvent
void getEvent(const edm::Event &ev)
Definition: HGCalDepthPreClusterer.h:35
std
Definition: JetResolutionObject.h:76
HGCalDepthPreClusterer::getEventSetup
void getEventSetup(const edm::EventSetup &es)
Definition: HGCalDepthPreClusterer.h:36
HGCalDepthPreClusterer::HGCalDepthPreClusterer
HGCalDepthPreClusterer()
Definition: HGCalDepthPreClusterer.h:15
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
Point3D.h
HGCalDepthPreClusterer::makePreClusters
std::vector< reco::HGCalMultiCluster > makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const
Definition: HGCalDepthPreClusterer.cc:33
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
RecHitTools.h