#include <RecoTauQualityCuts.h>
Public Types | |
typedef boost::function< bool(const PFCandidate &)> | CandQCutFunc |
typedef std::vector< CandQCutFunc > | CandQCutFuncCollection |
typedef std::map< PFCandidate::ParticleType, CandQCutFuncCollection > | CandQCutFuncMap |
typedef boost::function< bool(const TrackBaseRef &)> | TrackQCutFunc |
typedef std::vector< TrackQCutFunc > | TrackQCutFuncCollection |
Public Member Functions | |
bool | filterCand (const reco::PFCandidate &cand) const |
Filter a single PFCandidate. More... | |
template<typename PFCandRefType > | |
bool | filterCandRef (const PFCandRefType &cand) const |
Filter a PFCandidate 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 PFCandidates. More... | |
bool | filterTrack (const reco::TrackBaseRef &track) const |
Filter a single Track. More... | |
bool | filterTrack (const reco::TrackRef &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::TrackRef &leadTrack) const |
Update the leading track. More... | |
void | setLeadTrack (const reco::PFCandidate &leadCand) const |
void | setLeadTrack (const reco::PFCandidateRef &leadCand) const |
void | setPV (const reco::VertexRef &vtx) const |
Update the primary vertex. More... | |
Private Member Functions | |
bool | filterCandByType (const reco::PFCandidate &cand) const |
bool | filterGammaCand (const reco::PFCandidate &cand) const |
bool | filterNeutralHadronCand (const reco::PFCandidate &cand) const |
template<typename T > | |
bool | filterTrack_ (const T &trackRef) const |
Private Attributes | |
bool | checkHitPattern_ |
bool | checkPV_ |
reco::TrackBaseRef | 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 boost::function<bool (const PFCandidate&)> reco::tau::RecoTauQualityCuts::CandQCutFunc |
Definition at line 40 of file RecoTauQualityCuts.h.
typedef std::vector<CandQCutFunc> reco::tau::RecoTauQualityCuts::CandQCutFuncCollection |
Definition at line 41 of file RecoTauQualityCuts.h.
typedef std::map<PFCandidate::ParticleType, CandQCutFuncCollection> reco::tau::RecoTauQualityCuts::CandQCutFuncMap |
Definition at line 42 of file RecoTauQualityCuts.h.
typedef boost::function<bool (const TrackBaseRef&)> reco::tau::RecoTauQualityCuts::TrackQCutFunc |
Definition at line 38 of file RecoTauQualityCuts.h.
typedef std::vector<TrackQCutFunc> reco::tau::RecoTauQualityCuts::TrackQCutFuncCollection |
Definition at line 39 of file RecoTauQualityCuts.h.
|
explicit |
Definition at line 223 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::PFCandidate & | cand | ) | const |
Filter a single PFCandidate.
Definition at line 410 of file RecoTauQualityCuts.cc.
References reco::PFCandidate::gsfTrackRef(), mps_fire::result, and reco::PFCandidate::trackRef().
Referenced by filterCandRef(), and filterTracks().
|
private |
Definition at line 391 of file RecoTauQualityCuts.cc.
References reco::PFCandidate::e, reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, reco::PFCandidate::mu, and reco::PFCandidate::particleId().
Referenced by filterCandRefs().
|
inline |
Filter a PFCandidate held by a smart pointer or Ref.
Definition at line 77 of file RecoTauQualityCuts.h.
References filterCand().
Referenced by filterCandRefs().
|
inline |
Filter a ref vector of PFCandidates.
Definition at line 81 of file RecoTauQualityCuts.h.
References filterCandByType(), filterCandRef(), filterGammaCand(), filterNeutralHadronCand(), filterTrack_(), TopAnalysis_sequences::invert, and convertSQLitetoXML_cfg::output.
Referenced by reco::tau::RecoTauVertexAssociator::getLeadTrack(), reco::tau::RecoTauPiZeroTrivialPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), and reco::tau::RecoTauPiZeroStripPlugin2::operator()().
|
private |
Definition at line 381 of file RecoTauQualityCuts.cc.
References reco::LeafCandidate::et().
Referenced by filterCandRefs().
|
private |
Definition at line 386 of file RecoTauQualityCuts.cc.
References reco::LeafCandidate::et().
Referenced by filterCandRefs().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 335 of file RecoTauQualityCuts.cc.
Referenced by filterTracks(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), and setPV().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackRef & | track | ) | const |
Definition at line 340 of file RecoTauQualityCuts.cc.
|
private |
Definition at line 346 of file RecoTauQualityCuts.cc.
References reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::hitPattern(), reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), reco::TrackBase::pt(), and HiIsolationCommonParameters_cff::track.
Referenced by filterCandRefs().
|
inline |
Filter a collection of Tracks.
Definition at line 63 of file RecoTauQualityCuts.h.
References filterCand(), filterTrack(), TopAnalysis_sequences::invert, and convertSQLitetoXML_cfg::output.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::TrackRef & | leadTrack | ) | const |
Update the leading track.
Definition at line 428 of file RecoTauQualityCuts.cc.
Referenced by setPV().
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::PFCandidate & | leadCand | ) | const |
Definition at line 433 of file RecoTauQualityCuts.cc.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::PFCandidateRef & | leadCand | ) | const |
Update the leading track (using reference) If null, this will set the lead track ref null.
Definition at line 438 of file RecoTauQualityCuts.cc.
References edm::Ref< C, T, F >::isNonnull().
|
inline |
Update the primary vertex.
Definition at line 47 of file RecoTauQualityCuts.h.
References filterTrack(), TauDiscriminatorTools::leadTrack, pv_, setLeadTrack(), HiIsolationCommonParameters_cff::track, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), and reco::tau::RecoTauVertexAssociator::setEvent().
|
private |
Definition at line 111 of file RecoTauQualityCuts.h.
|
private |
Definition at line 112 of file RecoTauQualityCuts.h.
|
mutableprivate |
Definition at line 99 of file RecoTauQualityCuts.h.
|
private |
Definition at line 106 of file RecoTauQualityCuts.h.
|
private |
Definition at line 107 of file RecoTauQualityCuts.h.
|
private |
Definition at line 102 of file RecoTauQualityCuts.h.
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
|
private |
Definition at line 109 of file RecoTauQualityCuts.h.
|
private |
Definition at line 110 of file RecoTauQualityCuts.h.
|
private |
Definition at line 104 of file RecoTauQualityCuts.h.
|
private |
Definition at line 103 of file RecoTauQualityCuts.h.
|
private |
Definition at line 101 of file RecoTauQualityCuts.h.
|
private |
Definition at line 108 of file RecoTauQualityCuts.h.
|
mutableprivate |
Definition at line 97 of file RecoTauQualityCuts.h.
Referenced by setPV().