8 for (std::vector<Direction>::const_iterator it =
items_.begin(), ed =
items_.end(); it != ed; ++it) {
20 items_.push_back(
Direction(it->eta(), it->phi()));
25 for (std::vector<Direction>::const_iterator it = items_.begin(), ed = items_.end(); it != ed; ++it) {
26 veto_->centerOn(it->eta(), it->phi());
38 items_.push_back(
Direction(it->eta(), it->phi()));
43 for (std::vector<Direction>::const_iterator it = items_.begin(), ed = items_.end(); it != ed; ++it) {
44 if (::
deltaR2(it->eta(), it->phi(),
eta, phi) < dR2constituent_)
60 evt_->getByToken(srcJets_,
jets);
62 evt_->getByToken(srcPFCandAssocMap_, jetToPFCandMap);
63 double dR2min = dR2jet_;
65 size_t numJets =
jets->size();
66 for (
size_t jetIndex = 0; jetIndex < numJets; ++jetIndex) {
68 double dR2 =
::deltaR2(vetoDir_.eta(), vetoDir_.phi(),
jet->eta(),
jet->phi());
78 pfCand != pfCandsMappedToJet.
end();
static AlgebraicMatrix initialize()
void setEvent(const edm::Event &evt, const edm::EventSetup &es) override
Picks up the directions of the given candidates.
void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Picks up the directions of the given candidates.
bool isNonnull() const
Checks for non-null.
bool veto(double eta, double phi, float value) const override
std::vector< Direction > items_
void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Picks up the directions of the given candidates.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const_iterator end() const
Termination of iteration.
bool veto(double eta, double phi, float value) const override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
const_iterator begin() const
Initialize an iterator over the RefVector.
void centerOn(double eta, double phi) override
Set axis for matching jets.
bool veto(double eta, double phi, float value) const override