#include <RecoTauVertexAssociator.h>
Public Types | |
enum | Algorithm { kHighestPtInEvent, kClosestDeltaZ, kHighestWeigtForLeadTrack, kCombined } |
Public Member Functions | |
reco::VertexRef | associatedVertex (const PFJet &jet) const |
reco::VertexRef | associatedVertex (const PFTau &tau) const |
reco::TrackBaseRef | getLeadTrack (const PFJet &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::PFJet *, 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 80 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 129 of file RecoTauVertexAssociator.cc.
References algo_, algorithm_, assert(), Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), HLT_25ns14e33_v1_cff::InputTag, kClosestDeltaZ, kCombined, kFirstTrack, kHighestPtInEvent, kHighestWeigtForLeadTrack, kLeadPFCand, kLeadTrack, kMinLeadTrackOrPFCand, leadingTrkOrPFCandOption_, qcuts_, recoverLeadingTrk_, AlCaHLTBitMon_QueryRunRegistry::string, verbosity_, HLT_25ns14e33_v1_cff::vertexSelection, vertexSelector_, vertexTag_, vxToken_, and vxTrkFiltering_.
|
virtual |
Definition at line 209 of file RecoTauVertexAssociator.cc.
References jetToVertexAssociation_, qcuts_, and vertexSelector_.
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const PFJet & | jet | ) | const |
Get the primary vertex associated to a given jet. Returns a null Ref if no vertex is found.
Definition at line 248 of file RecoTauVertexAssociator.cc.
References algo_, algorithm_, gather_cfg::cout, alignCSCRings::e, reco::LeafCandidate::eta(), reco::TrackBase::eta(), getLeadTrack(), edm::RefToBase< T >::isNonnull(), metsig::jet, jetToVertexAssociation_, kClosestDeltaZ, kCombined, kHighestPtInEvent, kHighestWeigtForLeadTrack, singlePfTauSkim_cff::leadTrack, reco::LeafCandidate::phi(), reco::TrackBase::phi(), reco::LeafCandidate::pt(), reco::TrackBase::pt(), recoverLeadingTrk_, selectedVertices_, verbosity_, vertexTag_, and puppiForMET_cff::weight.
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::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), reco::tau::RecoTauPiZeroStripPlugin3::operator()(), reco::tau::RecoTauBuilderPlugin::primaryVertex(), and Tau.Tau::zImpact().
reco::VertexRef reco::tau::RecoTauVertexAssociator::associatedVertex | ( | const PFTau & | tau | ) | const |
Convenience function to get the PV associated to the jet that seeded this tau.
Definition at line 239 of file RecoTauVertexAssociator.cc.
References associatedVertex(), edm::Ref< C, T, F >::isNull(), reco::PFTau::jetRef(), and reco::PFTau::pfTauTagInfoRef().
Referenced by Tau.Tau::dxy(), Muon.Muon::dxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Muon.Muon::dz(), and Tau.Tau::zImpact().
reco::TrackBaseRef reco::tau::RecoTauVertexAssociator::getLeadTrack | ( | const PFJet & | jet | ) | const |
Definition at line 20 of file RecoTauVertexAssociator.cc.
References assert(), gather_cfg::cout, reco::LeafCandidate::eta(), reco::tau::RecoTauQualityCuts::filterCandRefs(), edm::Ptr< T >::isNonnull(), edm::Ptr< T >::isNull(), kFirstTrack, kLeadPFCand, kLeadTrack, kMinLeadTrackOrPFCand, leadingTrkOrPFCandOption_, reco::tau::leadPFCand(), Min(), reco::tau::pfChargedCands(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::TrackBase::pt(), reco::TrackBase::ptError(), qcuts_, recoverLeadingTrk_, listHistos::trackPt, verbosity_, and vxTrkFiltering_.
Referenced by associatedVertex().
void reco::tau::RecoTauVertexAssociator::setEvent | ( | const edm::Event & | evt | ) |
Load the vertices from the event.
Definition at line 216 of file RecoTauVertexAssociator.cc.
References edm::EventID::event(), edm::Event::getByToken(), edm::EventBase::id(), jetToVertexAssociation_, lastEvent_, qcuts_, selectedVertices_, reco::tau::RecoTauQualityCuts::setPV(), vertexSelector_, HLT_25ns14e33_v1_cff::vertices, and vxToken_.
Referenced by reco::tau::RecoTauImpactParameterSignificancePlugin::beginEvent(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin::beginEvent(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin2::beginEvent(), reco::tau::RecoTauPiZeroStripPlugin3::beginEvent(), and reco::tau::RecoTauBuilderPlugin::beginEvent().
|
private |
Definition at line 76 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 75 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 84 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 85 of file RecoTauVertexAssociator.h.
Referenced by setEvent().
|
private |
Definition at line 81 of file RecoTauVertexAssociator.h.
Referenced by getLeadTrack(), and RecoTauVertexAssociator().
|
private |
Definition at line 78 of file RecoTauVertexAssociator.h.
Referenced by getLeadTrack(), RecoTauVertexAssociator(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 79 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), getLeadTrack(), and RecoTauVertexAssociator().
|
private |
Definition at line 74 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and setEvent().
|
private |
Definition at line 86 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), getLeadTrack(), and RecoTauVertexAssociator().
|
private |
Definition at line 73 of file RecoTauVertexAssociator.h.
Referenced by RecoTauVertexAssociator(), setEvent(), and ~RecoTauVertexAssociator().
|
private |
Definition at line 71 of file RecoTauVertexAssociator.h.
Referenced by associatedVertex(), and RecoTauVertexAssociator().
|
private |
Definition at line 82 of file RecoTauVertexAssociator.h.
Referenced by RecoTauVertexAssociator(), and setEvent().
|
private |
Definition at line 72 of file RecoTauVertexAssociator.h.
Referenced by getLeadTrack(), and RecoTauVertexAssociator().