1 #ifndef PhysicsTools_PatAlgos_interface_OverlapTest_h
2 #define PhysicsTools_PatAlgos_interface_OverlapTest_h
14 namespace pat {
namespace helper {
21 src_(iConfig.getParameter<edm::InputTag>(
"src")),
47 presel_(iConfig.getParameter<std::string>(
"preselection")),
48 deltaR_(iConfig.getParameter<double>(
"deltaR")),
50 pairCut_(iConfig.getParameter<std::string>(
"pairCut")) {}
OverlapTest(const std::string &name, const edm::ParameterSet &iConfig)
constructor: reads 'src' and 'requireNoOverlaps' parameters
virtual bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const =0
virtual void done()
end of event method. does nothing
virtual bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const
Check for overlaps.
virtual bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const
Check for overlaps.
edm::Handle< edm::View< reco::RecoCandidate > > others_
virtual void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Read input, apply preselection cut.
BasicOverlapTest(const std::string &name, const edm::ParameterSet &iConfig)
OverlapBySuperClusterSeed(const std::string &name, const edm::ParameterSet &iConfig)
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.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~OverlapTest()
destructor, does nothing
virtual void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup)
initializer for each event. to be implemented in child classes.
double deltaR_
Delta R for the match.
const std::string & name() const
bool checkRecoComponents_
Check the overlapping by RECO components.
bool requireNoOverlaps() const
StringCutObjectSelector< pat::DiObjectProxy > pairCut_
Cut on the pair of objects together.