#include <OverlapTest.h>
Public Member Functions | |
virtual void | done () |
end of event method. does nothing | |
virtual bool | fillOverlapsForItem (const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const =0 |
const std::string & | name () const |
OverlapTest (const std::string &name, const edm::ParameterSet &iConfig) | |
constructor: reads 'src' and 'requireNoOverlaps' parameters | |
virtual void | readInput (const edm::Event &iEvent, const edm::EventSetup &iSetup)=0 |
initializer for each event. to be implemented in child classes. | |
bool | requireNoOverlaps () const |
virtual | ~OverlapTest () |
destructor, does nothing | |
Protected Attributes | |
std::string | name_ |
bool | requireNoOverlaps_ |
edm::InputTag | src_ |
Definition at line 17 of file OverlapTest.h.
pat::helper::OverlapTest::OverlapTest | ( | const std::string & | name, |
const edm::ParameterSet & | iConfig | ||
) | [inline] |
constructor: reads 'src' and 'requireNoOverlaps' parameters
Definition at line 20 of file OverlapTest.h.
: src_(iConfig.getParameter<edm::InputTag>("src")), name_(name), requireNoOverlaps_(iConfig.getParameter<bool>("requireNoOverlaps")) {}
virtual pat::helper::OverlapTest::~OverlapTest | ( | ) | [inline, virtual] |
virtual void pat::helper::OverlapTest::done | ( | ) | [inline, virtual] |
virtual bool pat::helper::OverlapTest::fillOverlapsForItem | ( | const reco::Candidate & | item, |
reco::CandidatePtrVector & | overlapsToFill | ||
) | const [pure virtual] |
check for overlaps for a given item. to be implemented in child classes return true if overlaps have been found, and fills the PtrVector
Implemented in pat::helper::BasicOverlapTest, and pat::helper::OverlapBySuperClusterSeed.
const std::string& pat::helper::OverlapTest::name | ( | void | ) | const [inline] |
Definition at line 35 of file OverlapTest.h.
References name_.
Referenced by pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem().
{ return name_; }
virtual void pat::helper::OverlapTest::readInput | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [pure virtual] |
initializer for each event. to be implemented in child classes.
Implemented in pat::helper::BasicOverlapTest, and pat::helper::OverlapBySuperClusterSeed.
bool pat::helper::OverlapTest::requireNoOverlaps | ( | ) | const [inline] |
Definition at line 36 of file OverlapTest.h.
References requireNoOverlaps_.
{ return requireNoOverlaps_; }
std::string pat::helper::OverlapTest::name_ [protected] |
Definition at line 39 of file OverlapTest.h.
Referenced by name().
bool pat::helper::OverlapTest::requireNoOverlaps_ [protected] |
Definition at line 40 of file OverlapTest.h.
Referenced by requireNoOverlaps().
edm::InputTag pat::helper::OverlapTest::src_ [protected] |
Definition at line 38 of file OverlapTest.h.
Referenced by pat::helper::BasicOverlapTest::readInput(), and pat::helper::OverlapBySuperClusterSeed::readInput().