58 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
59 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
61 const std::vector<std::string> flagnames =
62 ps.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcluded");
64 const std::vector<int> v_chstatus=
65 StringToEnumValue<EcalRecHit::Flags>(flagnames);
76 bool reassignSeedCrysToClusterItSeeds=
false;
77 if(ps.
exists(
"reassignSeedCrysToClusterItSeeds")) reassignSeedCrysToClusterItSeeds = ps.
getParameter<
bool>(
"reassignSeedCrysToClusterItSeeds");
81 island_p =
new Multi5x5ClusterAlgo(barrelSeedThreshold, endcapSeedThreshold, v_chstatus, posCalculator_,reassignSeedCrysToClusterItSeeds);
146 clusters =
island_p->
makeClusters(hitCollection_p, geometry_p, topology_p, geometryES_p, detector);
150 clusters_p->assign(clusters.begin(), clusters.end());
T getParameter(std::string const &) const
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
std::vector< reco::BasicCluster > makeClusters(const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, reco::CaloID::Detectors detector, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< EcalRecHitCollection > barrelHitToken_
PositionCalc posCalculator_
std::string barrelClusterCollection_
edm::EDGetTokenT< EcalRecHitCollection > endcapHitToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
Multi5x5ClusterAlgo * island_p
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const reco::CaloID::Detectors detector)
std::string endcapClusterCollection_
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
~Multi5x5ClusterProducer()