#include <OverlapTest.h>
Public Member Functions | |
BasicOverlapTest (const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
bool | fillOverlapsForItem (const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const override |
Check for overlaps. More... | |
void | readInput (const edm::Event &iEvent, const edm::EventSetup &iSetup) override |
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 46 of file OverlapTest.h.
|
inline |
Definition at line 48 of file OverlapTest.h.
|
overridevirtual |
Check for overlaps.
Implements pat::helper::OverlapTest.
Definition at line 20 of file OverlapTest.cc.
References candidates_, checkRecoComponents_, reco::deltaR(), deltaR_, flavorHistoryFilter_cfi::dr, heavyIonCSV_trainingSettings::idx, isPreselected_, B2GTnPMonitor_cfi::item, patCandidatesForDimuonsSequences_cff::matches, analyzePatCleaning_cfg::overlaps, pairCut_, edm::PtrVector< T >::push_back(), and trackerHitRTTI::vector.
|
overridevirtual |
Read input, apply preselection cut.
Implements pat::helper::OverlapTest.
Definition at line 9 of file OverlapTest.cc.
References candidates_, heavyIonCSV_trainingSettings::idx, iEvent, isPreselected_, presel_, and pat::helper::OverlapTest::srcToken_.
|
protected |
The collection to check overlaps against.
Definition at line 72 of file OverlapTest.h.
Referenced by fillOverlapsForItem(), and readInput().
|
protected |
Check the overlapping by RECO components.
Definition at line 67 of file OverlapTest.h.
Referenced by fillOverlapsForItem().
|
protected |
Delta R for the match.
Definition at line 65 of file OverlapTest.h.
Referenced by fillOverlapsForItem().
|
protected |
Flag saying if each element has passed the preselection or not.
Definition at line 74 of file OverlapTest.h.
Referenced by fillOverlapsForItem(), and readInput().
|
protected |
Cut on the pair of objects together.
Definition at line 69 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 63 of file OverlapTest.h.
Referenced by readInput().