CMS 3D CMS Logo

TTHelpers.h
Go to the documentation of this file.
1 #ifndef TTHelper_s
2 #define TTHelper_s
3 
5 
8 
9 namespace tthelpers{
11 {
12  reco::TrackRef ref(tracks, k);
13  return trackbuilder->build(ref);
14 }
16 {
17  if((*tracks)[k].bestTrack() == nullptr) return reco::TransientTrack();
18  return trackbuilder->build(tracks->ptrAt(k));
19 }
20 }
21 #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:10