#include <EventDependentAbsVetos.h>
Public Member Functions | |
virtual void | centerOn (double eta, double phi) |
Nothing to do for this. | |
OtherCandVeto (const edm::InputTag candidates, AbsVeto *veto) | |
Create a veto specifying the input collection of the candidates, and the deltaR. | |
virtual void | setEvent (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
Picks up the directions of the given candidates. | |
virtual bool | veto (double eta, double phi, float value) const |
virtual | ~OtherCandVeto () |
Private Attributes | |
std::vector< Direction > | items_ |
edm::InputTag | src_ |
std::auto_ptr< AbsVeto > | veto_ |
Definition at line 34 of file EventDependentAbsVetos.h.
reco::isodeposit::OtherCandVeto::OtherCandVeto | ( | const edm::InputTag | candidates, |
AbsVeto * | veto | ||
) | [inline] |
Create a veto specifying the input collection of the candidates, and the deltaR.
Definition at line 37 of file EventDependentAbsVetos.h.
virtual reco::isodeposit::OtherCandVeto::~OtherCandVeto | ( | ) | [inline, virtual] |
Definition at line 41 of file EventDependentAbsVetos.h.
{}
virtual void reco::isodeposit::OtherCandVeto::centerOn | ( | double | eta, |
double | phi | ||
) | [inline, virtual] |
Nothing to do for this.
Reimplemented from reco::isodeposit::AbsVeto.
Definition at line 48 of file EventDependentAbsVetos.h.
{ }
void reco::isodeposit::OtherCandVeto::setEvent | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Picks up the directions of the given candidates.
Implements reco::isodeposit::EventDependentAbsVeto.
Definition at line 37 of file EventDependentAbsVetos.cc.
References edm::Event::getByLabel().
{ items_.clear(); edm::Handle<edm::View<reco::Candidate> > candidates; iEvent.getByLabel(src_, candidates); for (edm::View<reco::Candidate>::const_iterator it = candidates->begin(), ed = candidates->end(); it != ed; ++it) { items_.push_back(Direction(it->eta(), it->phi())); } }
bool reco::isodeposit::OtherCandVeto::veto | ( | double | eta, |
double | phi, | ||
float | value | ||
) | const [virtual] |
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum This is true if the deposit is within the stored AbsVeto of any item of the source collection
Implements reco::isodeposit::AbsVeto.
Definition at line 27 of file EventDependentAbsVetos.cc.
std::vector<Direction> reco::isodeposit::OtherCandVeto::items_ [private] |
Definition at line 55 of file EventDependentAbsVetos.h.
Definition at line 54 of file EventDependentAbsVetos.h.
std::auto_ptr<AbsVeto> reco::isodeposit::OtherCandVeto::veto_ [private] |
Definition at line 56 of file EventDependentAbsVetos.h.