52 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
53 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
55 const std::vector<std::string> flagnames = ps.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcluded");
57 const std::vector<int> v_chstatus = StringToEnumValue<EcalRecHit::Flags>(flagnames);
68 if (ps.
exists(
"reassignSeedCrysToClusterItSeeds"))
69 reassignSeedCrysToClusterItSeeds = ps.
getParameter<
bool>(
"reassignSeedCrysToClusterItSeeds");
72 barrelSeedThreshold, endcapSeedThreshold, v_chstatus, posCalculator_, reassignSeedCrysToClusterItSeeds);
110 std::unique_ptr<CaloSubdetectorTopology> topology_p;
114 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
117 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
128 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
129 clusters_p->assign(clusters.begin(), clusters.end());
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.
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
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_
reassignSeedCrysToClusterItSeeds
void produce(edm::Event &, const edm::EventSetup &) override
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::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< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
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() override