71 reco::SuperClusterCollection::const_iterator aClus;
72 reco::SuperClusterCollection::const_iterator cit;
73 for(aClus = UnskimmedL1NonIsoSC->begin(); aClus != UnskimmedL1NonIsoSC->end(); aClus++)
75 bool AlreadyThere =
false;
77 for(cit = L1IsoSC->begin(); cit != L1IsoSC->end(); cit++){
78 if( fabs(aClus->energy()- cit->energy()) < 0.5 && fabs(aClus->eta()- cit->eta()) < 0.0175 ){
79 float deltaphi=fabs( aClus->phi() - cit->phi() );
80 if(deltaphi>6.283185308) deltaphi -= 6.283185308;
81 if(deltaphi>3.141592654) deltaphi = 6.283185308-deltaphi;
83 if( deltaphi < 0.035 ){AlreadyThere =
true;
break;}
87 if(!AlreadyThere){corrClusters->push_back(*aClus);}
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &)
EgammaHLTRemoveDuplicatedSC(const edm::ParameterSet &)
std::string outputCollection_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~EgammaHLTRemoveDuplicatedSC()
edm::InputTag alreadyExistingSC_
edm::InputTag sCInputProducer_