#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 checkHitPattern_, checkPV_, edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), maxDeltaZ_, maxDeltaZToLeadTrack_, maxTrackChi2_, maxTransverseImpactParameter_, minGammaEt_, minNeutralHadronEt_, minTrackHits_, minTrackPixelHits_, minTrackPt_, minTrackVertexWeight_, mergeVDriftHistosByStation::name, 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 filterCandByType(), filterTrack_(), reco::PFCandidate::gsfTrackRef(), query::result, and reco::PFCandidate::trackRef().
Referenced by filterCandRef().
|
private |
Definition at line 391 of file RecoTauQualityCuts.cc.
References reco::PFCandidate::e, filterGammaCand(), filterNeutralHadronCand(), reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, reco::PFCandidate::mu, and reco::PFCandidate::particleId().
Referenced by filterCand().
|
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 filterCandRef(), and convertSQLitetoXML_cfg::output.
Referenced by reco::tau::RecoTauVertexAssociator::getLeadTrack(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauPiZeroTrivialPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::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(), and minGammaEt_.
Referenced by filterCandByType().
|
private |
Definition at line 386 of file RecoTauQualityCuts.cc.
References reco::LeafCandidate::et(), and minNeutralHadronEt_.
Referenced by filterCandByType().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 335 of file RecoTauQualityCuts.cc.
References filterTrack_().
Referenced by filterTracks(), and reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackRef & | track | ) | const |
Definition at line 340 of file RecoTauQualityCuts.cc.
References filterTrack_().
|
private |
Definition at line 346 of file RecoTauQualityCuts.cc.
References checkHitPattern_, checkPV_, reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::hitPattern(), edm::RefToBase< T >::isNull(), edm::Ref< C, T, F >::isNull(), leadTrack_, maxDeltaZ_, maxDeltaZToLeadTrack_, maxTrackChi2_, maxTransverseImpactParameter_, minTrackHits_, minTrackPixelHits_, minTrackPt_, minTrackVertexWeight_, reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), reco::TrackBase::pt(), and pv_.
Referenced by filterCand(), and filterTrack().
|
inline |
Filter a collection of Tracks.
Definition at line 63 of file RecoTauQualityCuts.h.
References filterTrack(), 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.
References leadTrack_.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::PFCandidate & | leadCand | ) | const |
Definition at line 433 of file RecoTauQualityCuts.cc.
References leadTrack_.
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(), and leadTrack_.
|
inline |
Update the primary vertex.
Definition at line 47 of file RecoTauQualityCuts.h.
References pv_.
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.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 112 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
mutableprivate |
Definition at line 99 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and setLeadTrack().
|
private |
Definition at line 106 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 107 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 102 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 109 of file RecoTauQualityCuts.h.
Referenced by filterGammaCand(), and RecoTauQualityCuts().
|
private |
Definition at line 110 of file RecoTauQualityCuts.h.
Referenced by filterNeutralHadronCand(), and RecoTauQualityCuts().
|
private |
Definition at line 104 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 103 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 101 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 108 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
mutableprivate |
Definition at line 97 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and setPV().