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

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().

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

11 {
12  reco::TrackRef ref(tracks, k);
13  return trackbuilder->build(ref);
14 }
reco::TransientTrack build(const reco::Track *p) const
int k[5][pyjets_maxn]
reco::TransientTrack tthelpers::buildTT ( edm::Handle< edm::View< reco::Candidate > > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

Definition at line 15 of file TTHelpers.h.

References TransientTrackBuilder::build(), and l1t::tracks.

16 {
17  if((*tracks)[k].bestTrack() == nullptr) return reco::TransientTrack();
18  return trackbuilder->build(tracks->ptrAt(k));
19 }
Ptr< value_type > ptrAt(size_type i) const
reco::TransientTrack build(const reco::Track *p) const
int k[5][pyjets_maxn]