1 #ifndef PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
2 #define PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
43 for( IC ic = matchCandidates->begin();
44 ic!= matchCandidates->end(); ++ic ) {
46 double eta2 = ic->eta();
47 double phi2 = ic->phi();
53 double deltaR2Min = 9999;
54 collection::const_iterator closest = hc->end();
55 for( collection::const_iterator genjet = hc->begin();
63 double eta1 = genjet->eta();
64 double phi1 = genjet->phi();
72 if( deltaR2<deltaR2Min ) {
78 if(deltaR2Min<0.01 ) {
T getParameter(std::string const &) const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const_iterator end() const
std::vector< GenJet > GenJetCollection
collection of GenJet objects
GenJetClosestMatchSelectorDefinition(const edm::ParameterSet &cfg)
container::const_iterator const_iterator
Jets made from MC generator particles.
edm::Handle< collection > HandleToCollection
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
const_iterator begin() const
double deltaR2(double eta1, double phi1, double eta2, double phi2)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double deltaR2(const Vector1 &v1, const Vector2 &v2)
reco::GenJetCollection collection
std::vector< reco::GenJet * > container