59 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
60 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
143 clusters =
island_p->
makeClusters(hitCollection_p, geometry_p, topology_p, geometryES_p, ecalPart);
146 std::vector <reco::ClusterShape> ClusVec;
147 for (
int erg=0;erg<
int(clusters.size());++erg){
149 ClusVec.push_back(TestShape);
153 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
154 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
162 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
163 clusters_p->assign(clusters.begin(), clusters.end());
172 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
173 for (
unsigned int i = 0;
i < clusHandle->size();
i++){
176 evt.
put(
std::move(shapeAssocs_p),clusterShapeAssociation);
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
IslandClusterProducer(const edm::ParameterSet &ps)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PositionCalc posCalculator_
std::string endcapClusterCollection_
std::string clustershapecollectionEE_
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHits_
std::vector< reco::BasicCluster > makeClusters(const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())
std::string barrelClusterShapeAssociation_
ClusterShapeAlgo shapeAlgo_
IslandClusterAlgo * island_p
T const * product() const
std::string endcapClusterShapeAssociation_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)
std::string barrelClusterCollection_
IslandClusterAlgo::VerbosityLevel verbosity
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::string clustershapecollectionEB_