77 rHInputProducerBToken_ = consumes<EcalRecHitCollection>(iConfig.getParameter<
edm::InputTag>(
"recHitProducerBarrel"));
78 rHInputProducerEToken_ = consumes<EcalRecHitCollection>(iConfig.getParameter<
edm::InputTag>(
"recHitProducerEndcap"));
80 sCInputProducerToken_ =
81 consumes<reco::SuperClusterCollection>(iConfig.getParameter<
edm::InputTag>(
"originalSuperClusterProducer"));
82 TimingCut_ = iConfig.getUntrackedParameter<
double>(
"TimingCut", 4.0);
83 swissCutThr_ = iConfig.getUntrackedParameter<
double>(
"swissCutThr", 0.95);
84 etCut_ = iConfig.getParameter<
double>(
"etCut");
86 outputCollection_ = iConfig.getParameter<
std::string>(
"outputColl");
87 produces<reco::SuperClusterCollection>(outputCollection_);
108 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the rawSuperClusters ";
116 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the RecHits ";
124 edm::LogError(
"EgammaSCCorrectionMakerError") <<
"Error! can't get the RecHits ";
141 auto corrClusters = std::make_unique<reco::SuperClusterCollection>();
144 reco::SuperClusterCollection::const_iterator aClus;
145 for (aClus = rawClusters->begin(); aClus != rawClusters->end(); aClus++) {
146 double theEt = aClus->energy() / cosh(aClus->eta());
156 DetId id = lazyTool.getMaximum(*seed).first;
190 corrClusters->push_back(newClus);