#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 | |
const CandQCutFunc & | candPredicate () const |
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... | |
const TrackQCutFunc & | trackPredicate () const |
Get the predicate used to filter. More... | |
Private Attributes | |
CandQCutFunc | candPredicate_ |
CandQCutFuncMap | candQCuts_ |
reco::TrackBaseRef | leadTrack_ |
reco::VertexRef | pv_ |
TrackQCutFunc | trackPredicate_ |
TrackQCutFuncCollection | trackQCuts_ |
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 220 of file RecoTauQualityCuts.cc.
References reco::tau::qcuts::AND(), candPredicate_, candQCuts_, reco::PFCandidate::e, reco::tau::qcuts::etMin_cand(), edm::hlt::Exception, edm::ParameterSet::exists(), reco::PFCandidate::gamma, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), reco::PFCandidate::h, reco::PFCandidate::h0, leadTrack_, reco::tau::qcuts::mapAndCutByType(), reco::tau::qcuts::minTrackVertexWeight(), reco::PFCandidate::mu, reco::tau::qcuts::ptMin(), pv_, AlCaHLTBitMon_QueryRunRegistry::string, trackPredicate_, trackQCuts_, reco::tau::qcuts::trkChi2(), reco::tau::qcuts::trkLongitudinalImpactParameter(), reco::tau::qcuts::trkLongitudinalImpactParameterWrtTrack(), reco::tau::qcuts::trkPixelHits(), reco::tau::qcuts::trkTrackerHits(), and reco::tau::qcuts::trkTransverseImpactParameter().
|
inline |
Definition at line 59 of file RecoTauQualityCuts.h.
References candPredicate_.
bool reco::tau::RecoTauQualityCuts::filterCand | ( | const reco::PFCandidate & | cand | ) | const |
Filter a single PFCandidate.
Definition at line 375 of file RecoTauQualityCuts.cc.
References candPredicate_, and trackPredicate_.
Referenced by filterCandRef().
|
inline |
Filter a PFCandidate held by a smart pointer or Ref.
Definition at line 81 of file RecoTauQualityCuts.h.
References filterCand().
Referenced by filterCandRefs().
|
inline |
Filter a ref vector of PFCandidates.
Definition at line 85 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()().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 370 of file RecoTauQualityCuts.cc.
References trackPredicate_.
Referenced by filterTracks(), and reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()().
|
inline |
Definition at line 63 of file RecoTauQualityCuts.h.
References filterTrack().
Referenced by filterTrack().
|
inline |
Filter a collection of Tracks.
Definition at line 67 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 382 of file RecoTauQualityCuts.cc.
References leadTrack_.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::PFCandidate & | leadCand | ) | const |
Definition at line 387 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 392 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().
|
inline |
Get the predicate used to filter.
Definition at line 58 of file RecoTauQualityCuts.h.
References trackPredicate_.
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
Referenced by candPredicate(), filterCand(), and RecoTauQualityCuts().
|
private |
Definition at line 102 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts().
|
mutableprivate |
Definition at line 98 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts(), and setLeadTrack().
|
mutableprivate |
Definition at line 96 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts(), and setPV().
|
private |
Definition at line 104 of file RecoTauQualityCuts.h.
Referenced by filterCand(), filterTrack(), RecoTauQualityCuts(), and trackPredicate().
|
private |
Definition at line 100 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts().