test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 >
relval_2017.k
list k
Definition:
relval_2017.py:23
edm::Handle< reco::TrackCollection >
edm::View< reco::Candidate >
edm::ESHandle< TransientTrackBuilder >
reco::TransientTrack
Definition:
TransientTrack.h:21
testEve_cfg.tracks
tuple tracks
Definition:
testEve_cfg.py:39
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.5