Go to the documentation of this file. 1 #ifndef PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
2 #define PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
41 for (IC ic = matchCandidates->begin(); ic != matchCandidates->end(); ++ic) {
42 double eta2 = ic->eta();
43 double phi2 = ic->phi();
48 double deltaR2Min = 9999;
49 collection::const_iterator closest = hc->end();
50 for (collection::const_iterator genjet = hc->begin(); genjet != hc->end(); ++genjet, ++
key) {
55 double eta1 = genjet->eta();
56 double phi1 = genjet->phi();
69 if (deltaR2Min < 0.01) {
reco::GenJetCollection collection
Jets made from MC generator particles.
std::vector< GenJet > GenJetCollection
collection of GenJet objects
std::vector< reco::GenJet * > container
container::const_iterator const_iterator
edm::Handle< collection > HandleToCollection
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const_iterator end() const
const_iterator begin() const
GenJetClosestMatchSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::Candidate > > matchTo_