107 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the rawSuperClusters ";
115 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the RecHits ";
123 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the RecHits ";
139 auto corrClusters = std::make_unique<reco::SuperClusterCollection>();
142 reco::SuperClusterCollection::const_iterator aClus;
143 for (aClus = rawClusters->begin(); aClus != rawClusters->end(); aClus++) {
144 double theEt = aClus->energy() / cosh(aClus->eta());
154 DetId id = lazyTool.getMaximum(*seed).first;
188 corrClusters->push_back(newClus);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::SuperClusterCollection > sCInputProducerToken_
std::vector< EcalRecHit >::const_iterator const_iterator
#define DEFINE_FWK_MODULE(type)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::string outputCollection_
HiSpikeCleaner(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerBToken_
~HiSpikeCleaner() override
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerEToken_