110 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
121 std::unique_ptr<const CaloSubdetectorTopology>
topology;
127 topology = std::make_unique<EcalBarrelTopology>(geoHandle);
132 std::vector<RectangularEtaPhiRegion>());
134 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer..." ;
137 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
138 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
142 LogTrace(
"EcalClusters") <<
"Basic Clusters now put into event." ;
149 edm::LogError(
"Missing Product") <<
"could not get a handle on the BasicClusterCollection!" ;
155 LogTrace(
"EcalClusters")<<
"Got the BasicClusterCollection" << std::endl;
158 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
163 LogTrace(
"EcalClusters") <<
"Found: " << superClusters.size() <<
" superclusters." ;
165 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
166 superclusters_p->assign(superClusters.begin(), superClusters.end());
169 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
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
T const * product() const