14 for (std::vector<Direction>::const_iterator it =
items_.begin(), ed =
items_.end(); it != ed; ++it) {
26 items_.push_back(
Direction(it->eta(), it->phi()));
33 for (std::vector<Direction>::const_iterator it = items_.begin(), ed = items_.end(); it != ed; ++it) {
34 veto_->centerOn(it->eta(), it->phi());
35 if ( veto_->veto(eta,phi,value) )
return true;
46 items_.push_back(
Direction(it->eta(), it->phi()));
53 for (std::vector<Direction>::const_iterator it = items_.begin(), ed = items_.end(); it != ed; ++it) {
54 if (::
deltaR2(it->eta(), it->phi(),
eta,
phi) < dR2constituent_)
return true;
73 evt_->getByLabel(srcJets_, jets);
76 evt_->getByLabel(srcPFCandAssocMap_, jetToPFCandMap);
77 double dR2min = dR2jet_;
79 size_t numJets = jets->size();
80 for (
size_t jetIndex = 0; jetIndex < numJets; ++jetIndex ) {
82 double dR2 =
::deltaR2(vetoDir_.eta(), vetoDir_.phi(), jet->eta(), jet->phi());
93 pfCand != pfCandsMappedToJet.
end(); ++pfCand ) {
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual void setEvent(const edm::Event &evt, const edm::EventSetup &es)
Picks up the directions of the given candidates.
virtual bool veto(double eta, double phi, float value) const
virtual bool veto(double eta, double phi, float value) const
virtual bool veto(double eta, double phi, float value) const
const_iterator end() const
Termination of iteration.
virtual void centerOn(double eta, double phi)
Set axis for matching jets.
std::vector< Direction > items_
const_iterator begin() const
Initialize an iterator over the RefVector.
bool isNonnull() const
Checks for non-null.
virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Picks up the directions of the given candidates.
double deltaR2(double eta1, double phi1, double eta2, double phi2)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Picks up the directions of the given candidates.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.