#include <OverlapTest.h>
Public Member Functions | |
BasicOverlapTest (const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
virtual bool | fillOverlapsForItem (const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const |
Check for overlaps. More... | |
virtual void | readInput (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
Read input, apply preselection cut. More... | |
Public Member Functions inherited from pat::helper::OverlapTest | |
virtual void | done () |
end of event method. does nothing More... | |
const std::string & | name () const |
OverlapTest (const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC) | |
constructor: reads 'src' and 'requireNoOverlaps' parameters More... | |
bool | requireNoOverlaps () const |
virtual | ~OverlapTest () |
destructor, does nothing More... | |
Protected Attributes | |
edm::Handle< reco::CandidateView > | candidates_ |
The collection to check overlaps against. More... | |
bool | checkRecoComponents_ |
Check the overlapping by RECO components. More... | |
double | deltaR_ |
Delta R for the match. More... | |
std::vector< bool > | isPreselected_ |
Flag saying if each element has passed the preselection or not. More... | |
StringCutObjectSelector < pat::DiObjectProxy > | pairCut_ |
Cut on the pair of objects together. More... | |
PATStringCutObjectSelector | presel_ |
A generic preselection cut that can work on any Candidate, but has access also to methods of PAT specific objects. More... | |
Protected Attributes inherited from pat::helper::OverlapTest | |
std::string | name_ |
bool | requireNoOverlaps_ |
edm::EDGetTokenT < reco::CandidateView > | srcToken_ |
Definition at line 44 of file OverlapTest.h.
|
inline |
Definition at line 46 of file OverlapTest.h.
|
virtual |
Check for overlaps.
Implements pat::helper::OverlapTest.
Definition at line 23 of file OverlapTest.cc.
References candidates_, checkRecoComponents_, reco::deltaR(), deltaR_, customizeTrackingMonitorSeedNumber::idx, isPreselected_, analyzePatCleaning_cfg::overlaps, pairCut_, edm::PtrVector< T >::push_back(), and python.multivaluedict::sort().
|
virtual |
Read input, apply preselection cut.
Implements pat::helper::OverlapTest.
Definition at line 10 of file OverlapTest.cc.
References candidates_, edm::Event::getByToken(), customizeTrackingMonitorSeedNumber::idx, isPreselected_, presel_, and pat::helper::OverlapTest::srcToken_.
Referenced by parserPerfsuiteMetadata.parserPerfsuiteMetadata::readCmsScimarkTest().
|
protected |
The collection to check overlaps against.
Definition at line 69 of file OverlapTest.h.
Referenced by fillOverlapsForItem(), and readInput().
|
protected |
Check the overlapping by RECO components.
Definition at line 64 of file OverlapTest.h.
Referenced by fillOverlapsForItem().
|
protected |
Delta R for the match.
Definition at line 62 of file OverlapTest.h.
Referenced by fillOverlapsForItem().
|
protected |
Flag saying if each element has passed the preselection or not.
Definition at line 71 of file OverlapTest.h.
Referenced by fillOverlapsForItem(), and readInput().
|
protected |
Cut on the pair of objects together.
Definition at line 66 of file OverlapTest.h.
Referenced by fillOverlapsForItem().
|
protected |
A generic preselection cut that can work on any Candidate, but has access also to methods of PAT specific objects.
Definition at line 60 of file OverlapTest.h.
Referenced by readInput().