109 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
120 std::unique_ptr<const CaloSubdetectorTopology>
topology;
126 topology = std::make_unique<EcalBarrelTopology>(geoHandle);
131 std::vector<EcalEtaPhiRegion>());
133 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer..." ;
136 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
137 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
141 LogTrace(
"EcalClusters") <<
"Basic Clusters now put into event." ;
148 edm::LogError(
"Missing Product") <<
"could not get a handle on the BasicClusterCollection!" ;
154 LogTrace(
"EcalClusters")<<
"Got the BasicClusterCollection" << std::endl;
157 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
162 LogTrace(
"EcalClusters") <<
"Found: " << superClusters.size() <<
" superclusters." ;
164 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
165 superclusters_p->assign(superClusters.begin(), superClusters.end());
168 LogTrace(
"EcalClusters") <<
"Hybrid Clusters (Basic/Super) added to the Event! :-)" ;
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
std::string superclusterCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CaloTopology const * topology(0)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void push_back(Ptr< T > const &iPtr)
edm::EDGetTokenT< EcalRecHitCollection > hitsToken_
std::string basicclusterCollection_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
HybridClusterAlgo * hybrid_p
T const * product() const
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())