Go to the documentation of this file.
93 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
94 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
96 const std::vector<std::string> flagnames = ps.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcluded");
98 const std::vector<int> v_chstatus = StringToEnumValue<EcalRecHit::Flags>(flagnames);
109 if (ps.
exists(
"reassignSeedCrysToClusterItSeeds"))
150 std::unique_ptr<CaloSubdetectorTopology> topology_p;
154 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
157 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
168 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
~Multi5x5ClusterProducer() override
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > barrelHitToken_
std::string barrelClusterCollection_
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
edm::EDGetTokenT< EcalRecHitCollection > endcapHitToken_
void produce(edm::Event &, const edm::EventSetup &) override
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
Multi5x5ClusterAlgo * island_p
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 >())
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
reassignSeedCrysToClusterItSeeds
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::string endcapClusterCollection_
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
PositionCalc posCalculator_
bool counterExceeded() const
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
T getParameter(std::string const &) const
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const reco::CaloID::Detectors detector)