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