#include <RecoTauQualityCuts.h>
Public Types | |
typedef boost::function< bool(const PFCandidate &)> | QCutFunc |
typedef std::vector< QCutFunc > | QCutFuncCollection |
typedef std::map < PFCandidate::ParticleType, QCutFuncCollection > | QCutFuncMap |
Public Member Functions | |
bool | filter (const reco::PFCandidate &cand) const |
Filter a single PFCandidate. More... | |
template<typename PFCandRefType > | |
bool | filterRef (const PFCandRefType &cand) const |
Filter a PFCandidate held by a smart pointer or Ref. More... | |
template<typename Coll > | |
Coll | filterRefs (const Coll &refcoll, bool invert=false) const |
Filter a ref vector of PFCandidates. More... | |
const QCutFunc & | predicate () const |
Get the predicate used to filter. More... | |
RecoTauQualityCuts (const edm::ParameterSet &qcuts) | |
void | setLeadTrack (const reco::PFCandidate &leadCand) const |
Update the leading track. More... | |
void | setLeadTrack (const reco::PFCandidateRef &leadCand) const |
void | setPV (const reco::VertexRef &vtx) const |
Update the primary vertex. More... | |
Private Attributes | |
reco::TrackBaseRef | leadTrack_ |
QCutFunc | predicate_ |
reco::VertexRef | pv_ |
QCutFuncMap | qcuts_ |
Definition at line 33 of file RecoTauQualityCuts.h.
typedef boost::function<bool (const PFCandidate&)> reco::tau::RecoTauQualityCuts::QCutFunc |
Definition at line 36 of file RecoTauQualityCuts.h.
typedef std::vector<QCutFunc> reco::tau::RecoTauQualityCuts::QCutFuncCollection |
Definition at line 37 of file RecoTauQualityCuts.h.
typedef std::map<PFCandidate::ParticleType, QCutFuncCollection> reco::tau::RecoTauQualityCuts::QCutFuncMap |
Definition at line 38 of file RecoTauQualityCuts.h.
|
explicit |
Definition at line 142 of file RecoTauQualityCuts.cc.
References reco::PFCandidate::e, reco::tau::qcuts::etMin(), 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, predicate_, reco::tau::qcuts::ptMin(), pv_, qcuts_, AlCaHLTBitMon_QueryRunRegistry::string, 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 |
Filter a single PFCandidate.
Definition at line 56 of file RecoTauQualityCuts.h.
References predicate_.
Referenced by filterRef(), and reco::tau::RecoTauEnergyRecoveryPlugin::operator()().
|
inline |
Filter a PFCandidate held by a smart pointer or Ref.
Definition at line 62 of file RecoTauQualityCuts.h.
References filter().
Referenced by filterRefs().
|
inline |
Filter a ref vector of PFCandidates.
Definition at line 65 of file RecoTauQualityCuts.h.
References filterRef(), 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::RecoTauPiZeroStripPlugin::operator()(), and reco::tau::RecoTauPiZeroStripPlugin2::operator()().
|
inline |
Get the predicate used to filter.
Definition at line 53 of file RecoTauQualityCuts.h.
References predicate_.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::PFCandidate & | leadCand | ) | const |
Update the leading track.
Definition at line 300 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 305 of file RecoTauQualityCuts.cc.
References edm::Ref< C, T, F >::isNonnull(), and leadTrack_.
|
inline |
Update the primary vertex.
Definition at line 43 of file RecoTauQualityCuts.h.
References pv_.
Referenced by reco::tau::RecoTauEnergyRecoveryPlugin::beginEvent(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), and reco::tau::RecoTauVertexAssociator::setEvent().
|
mutableprivate |
Definition at line 79 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts(), and setLeadTrack().
|
private |
Definition at line 83 of file RecoTauQualityCuts.h.
Referenced by filter(), predicate(), and RecoTauQualityCuts().
|
mutableprivate |
Definition at line 77 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts(), and setPV().
|
private |
Definition at line 81 of file RecoTauQualityCuts.h.
Referenced by RecoTauQualityCuts().