CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 4 of file TTHelpers.h.

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

5 {
6  reco::TrackRef ref(tracks, k);
7  return trackbuilder->build(ref);
8 }
reco::TransientTrack tthelpers::buildTT ( edm::Handle< edm::View< reco::Candidate > > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

Definition at line 9 of file TTHelpers.h.

References testEve_cfg::tracks.

10 {
11  if((*tracks)[k].bestTrack() == 0) return reco::TransientTrack();
12  return trackbuilder->build(tracks->ptrAt(k));
13 }
Ptr< value_type > ptrAt(size_type i) const