#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) const |
Update the leading track. More... | |
void | setLeadTrack (const reco::Candidate &leadCand) const |
void | setLeadTrack (const reco::CandidateRef &leadCand) const |
void | setPV (const reco::VertexRef &vtx) const |
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 33 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 293 of file RecoTauQualityCuts.cc.
References Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), dataset::name, TSGForRoadSearch_cfi::option, and AlCaHLTBitMon_QueryRunRegistry::string.
bool reco::tau::RecoTauQualityCuts::filterCand | ( | const reco::Candidate & | cand | ) | const |
Definition at line 532 of file RecoTauQualityCuts.cc.
References reco::Candidate::charge(), and mps_fire::result.
Referenced by filterCandRef(), and filterTracks().
|
private |
Definition at line 513 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 83 of file RecoTauQualityCuts.h.
References filterCandByType(), filterCandRef(), filterGammaCand(), filterNeutralHadronCand(), filterTrack_(), TopAnalysis_sequences::invert, and convertSQLitetoXML_cfg::output.
Referenced by reco::tau::RecoTauVertexAssociator::getLeadCand(), reco::tau::RecoTauPiZeroTrivialPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::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 459 of file RecoTauQualityCuts.cc.
References reco::Candidate::charge(), pat::PackedCandidate::dxy(), pat::PackedCandidate::dz(), getTrack(), reco::tau::qcuts::minPackedCandVertexWeight(), pat::PackedCandidate::pt(), and HiIsolationCommonParameters_cff::track.
Referenced by reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::filterTrack(), and setPV().
|
private |
Definition at line 503 of file RecoTauQualityCuts.cc.
References reco::Candidate::et().
Referenced by filterCandRefs().
|
private |
Definition at line 508 of file RecoTauQualityCuts.cc.
References reco::Candidate::et().
Referenced by filterCandRefs().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 405 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 413 of file RecoTauQualityCuts.cc.
References edm::Ref< C, T, F >::get().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::Track & | track | ) | const |
Definition at line 421 of file RecoTauQualityCuts.cc.
|
private |
Definition at line 426 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(), TopAnalysis_sequences::invert, and convertSQLitetoXML_cfg::output.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Track & | leadTrack | ) | const |
Update the leading track.
Definition at line 555 of file RecoTauQualityCuts.cc.
References TauDiscriminatorTools::leadTrack.
Referenced by setPV().
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Candidate & | leadCand | ) | const |
Definition at line 560 of file RecoTauQualityCuts.cc.
References getTrack().
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::CandidateRef & | leadCand | ) | const |
Update the leading track (using reference) If null, this will set the lead track ref null.
Definition at line 565 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(), TauDiscriminatorTools::leadTrack, pv_, setLeadTrack(), HiIsolationCommonParameters_cff::track, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::operator()(), and reco::tau::RecoTauVertexAssociator::setEvent().
|
private |
Definition at line 113 of file RecoTauQualityCuts.h.
|
private |
Definition at line 114 of file RecoTauQualityCuts.h.
|
mutableprivate |
Definition at line 101 of file RecoTauQualityCuts.h.
|
private |
Definition at line 108 of file RecoTauQualityCuts.h.
|
private |
Definition at line 109 of file RecoTauQualityCuts.h.
|
private |
Definition at line 104 of file RecoTauQualityCuts.h.
|
private |
Definition at line 107 of file RecoTauQualityCuts.h.
|
private |
Definition at line 111 of file RecoTauQualityCuts.h.
|
private |
Definition at line 112 of file RecoTauQualityCuts.h.
|
private |
Definition at line 106 of file RecoTauQualityCuts.h.
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
|
private |
Definition at line 103 of file RecoTauQualityCuts.h.
|
private |
Definition at line 110 of file RecoTauQualityCuts.h.
|
mutableprivate |
Definition at line 99 of file RecoTauQualityCuts.h.
Referenced by setPV().