117 <<
"Error! can't get the rawSuperClusters ";
126 <<
"Error! can't get the RecHits ";
135 <<
"Error! can't get the RecHits ";
154 auto corrClusters = std::make_unique<reco::SuperClusterCollection>();
157 reco::SuperClusterCollection::const_iterator aClus;
158 for(aClus = rawClusters->begin(); aClus != rawClusters->end(); aClus++)
160 double theEt = aClus->energy()/cosh( aClus->eta() ) ;
163 if ( theEt <
etCut_ )
continue;
169 DetId id = lazyTool.getMaximum(*seed).first;
204 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_
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::string outputCollection_
HiSpikeCleaner(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerBToken_
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerEToken_