CMS 3D CMS Logo

Functions
tthelpers Namespace Reference

Functions

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

Function Documentation

◆ buildTT() [1/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.

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

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

◆ buildTT() [2/2]

reco::TransientTrack tthelpers::buildTT ( edm::Handle< reco::TrackCollection > &  tracks,
edm::ESHandle< TransientTrackBuilder > &  trackbuilder,
unsigned int  k 
)
inline
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
edm::Ref< TrackCollection >
dqmdumpme.k
k
Definition: dqmdumpme.py:60
reco::TransientTrack
Definition: TransientTrack.h:19
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition: TransientTrackBuilder.cc:20