37 descriptions.
add((
"hltEgammaHLTRemoveDuplicatedSC"), desc);
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
EgammaHLTRemoveDuplicatedSC(const edm::ParameterSet &)
std::string outputCollection_
edm::EDGetTokenT< reco::SuperClusterCollection > sCInputProducer_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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)