60 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
61 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
110 evt.
getByLabel(hitProducer_, hitCollection_, rhcHandle);
113 std::cout <<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
114 edm::LogError(
"IslandClusterProducerError") <<
"Error! can't get the product " << hitCollection_.c_str() ;
142 topology_p =
new EcalBarrelTopology(geoHandle);
147 topology_p =
new EcalEndcapTopology(geoHandle);
155 clusters =
island_p->
makeClusters(hitCollection_p, geometry_p, topology_p, geometryES_p, ecalPart);
158 std::vector <reco::ClusterShape> ClusVec;
159 for (
int erg=0;erg<int(clusters.size());++erg){
161 ClusVec.push_back(TestShape);
166 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
175 clusters_p->assign(clusters.begin(), clusters.end());
185 for (
unsigned int i = 0;
i < clusHandle->size();
i++){
188 evt.
put(shapeAssocs_p,clusterShapeAssociation);
T getParameter(std::string const &) const
IslandClusterProducer(const edm::ParameterSet &ps)
std::vector< ClusterShape > ClusterShapeCollection
collection of ClusterShape objects
virtual void produce(edm::Event &, const edm::EventSetup &)
PositionCalc posCalculator_
std::string barrelHitProducer_
std::string endcapClusterCollection_
std::string clustershapecollectionEE_
std::string endcapHitProducer_
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
std::string endcapHitCollection_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const std::string &hitProducer, const std::string &hitCollection, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)
std::string endcapClusterShapeAssociation_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
std::string barrelClusterCollection_
std::string barrelHitCollection_
IslandClusterAlgo::VerbosityLevel verbosity
const EcalRecHitCollection * getCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
std::string clustershapecollectionEB_