#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) |
Update the leading track. More... | |
void | setLeadTrack (const reco::Candidate &leadCand) |
void | setLeadTrack (const reco::CandidateRef &leadCand) |
void | setPV (const reco::VertexRef &vtx) |
Update the primary vertex. More... | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ParameterSetDescription &descriptions) |
Declare all parameters read from python config file. 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 35 of file RecoTauQualityCuts.h.
typedef std::function<bool(const Candidate&)> 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<int, CandQCutFuncCollection> reco::tau::RecoTauQualityCuts::CandQCutFuncMap |
Definition at line 42 of file RecoTauQualityCuts.h.
typedef std::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 79 of file RecoTauQualityCuts.cc.
References checkHitPattern_, checkPV_, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), maxDeltaZ_, maxDeltaZToLeadTrack_, maxTrackChi2_, maxTransverseImpactParameter_, minGammaEt_, minNeutralHadronEt_, minTrackHits_, minTrackPixelHits_, minTrackPt_, minTrackVertexWeight_, Skims_PA_cff::name, fileinputsource_cfi::option, and AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Declare all parameters read from python config file.
Definition at line 346 of file RecoTauQualityCuts.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by PFRecoTauDiscriminationByNProngs::fillDescriptions(), RecoTauPiZeroProducer::fillDescriptions(), RecoTauProducer::fillDescriptions(), PFRecoTauChargedHadronProducer::fillDescriptions(), PFRecoTauDiscriminationByIsolation::fillDescriptions(), PFRecoTauDiscriminationByIsolationContainer::fillDescriptions(), and PFTauPrimaryVertexProducerBase::getDescriptionsBase().
bool reco::tau::RecoTauQualityCuts::filterCand | ( | const reco::Candidate & | cand | ) | const |
Definition at line 312 of file RecoTauQualityCuts.cc.
References filterCandByType(), filterChargedCand(), filterTrack(), and mps_fire::result.
Referenced by filterCandRef().
|
private |
Definition at line 293 of file RecoTauQualityCuts.cc.
References funct::abs(), filterGammaCand(), and filterNeutralHadronCand().
Referenced by filterCand().
|
inline |
Filter a Candidate held by a smart pointer or Ref.
Definition at line 80 of file RecoTauQualityCuts.h.
References filterCand().
Referenced by filterCandRefs().
|
inline |
Filter a ref vector of Candidates.
Definition at line 86 of file RecoTauQualityCuts.h.
References filterCandRef(), l1tstage2_dqm_sourceclient-live_cfg::invert, and convertSQLitetoXML_cfg::output.
Referenced by reco::tau::RecoTauVertexAssociator::getLeadCand(), reco::tau::RecoTauPiZeroTrivialPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::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 237 of file RecoTauQualityCuts.cc.
References checkPV_, pat::PackedCandidate::dxy(), reco::TrackBase::dz(), pat::PackedCandidate::dz(), filterTrack(), getTrack(), edm::Ref< C, T, F >::isNull(), leadTrack_, maxDeltaZ_, maxDeltaZToLeadTrack_, maxTransverseImpactParameter_, reco::tau::qcuts::minPackedCandVertexWeight(), minTrackPt_, minTrackVertexWeight_, pat::PackedCandidate::pt(), pv_, and HLT_2023v12_cff::track.
Referenced by filterCand().
|
private |
Definition at line 281 of file RecoTauQualityCuts.cc.
References minGammaEt_.
Referenced by filterCandByType().
|
private |
Definition at line 287 of file RecoTauQualityCuts.cc.
References minNeutralHadronEt_.
Referenced by filterCandByType().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackBaseRef & | track | ) | const |
Definition at line 182 of file RecoTauQualityCuts.cc.
References filterTrack_(), minTrackVertexWeight_, pv_, and HLT_2023v12_cff::track.
Referenced by filterCand(), filterChargedCand(), and filterTracks().
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::TrackRef & | track | ) | const |
Definition at line 190 of file RecoTauQualityCuts.cc.
References filterTrack_(), minTrackVertexWeight_, pv_, and HLT_2023v12_cff::track.
bool reco::tau::RecoTauQualityCuts::filterTrack | ( | const reco::Track & | track | ) | const |
Definition at line 198 of file RecoTauQualityCuts.cc.
References filterTrack_(), and HLT_2023v12_cff::track.
|
private |
Definition at line 200 of file RecoTauQualityCuts.cc.
References checkHitPattern_, checkPV_, reco::TrackBase::dz(), edm::Ref< C, T, F >::isNull(), leadTrack_, maxDeltaZ_, maxDeltaZToLeadTrack_, maxTrackChi2_, maxTransverseImpactParameter_, minTrackHits_, minTrackPixelHits_, minTrackPt_, pv_, and HLT_2023v12_cff::track.
Referenced by filterTrack().
|
inline |
Filter a collection of Tracks.
Definition at line 66 of file RecoTauQualityCuts.h.
References filterTrack(), l1tstage2_dqm_sourceclient-live_cfg::invert, convertSQLitetoXML_cfg::output, and HLT_2023v12_cff::track.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Track & | leadTrack | ) |
Update the leading track.
Definition at line 333 of file RecoTauQualityCuts.cc.
References singlePfTauSkim_cff::leadTrack, and leadTrack_.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::Candidate & | leadCand | ) |
Definition at line 335 of file RecoTauQualityCuts.cc.
References getTrack(), reco::tau::leadCand(), and leadTrack_.
void reco::tau::RecoTauQualityCuts::setLeadTrack | ( | const reco::CandidateRef & | leadCand | ) |
Update the leading track (using reference) If null, this will set the lead track ref null.
Definition at line 337 of file RecoTauQualityCuts.cc.
References getTrack(), reco::tau::leadCand(), and leadTrack_.
|
inline |
Update the primary vertex.
Definition at line 47 of file RecoTauQualityCuts.h.
References pv_, and extraflags_cff::vtx.
Referenced by reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), and reco::tau::RecoTauVertexAssociator::setEvent().
|
private |
Definition at line 119 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 120 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 107 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and setLeadTrack().
|
private |
Definition at line 114 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 115 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 110 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 113 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 117 of file RecoTauQualityCuts.h.
Referenced by filterGammaCand(), and RecoTauQualityCuts().
|
private |
Definition at line 118 of file RecoTauQualityCuts.h.
Referenced by filterNeutralHadronCand(), and RecoTauQualityCuts().
|
private |
Definition at line 112 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 111 of file RecoTauQualityCuts.h.
Referenced by filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 109 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack_(), and RecoTauQualityCuts().
|
private |
Definition at line 116 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack(), and RecoTauQualityCuts().
|
private |
Definition at line 105 of file RecoTauQualityCuts.h.
Referenced by filterChargedCand(), filterTrack(), filterTrack_(), and setPV().