CMS 3D CMS Logo

TTHelpers.h
Go to the documentation of this file.
1 #ifndef TTHelper_s
2 #define TTHelper_s
3 
6 
7 namespace tthelpers{
9 {
10  reco::TrackRef ref(tracks, k);
11  return trackbuilder->build(ref);
12 }
14 {
15  if((*tracks)[k].bestTrack() == 0) return reco::TransientTrack();
16  return trackbuilder->build(tracks->ptrAt(k));
17 }
18 }
19 #endif
reco::TransientTrack build(const reco::Track *p) const
int k[5][pyjets_maxn]
reco::TransientTrack buildTT(edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
Definition: TTHelpers.h:8