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);
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;
55 };
56 
57 #endif
hgcal::RecHitTools
Definition: RecHitTools.h:23
BasicCluster.h
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
RecHitTools.h
HGCalMultiCluster.h
HGCalDepthPreClusterer::realSpaceCone
bool realSpaceCone
Definition: HGCalDepthPreClusterer.h:51
HGCalDepthPreClusterer
Definition: HGCalDepthPreClusterer.h:13
hgcal
Definition: EgammaPCAHelper.h:31
HGCalDepthPreClusterer::clusterTools
std::unique_ptr< hgcal::ClusterTools > clusterTools
Definition: HGCalDepthPreClusterer.h:53
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
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
edm::ESHandle< CaloGeometry >
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
HGCalDepthPreClusterer::minClusters
uint32_t minClusters
Definition: HGCalDepthPreClusterer.h:50
HGCalDepthPreClusterer::rhtools_
hgcal::RecHitTools rhtools_
Definition: HGCalDepthPreClusterer.h:54
HGCalDepthPreClusterer::ClusterCollection
std::vector< reco::BasicCluster > ClusterCollection
Definition: HGCalDepthPreClusterer.h:43
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
ClusterTools.h
HGCalDepthPreClusterer::radii
std::vector< float > radii
Definition: HGCalDepthPreClusterer.h:49
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
hgcal::RecHitTools::setGeometry
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:68
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:45