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 {
12  unsigned int k) {
13  reco::TrackRef ref(tracks, k);
14  return trackbuilder->build(ref);
15  }
18  unsigned int k) {
19  if ((*tracks)[k].bestTrack() == nullptr)
20  return reco::TransientTrack();
21  return trackbuilder->build(tracks->ptrAt(k));
22  }
23 } // namespace tthelpers
24 #endif
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
TransientTrack.h
edm::Handle< reco::TrackCollection >
edm::Ref< TrackCollection >
tthelpers
Definition: TTHelpers.h:9
edm::ESHandle< TransientTrackBuilder >
dqmdumpme.k
k
Definition: dqmdumpme.py:60
edm::View
Definition: CaloClusterFwd.h:14
TransientTrackBuilder.h
tthelpers::buildTT
reco::TransientTrack buildTT(edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
Definition: TTHelpers.h:10
reco::TransientTrack
Definition: TransientTrack.h:19
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition: TransientTrackBuilder.cc:20
Candidate.h