37 descriptions.
add((
"hltEgammaHLTRemoveDuplicatedSC"), desc);
58 auto corrClusters = std::make_unique<reco::SuperClusterCollection>();
61 reco::SuperClusterCollection::const_iterator aClus;
62 reco::SuperClusterCollection::const_iterator cit;
63 for(aClus = UnskimmedL1NonIsoSC->begin(); aClus != UnskimmedL1NonIsoSC->end(); aClus++)
65 bool AlreadyThere =
false;
67 for(cit = L1IsoSC->begin(); cit != L1IsoSC->end(); cit++){
68 if( fabs(aClus->energy()- cit->energy()) < 0.5 && fabs(aClus->eta()- cit->eta()) < 0.0175 ){
69 float deltaphi=fabs( aClus->phi() - cit->phi() );
70 if(deltaphi>6.283185308) deltaphi -= 6.283185308;
71 if(deltaphi>3.141592654) deltaphi = 6.283185308-deltaphi;
73 if( deltaphi < 0.035 ){AlreadyThere =
true;
break;}
77 if(!AlreadyThere){corrClusters->push_back(*aClus);}
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTRemoveDuplicatedSC(const edm::ParameterSet &)
std::string outputCollection_
edm::EDGetTokenT< reco::SuperClusterCollection > sCInputProducer_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~EgammaHLTRemoveDuplicatedSC()
edm::EDGetTokenT< reco::SuperClusterCollection > alreadyExistingSC_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::Event &, const edm::EventSetup &) override