43 std::string verbosityString = ps.
getParameter<std::string>(
"VerbosityLevel");
60 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
61 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
106 const std::string& hitProducer_,
107 const std::string& hitCollection_)
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() ;
124 const std::string& clusterCollection,
125 const std::string& clusterShapeAssociation,
138 std::string clustershapetag;
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_