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

◆ buildTT() [1/2]

reco::TransientTrack tthelpers::buildTT ( edm::Handle< reco::TrackCollection > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

◆ buildTT() [2/2]

reco::TransientTrack tthelpers::buildTT ( edm::Handle< edm::View< reco::Candidate > > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline

Definition at line 16 of file TTHelpers.h.

References TransientTrackBuilder::build(), dqmdumpme::k, and DiMuonV_cfg::tracks.

18  {
19  if ((*tracks)[k].bestTrack() == nullptr)
20  return reco::TransientTrack();
21  return trackbuilder->build(tracks->ptrAt(k));
22  }
reco::TransientTrack build(const reco::Track *p) const