1 #ifndef PhysicsTools_PatAlgos_interface_OverlapTest_h 2 #define PhysicsTools_PatAlgos_interface_OverlapTest_h 48 presel_(iConfig.getParameter<
std::
string>(
"preselection")),
49 deltaR_(iConfig.getParameter<double>(
"deltaR")),
50 checkRecoComponents_(iConfig.getParameter<
bool>(
"checkRecoComponents")),
51 pairCut_(iConfig.getParameter<
std::
string>(
"pairCut")) {}
OverlapBySuperClusterSeed(const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::CandidateView > srcToken_
virtual void done()
end of event method. does nothing
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PATStringCutObjectSelector presel_
A generic preselection cut that can work on any Candidate, but has access also to methods of PAT spec...
edm::Handle< reco::CandidateView > candidates_
The collection to check overlaps against.
virtual void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup)=0
initializer for each event. to be implemented in child classes.
std::vector< bool > isPreselected_
Flag saying if each element has passed the preselection or not.
virtual ~OverlapTest()
destructor, does nothing
virtual bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const =0
BasicOverlapTest(const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
double deltaR_
Delta R for the match.
const std::string & name() const
bool checkRecoComponents_
Check the overlapping by RECO components.
edm::Handle< reco::CandidateView > others_
bool requireNoOverlaps() const
StringCutObjectSelector< pat::DiObjectProxy > pairCut_
Cut on the pair of objects together.
OverlapTest(const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
constructor: reads 'src' and 'requireNoOverlaps' parameters
edm::View< Candidate > CandidateView
view of a collection containing candidates
void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
initializer for each event. to be implemented in child classes.