#include <AlignmentTracksFromVertexSelector.h>
Public Types | |
typedef std::vector< const reco::Track * > | Tracks |
Public Member Functions | |
AlignmentTrackFromVertexSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC) | |
constructor More... | |
const reco::Vertex * | findClosestVertex (const reco::TrackCollection &leptonTracks, const reco::VertexCollection *vertices, const edm::EventSetup &setup) const |
Tracks | select (const edm::Handle< reco::TrackCollection > &tc, const edm::Event &evt, const edm::EventSetup &setup) const |
select tracks More... | |
~AlignmentTrackFromVertexSelector () | |
destructor More... | |
Private Attributes | |
edm::EDGetTokenT< reco::TrackCollection > | diLeptonToken_ |
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > | ttbESToken_ |
bool | useClosestVertex_ |
unsigned int | vertexIndex_ |
edm::EDGetTokenT< reco::VertexCollection > | vertexToken_ |
Definition at line 21 of file AlignmentTracksFromVertexSelector.h.
typedef std::vector<const reco::Track*> AlignmentTrackFromVertexSelector::Tracks |
Definition at line 23 of file AlignmentTracksFromVertexSelector.h.
AlignmentTrackFromVertexSelector::AlignmentTrackFromVertexSelector | ( | const edm::ParameterSet & | cfg, |
edm::ConsumesCollector & | iC | ||
) |
constructor
Definition at line 17 of file AlignmentTracksFromVertexSelector.cc.
AlignmentTrackFromVertexSelector::~AlignmentTrackFromVertexSelector | ( | ) |
const reco::Vertex * AlignmentTrackFromVertexSelector::findClosestVertex | ( | const reco::TrackCollection & | leptonTracks, |
const reco::VertexCollection * | vertices, | ||
const edm::EventSetup & | setup | ||
) | const |
Definition at line 30 of file AlignmentTracksFromVertexSelector.cc.
References TransientTrackBuilder::build(), counter, VertexDistance3D::distance(), TransientVertex::isValid(), singleTopDQM_cfi::setup, HLT_2024v10_cff::track, ttbESToken_, Measurement1D::value(), KalmanVertexFitter::vertex(), AlignmentTracksFromVertexSelector_cfi::vertices, and L1BJetProducer_cff::vtx.
Referenced by select().
AlignmentTrackFromVertexSelector::Tracks AlignmentTrackFromVertexSelector::select | ( | const edm::Handle< reco::TrackCollection > & | tc, |
const edm::Event & | evt, | ||
const edm::EventSetup & | setup | ||
) | const |
select tracks
Definition at line 72 of file AlignmentTracksFromVertexSelector.cc.
References diLeptonToken_, spr::find(), findClosestVertex(), edm::Event::get(), edm::Event::getHandle(), edm::HandleBase::isValid(), submitPVResolutionJobs::key, edm::Ref< C, T, F >::key(), LogDebug, edm::Handle< T >::product(), mps_fire::result, singleTopDQM_cfi::setup, jetUpdater_cfi::sort, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), useClosestVertex_, vertexIndex_, vertexToken_, and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by TrackFromVertexConfigSelector::select().
|
private |
Definition at line 44 of file AlignmentTracksFromVertexSelector.h.
Referenced by select().
|
private |
Definition at line 42 of file AlignmentTracksFromVertexSelector.h.
Referenced by findClosestVertex().
|
private |
Definition at line 45 of file AlignmentTracksFromVertexSelector.h.
Referenced by select().
|
private |
Definition at line 46 of file AlignmentTracksFromVertexSelector.h.
Referenced by select().
|
private |
Definition at line 43 of file AlignmentTracksFromVertexSelector.h.
Referenced by select().