![]() |
![]() |
#include <RecoTauVertexAssociator.h>
Public Types | |
enum | Algorithm { kHighestPtInEvent, kClosestDeltaZ, kHighestWeigtForLeadTrack, kCombined } |
Public Member Functions | |
reco::VertexRef | associatedVertex (const Jet &jet) const |
reco::VertexRef | associatedVertex (const PFTau &tau, bool useJet=false) const |
reco::VertexRef | associatedVertex (const TrackBaseRef &track) const |
reco::VertexRef | associatedVertex (const Track *track) const |
const CandidatePtr | getLeadCand (const Jet &) const |
const Track * | getLeadTrack (const Jet &) const |
const TrackBaseRef | getLeadTrackRef (const Jet &) const |
RecoTauVertexAssociator (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC) | |
void | setEvent (const edm::Event &evt) |
Load the vertices from the event. More... | |
virtual | ~RecoTauVertexAssociator () |
Private Types | |
enum | { kLeadTrack, kLeadPFCand, kMinLeadTrackOrPFCand, kFirstTrack } |
Private Attributes | |
Algorithm | algo_ |
std::string | algorithm_ |
std::map< const reco::Jet *, reco::VertexRef > * | jetToVertexAssociation_ |
edm::EventNumber_t | lastEvent_ |
int | leadingTrkOrPFCandOption_ |
RecoTauQualityCuts * | qcuts_ |
bool | recoverLeadingTrk_ |
std::vector< reco::VertexRef > | selectedVertices_ |
int | verbosity_ |
StringCutObjectSelector< reco::Vertex > * | vertexSelector_ |
edm::InputTag | vertexTag_ |
edm::EDGetTokenT< reco::VertexCollection > | vxToken_ |
bool | vxTrkFiltering_ |
Definition at line 49 of file RecoTauVertexAssociator.h.
|
private |
Enumerator | |
---|---|
kLeadTrack | |
kLeadPFCand | |
kMinLeadTrackOrPFCand | |
kFirstTrack |
Definition at line 86 of file RecoTauVertexAssociator.h.
Enumerator | |
---|---|
kHighestPtInEvent | |
kClosestDeltaZ | |
kHighestWeigtForLeadTrack | |
kCombined |
Definition at line 51 of file RecoTauVertexAssociator.h.
reco::tau::RecoTauVertexAssociator::RecoTauVertexAssociator | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 148 of file RecoTauVertexAssociator.cc.
References algo_, algorithm_, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), kClosestDeltaZ, kCombined, kFirstTrack, kHighestPtInEvent, kHighestWeigtForLeadTrack, kLeadPFCand, kLeadTrack, kMinLeadTrackOrPFCand, leadingTrkOrPFCandOption_, qcuts_, recoverLeadingTrk_, AlCaHLTBitMon_QueryRunRegistry::string, verbosity_, vertexSelection_cff::vertexSelection, vertexSelector_, vertexTag_, vxToken_, and vxTrkFiltering_.
|
virtual |
Definition at line 228 of file RecoTauVertexAssociator.cc.
References jetToVertexAssociation_, qcuts_, and vertexSelector_.
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const Jet & | jet | ) | const |
Get the primary vertex associated to a given jet. Returns a null Ref if no vertex is found.
Definition at line 368 of file RecoTauVertexAssociator.cc.
References algo_, algorithm_, gather_cfg::cout, reco::LeafCandidate::eta(), reco::TrackBase::eta(), getLeadTrack(), getLeadTrackRef(), edm::RefToBase< T >::isNonnull(), metsig::jet, jetToVertexAssociation_, kClosestDeltaZ, kCombined, kHighestPtInEvent, kHighestWeigtForLeadTrack, TauDiscriminatorTools::leadTrack, reco::LeafCandidate::phi(), reco::TrackBase::phi(), reco::LeafCandidate::pt(), reco::TrackBase::pt(), recoverLeadingTrk_, selectedVertices_, verbosity_, and vertexTag_.
Referenced by associatedVertex(), Tau.Tau::dxy(), Muon.Muon::dxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Muon.Muon::dz(), reco::tau::RecoTauImpactParameterSignificancePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::operator()(), reco::tau::RecoTauPiZeroStripPlugin3::operator()(), reco::tau::RecoTauBuilderPlugin::primaryVertex(), and Tau.Tau::zImpact().
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const PFTau & | tau, |
bool | useJet = false |
||
) | const |
Convenience function to get the PV associated to the jet that seeded this tau (useJet=true, old behaviour) or leaging charged hadron if set (useJet=false).
Definition at line 258 of file RecoTauVertexAssociator.cc.
References associatedVertex(), getTrack(), edm::Ptr< T >::isNonnull(), edm::RefToBase< T >::isNull(), reco::PFTau::jetRef(), reco::PFTau::leadChargedHadrCand(), reco::PFTau::pfTauTagInfoRef(), and HiIsolationCommonParameters_cff::track.
Referenced by Tau.Tau::dxy(), Muon.Muon::dxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Muon.Muon::dz(), and Tau.Tau::zImpact().
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const TrackBaseRef & | track | ) | const |
Definition at line 312 of file RecoTauVertexAssociator.cc.
References algo_, gather_cfg::cout, MillePedeFileConverter_cfg::e, edm::RefToBase< T >::get(), edm::RefToBase< T >::isNonnull(), kCombined, kHighestWeigtForLeadTrack, selectedVertices_, verbosity_, and mps_merge::weight.
Referenced by Tau.Tau::dxy(), Muon.Muon::dxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Muon.Muon::dz(), and Tau.Tau::zImpact().
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const Track * | track | ) | const |
Definition at line 275 of file RecoTauVertexAssociator.cc.
References algo_, gather_cfg::cout, kClosestDeltaZ, kHighestPtInEvent, selectedVertices_, and verbosity_.
Referenced by Tau.Tau::dxy(), Muon.Muon::dxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Muon.Muon::dz(), and Tau.Tau::zImpact().
const reco::CandidatePtr reco::tau::RecoTauVertexAssociator::getLeadCand | ( | const Jet & | jet | ) | const |
Definition at line 50 of file RecoTauVertexAssociator.cc.
References gather_cfg::cout, reco::LeafCandidate::eta(), reco::tau::RecoTauQualityCuts::filterCandRefs(), getTrack(), edm::Ptr< T >::isNull(), kFirstTrack, kLeadPFCand, kLeadTrack, kMinLeadTrackOrPFCand, reco::tau::leadCand(), leadingTrkOrPFCandOption_, jets_cff::leadTrackPt, min(), reco::tau::pfChargedCands(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::TrackBase::pt(), reco::TrackBase::ptError(), qcuts_, recoverLeadingTrk_, HiIsolationCommonParameters_cff::track, listHistos::trackPt, verbosity_, and vxTrkFiltering_.
Referenced by getLeadTrack(), and getLeadTrackRef().
const reco::Track * reco::tau::RecoTauVertexAssociator::getLeadTrack | ( | const Jet & | jet | ) | const |
Definition at line 115 of file RecoTauVertexAssociator.cc.
References getLeadCand(), getTrack(), reco::tau::leadCand(), and HiIsolationCommonParameters_cff::track.
Referenced by associatedVertex().
const reco::TrackBaseRef reco::tau::RecoTauVertexAssociator::getLeadTrackRef | ( | const Jet & | jet | ) | const |
Definition at line 122 of file RecoTauVertexAssociator.cc.
References funct::abs(), reco::TrackBase::dz(), getLeadCand(), infinity, reco::tau::leadCand(), and extraflags_cff::vtx.
Referenced by associatedVertex().
void reco::tau::RecoTauVertexAssociator::setEvent | ( | const edm::Event & | evt | ) |
Load the vertices from the event.
Definition at line 235 of file RecoTauVertexAssociator.cc.
References edm::EventID::event(), edm::Event::getByToken(), edm::EventBase::id(), jetToVertexAssociation_, lastEvent_, qcuts_, selectedVertices_, reco::tau::RecoTauQualityCuts::setPV(), vertexSelector_, electrons_cff::vertices, and vxToken_.
Referenced by reco::tau::RecoTauImpactParameterSignificancePlugin::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin::beginEvent(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin2::beginEvent(), reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin3::beginEvent(), and reco::tau::RecoTauBuilderPlugin::beginEvent().
|
private |
Definition at line 82 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 81 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 90 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 91 of file RecoTauVertexAssociator.h.
Referenced by setEvent().
|
private |
Definition at line 87 of file RecoTauVertexAssociator.h.
Referenced by getLeadCand(), and RecoTauVertexAssociator().
|
private |
Definition at line 84 of file RecoTauVertexAssociator.h.
Referenced by getLeadCand(), RecoTauVertexAssociator(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 85 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), getLeadCand(), and RecoTauVertexAssociator().
|
private |
Definition at line 80 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and setEvent().
|
private |
Definition at line 92 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), getLeadCand(), and RecoTauVertexAssociator().
|
private |
Definition at line 79 of file RecoTauVertexAssociator.h.
Referenced by RecoTauVertexAssociator(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 77 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 88 of file RecoTauVertexAssociator.h.
Referenced by RecoTauVertexAssociator(), and setEvent().
|
private |
Definition at line 78 of file RecoTauVertexAssociator.h.
Referenced by getLeadCand(), and RecoTauVertexAssociator().