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");
87 outputCollection_ = iConfig.getParameter<
std::string>(
"outputColl");
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;
148 if (
it != rechits.end()) {
149 ecalSevLvlAlgo.severityLevel(
id, rechits);
178 corrClusters->push_back(newClus);
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSevLvlAlgoToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::EDGetTokenT< reco::SuperClusterCollection > sCInputProducerToken_
T const * product() const
std::vector< EcalRecHit >::const_iterator const_iterator
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::string outputCollection_
#define DEFINE_FWK_MODULE(type)
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_