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
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
CaloGeometry
Definition: CaloGeometry.h:21
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::caloGeomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
Definition: HGCalDepthPreClusterer.h:55
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::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
edm::EventSetup
Definition: EventSetup.h:58
ClusterTools.h
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
HGCalDepthPreClusterer::radii
std::vector< float > radii
Definition: HGCalDepthPreClusterer.h:49
HGCalDepthPreClusterer::getEvent
void getEvent(const edm::Event &ev)
Definition: HGCalDepthPreClusterer.h:36
std
Definition: JetResolutionObject.h:76
HGCalDepthPreClusterer::getEventSetup
void getEventSetup(const edm::EventSetup &es)
Definition: HGCalDepthPreClusterer.h:37
HGCalDepthPreClusterer::HGCalDepthPreClusterer
HGCalDepthPreClusterer()
Definition: HGCalDepthPreClusterer.h:15
hgcal::RecHitTools::setGeometry
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:68
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
Point3D.h
HGCalDepthPreClusterer::makePreClusters
std::vector< reco::HGCalMultiCluster > makePreClusters(const reco::HGCalMultiCluster::ClusterCollection &) const
Definition: HGCalDepthPreClusterer.cc:33
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45