1 #ifndef PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
2 #define PhysicsTools_PFCandProducer_GenJetClosestMatchSelectorDefinition
45 for( IC ic = matchCandidates->begin();
46 ic!= matchCandidates->end(); ++ic ) {
48 double eta2 = ic->eta();
49 double phi2 = ic->phi();
55 double deltaR2Min = 9999;
56 collection::const_iterator closest = hc->end();
57 for( collection::const_iterator genjet = hc->begin();
65 double eta1 = genjet->eta();
66 double phi1 = genjet->phi();
74 if( deltaR2<deltaR2Min ) {
80 if(deltaR2Min<0.01 ) {
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const_iterator end() const
std::vector< GenJet > GenJetCollection
collection of GenJet objects
container::const_iterator const_iterator
edm::EDGetTokenT< edm::View< reco::Candidate > > matchTo_
Jets made from MC generator particles.
double deltaR2(const T1 &t1, const T2 &t2)
edm::Handle< collection > HandleToCollection
GenJetClosestMatchSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
const_iterator begin() const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
reco::GenJetCollection collection
std::vector< reco::GenJet * > container