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

References TransientTrackBuilder::build().

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

9 {
10  reco::TrackRef ref(tracks, k);
11  return trackbuilder->build(ref);
12 }
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 13 of file TTHelpers.h.

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

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