CMS 3D CMS Logo

Functions
tthelpers Namespace Reference

Functions

reco::TransientTrack buildTT (edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
 
reco::TransientTrack buildTT (edm::Handle< edm::View< reco::Candidate > > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
 

Function Documentation

◆ buildTT() [1/2]

reco::TransientTrack tthelpers::buildTT ( edm::Handle< reco::TrackCollection > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

Definition at line 10 of file TTHelpers.h.

References TransientTrackBuilder::build(), dqmdumpme::k, and tracks.

Referenced by TemplatedVertexArbitrator< InputContainer, VTX >::produce(), and TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce().

12  {
13  reco::TrackRef ref(tracks, k);
14  return trackbuilder->build(ref);
15  }
reco::TransientTrack build(const reco::Track *p) const
auto const & tracks
cannot be loose

◆ buildTT() [2/2]

reco::TransientTrack tthelpers::buildTT ( edm::Handle< edm::View< reco::Candidate > > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

Definition at line 16 of file TTHelpers.h.

References TransientTrackBuilder::build(), dqmdumpme::k, and tracks.

18  {
19  if ((*tracks)[k].bestTrack() == nullptr)
20  return reco::TransientTrack();
21  return trackbuilder->build(tracks->ptrAt(k));
22  }
reco::TransientTrack build(const reco::Track *p) const
auto const & tracks
cannot be loose