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 4 of file TTHelpers.h.

References TransientTrackBuilder::build().

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 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 9 of file TTHelpers.h.

References TransientTrackBuilder::build(), and l1t::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
reco::TransientTrack build(const reco::Track *p) const
int k[5][pyjets_maxn]