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
4
#include "
TrackingTools/TransientTrack/interface/TransientTrack.h
"
5
#include "
TrackingTools/TransientTrack/interface/TransientTrackBuilder.h
"
6
7
namespace
tthelpers
{
8
inline
reco::TransientTrack
buildTT
(
edm::Handle<reco::TrackCollection>
&
tracks
,
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
unsigned
int
k
)
9
{
10
reco::TrackRef
ref(tracks, k);
11
return
trackbuilder->
build
(ref);
12
}
13
inline
reco::TransientTrack
buildTT
(
edm::Handle
<
edm::View<reco::Candidate>
> &
tracks
,
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
unsigned
int
k
)
14
{
15
if
((*
tracks
)[k].bestTrack() ==
nullptr
)
return
reco::TransientTrack
();
16
return
trackbuilder->
build
(
tracks
->ptrAt(k));
17
}
18
}
19
#endif
TransientTrackBuilder.h
edm::Ref< TrackCollection >
TransientTrack.h
edm::Handle< reco::TrackCollection >
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition:
TransientTrackBuilder.cc:16
tthelpers
Definition:
TTHelpers.h:7
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:8
Generated for CMSSW Reference Manual by
1.8.11