#include <RecoTauQualityCuts.h>
Public Types | |
typedef std::function< bool(const Candidate &)> | CandQCutFunc |
typedef std::vector< CandQCutFunc > | CandQCutFuncCollection |
typedef std::map< int, CandQCutFuncCollection > | CandQCutFuncMap |
typedef std::function< bool(const TrackBaseRef &)> | TrackQCutFunc |
typedef std::vector< TrackQCutFunc > | TrackQCutFuncCollection |
Public Member Functions | |
bool | filterCand (const reco::Candidate &cand) const |
Filter a single Candidate. More... | |
template<typename CandRefType > | |
bool | filterCandRef (const CandRefType &cand) const |
Filter a Candidate held by a smart pointer or Ref. More... | |
template<typename Coll > | |
Coll | filterCandRefs (const Coll &refcoll, bool invert=false) const |
Filter a ref vector of Candidates. More... | |
bool | filterChargedCand (const reco::Candidate &cand) const |
or a single charged candidate More... | |
bool | filterTrack (const reco::TrackBaseRef &track) const |
Filter a single Track. More... | |
bool | filterTrack (const reco::TrackRef &track) const |
bool | filterTrack (const reco::Track &track) const |
template<typename Coll > | |
Coll | filterTracks (const Coll &coll, bool invert=false) const |
Filter a collection of Tracks. More... | |
RecoTauQualityCuts (const edm::ParameterSet &qcuts) | |
void | setLeadTrack (const reco::Track &leadTrack) |
Update the leading track. More... | |
void | setLeadTrack (const reco::Candidate &leadCand) |
void | setLeadTrack (const reco::CandidateRef &leadCand) |
void | setPV (const reco::VertexRef &vtx) |
Update the primary vertex. More... | |
Private Member Functions | |
bool | filterCandByType (const reco::Candidate &cand) const |
bool | filterGammaCand (const reco::Candidate &cand) const |
bool | filterNeutralHadronCand (const reco::Candidate &cand) const |
bool | filterTrack_ (const reco::Track *track) const |
Private Attributes | |
bool | checkHitPattern_ |
bool | checkPV_ |
const reco::Track * | leadTrack_ |
double | maxDeltaZ_ |
double | maxDeltaZToLeadTrack_ |
double | maxTrackChi2_ |
double | maxTransverseImpactParameter_ |
double | minGammaEt_ |
double | minNeutralHadronEt_ |
int | minTrackHits_ |
int | minTrackPixelHits_ |
double | minTrackPt_ |
double | minTrackVertexWeight_ |
reco::VertexRef | pv_ |
Definition at line 34 of file RecoTauQualityCuts.h.
typedef std::function<bool(const Candidate&)> reco::tau::RecoTauQualityCuts::CandQCutFunc |
Definition at line 39 of file RecoTauQualityCuts.h.
typedef std::vector<CandQCutFunc> reco::tau::RecoTauQualityCuts::CandQCutFuncCollection |
Definition at line 40 of file RecoTauQualityCuts.h.
typedef std::map<int, CandQCutFuncCollection> reco::tau::RecoTauQualityCuts::CandQCutFuncMap |
Definition at line 41 of file RecoTauQualityCuts.h.
typedef std::function<bool(const TrackBaseRef&)> reco::tau::RecoTauQualityCuts::TrackQCutFunc |
Definition at line 37 of file RecoTauQualityCuts.h.
typedef std::vector<TrackQCutFunc> reco::tau::RecoTauQualityCuts::TrackQCutFuncCollection |
Definition at line 38 of file RecoTauQualityCuts.h.
|
explicit |
Definition at line 296 of file RecoTauQualityCuts.cc.
References Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), Skims_PA_cff::name, fileinputsource_cfi::option, and AlCaHLTBitMon_QueryRunRegistry::string.
bool reco::tau::RecoTauQualityCuts::filterCand | ( | const reco::Candidate & | cand | ) | const |
Definition at line 529 of file RecoTauQualityCuts.cc.
References reco::Candidate::charge(), and mps_fire::result.
Referenced by filterCandRef(), and filterTracks().
|
private |
Definition at line 510 of file RecoTauQualityCuts.cc.
References funct::abs(), and reco::Candidate::pdgId().
Referenced by filterCandRefs().
|
inline |
Filter a Candidate held by a smart pointer or Ref.
Definition at line 79 of file RecoTauQualityCuts.h.
References filterCand().
Referenced by filterCandRefs().
|
inline |
Filter a ref vector of Candidates.
Definition at line 85 of file RecoTauQualityCuts.h.
References filterCandByType(), filterCandRef(), filterGammaCand(), filterNeutralHadronCand(), filterTrack_(), l1tstage2_dqm_sourceclient-live_cfg::invert, and convertSQLitetoXML_cfg::output.
Referenced by reco::tau::RecoTauVertexAssociator::getLeadCand(), reco::tau::RecoTauPiZeroTrivialPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), and reco::tau::RecoTauPiZeroStripPlugin2::operator()().
bool reco::tau::RecoTauQualityCuts::filterChargedCand | ( | const reco::Candidate & | cand | ) | const |
or a single charged candidate
Definition at line 454 of file RecoTauQualityCuts.cc.
References reco::Candidate::charge(), pat::PackedCandidate::dxy(), pat::PackedCandidate::dz(), getTrack(), reco::tau::qcuts::minPackedCandVertexWeight(), pat::PackedCandidate::pt(), and HLT_2018_cff::track.
Referenced by reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::filterTrack(), and setPV().
|
private |
Definition at line 498 of file RecoTauQualityCuts.cc.
References reco::Candidate::et().
Referenced by filterCandRefs().
|
private |
Definition at line 504 of file RecoTauQualityCuts.cc.
References reco::Candidate::et().
Referenced by filterCandRefs().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 399 of file RecoTauQualityCuts.cc.
References edm::RefToBase< T >::get().
Referenced by reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::filterTrack(), filterTracks(), and setPV().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackRef & | track | ) | const |
Definition at line 407 of file RecoTauQualityCuts.cc.
References edm::Ref< C, T, F >::get().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::Track & | track | ) | const |
Definition at line 415 of file RecoTauQualityCuts.cc.
|
private |
Definition at line 417 of file RecoTauQualityCuts.cc.
References reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::hitPattern(), reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), and reco::TrackBase::pt().
Referenced by filterCandRefs().
|
inline |
Filter a collection of Tracks.
Definition at line 65 of file RecoTauQualityCuts.h.
References filterCand(), filterTrack(), l1tstage2_dqm_sourceclient-live_cfg::invert, and convertSQLitetoXML_cfg::output.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Track & | leadTrack | ) |
Update the leading track.
Definition at line 550 of file RecoTauQualityCuts.cc.
References singlePfTauSkim_cff::leadTrack.
Referenced by setPV().
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Candidate & | leadCand | ) |
Definition at line 552 of file RecoTauQualityCuts.cc.
References getTrack().
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::CandidateRef & | leadCand | ) |
Update the leading track (using reference) If null, this will set the lead track ref null.
Definition at line 554 of file RecoTauQualityCuts.cc.
References getTrack(), and edm::Ref< C, T, F >::isNonnull().
|
inline |
Update the primary vertex.
Definition at line 46 of file RecoTauQualityCuts.h.
References filterChargedCand(), filterTrack(), reco::tau::leadCand(), singlePfTauSkim_cff::leadTrack, pv_, setLeadTrack(), HLT_2018_cff::track, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::operator()(), and reco::tau::RecoTauVertexAssociator::setEvent().
|
private |
Definition at line 115 of file RecoTauQualityCuts.h.
|
private |
Definition at line 116 of file RecoTauQualityCuts.h.
|
private |
Definition at line 103 of file RecoTauQualityCuts.h.
|
private |
Definition at line 110 of file RecoTauQualityCuts.h.
|
private |
Definition at line 111 of file RecoTauQualityCuts.h.
|
private |
Definition at line 106 of file RecoTauQualityCuts.h.
|
private |
Definition at line 109 of file RecoTauQualityCuts.h.
|
private |
Definition at line 113 of file RecoTauQualityCuts.h.
|
private |
Definition at line 114 of file RecoTauQualityCuts.h.
|
private |
Definition at line 108 of file RecoTauQualityCuts.h.
|
private |
Definition at line 107 of file RecoTauQualityCuts.h.
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
|
private |
Definition at line 112 of file RecoTauQualityCuts.h.
|
private |
Definition at line 101 of file RecoTauQualityCuts.h.
Referenced by setPV().