115 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
124 std::unique_ptr<const CaloSubdetectorTopology>
topology;
129 topology = std::make_unique<EcalBarrelTopology>(*geoHandle);
134 hit_collection, geometry_p, basicClusters, sevLv.
product(),
false, std::vector<RectangularEtaPhiRegion>());
136 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer...";
139 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
140 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
145 LogTrace(
"EcalClusters") <<
"Basic Clusters now put into event.";
151 edm::LogError(
"Missing Product") <<
"could not get a handle on the BasicClusterCollection!";
157 LogTrace(
"EcalClusters") <<
"Got the BasicClusterCollection" << std::endl;
167 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
171 LogTrace(
"EcalClusters") <<
"Hybrid Clusters (Basic/Super) added to the Event! :-)";
std::string superclusterCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void push_back(Ptr< T > const &iPtr)
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > hitsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > sevLvToken_
Log< level::Error, false > LogError
std::string basicclusterCollection_
T const * product() const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
HybridClusterAlgo * hybrid_p
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geoToken_