Main Page
Namespaces
Classes
Package Documentation
RecoVertex
AdaptiveVertexFinder
interface
TTHelpers.h
Go to the documentation of this file.
1
#ifndef TTHelper_s
2
#define TTHelper_s
3
namespace
tthelpers
{
4
inline
reco::TransientTrack
buildTT
(
edm::Handle<reco::TrackCollection>
&
tracks
,
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
unsigned
int
k
)
5
{
6
reco::TrackRef
ref(tracks, k);
7
return
trackbuilder->
build
(ref);
8
}
9
inline
reco::TransientTrack
buildTT
(
edm::Handle
<
edm::View<reco::Candidate>
> &
tracks
,
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
unsigned
int
k
)
10
{
11
if
((*
tracks
)[k].bestTrack() == 0)
return
reco::TransientTrack
();
12
return
trackbuilder->
build
(
tracks
->ptrAt(k));
13
}
14
}
15
#endif
edm::Ref< TrackCollection >
edm::Handle< reco::TrackCollection >
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition:
TransientTrackBuilder.cc:16
tthelpers
Definition:
TTHelpers.h:3
edm::View< reco::Candidate >
edm::ESHandle< TransientTrackBuilder >
l1t::tracks
Definition:
MicroGMTCancelOutUnit.h:12
reco::TransientTrack
Definition:
TransientTrack.h:21
gen::k
int k[5][pyjets_maxn]
Definition:
Cascade2Hadronizer.cc:79
tthelpers::buildTT
reco::TransientTrack buildTT(edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
Definition:
TTHelpers.h:4
Generated for CMSSW Reference Manual by
1.8.11