68 : ecalSevLvlAlgoToken_(
esConsumes()), ecalClusterToolsESGetTokens_{consumesCollector()} {
78 rHInputProducerBToken_ = consumes<EcalRecHitCollection>(
iConfig.getParameter<
edm::InputTag>(
"recHitProducerBarrel"));
79 rHInputProducerEToken_ = consumes<EcalRecHitCollection>(
iConfig.getParameter<
edm::InputTag>(
"recHitProducerEndcap"));
81 sCInputProducerToken_ =
82 consumes<reco::SuperClusterCollection>(
iConfig.getParameter<
edm::InputTag>(
"originalSuperClusterProducer"));
83 TimingCut_ =
iConfig.getUntrackedParameter<
double>(
"TimingCut", 4.0);
84 swissCutThr_ =
iConfig.getUntrackedParameter<
double>(
"swissCutThr", 0.95);
85 etCut_ =
iConfig.getParameter<
double>(
"etCut");
88 produces<reco::SuperClusterCollection>(outputCollection_);
129 auto corrClusters = std::make_unique<reco::SuperClusterCollection>();
132 reco::SuperClusterCollection::const_iterator aClus;
133 for (aClus = rawClusters->begin(); aClus != rawClusters->end(); aClus++) {
134 double theEt = aClus->energy() / cosh(aClus->eta());
144 DetId id = lazyTool.getMaximum(*seed).first;
149 ecalSevLvlAlgo.severityLevel(
id,
rechits);
178 corrClusters->push_back(newClus);
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSevLvlAlgoToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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
bool getData(T &iHolder) const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::string outputCollection_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
HiSpikeCleaner(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerBToken_
~HiSpikeCleaner() override
edm::EDGetTokenT< EcalRecHitCollection > rHInputProducerEToken_