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 ) {
95 items_.push_back(
Direction((*pfCand)->eta(), (*pfCand)->phi()));
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.
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.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)