Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
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
,
11
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
12
unsigned
int
k
) {
13
reco::TrackRef
ref(
tracks
,
k
);
14
return
trackbuilder->
build
(ref);
15
}
16
inline
reco::TransientTrack
buildTT
(
edm::Handle
<
edm::View<reco::Candidate>
> &
tracks
,
17
edm::ESHandle<TransientTrackBuilder>
&trackbuilder,
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
TransientTrackBuilder.h
edm::Ref< TrackCollection >
TransientTrack.h
edm::Handle< reco::TrackCollection >
tthelpers
Definition:
TTHelpers.h:9
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition:
TransientTrackBuilder.cc:20
Candidate.h
edm::View
Definition:
CaloClusterFwd.h:14
edm::ESHandle< TransientTrackBuilder >
reco::TransientTrack
Definition:
TransientTrack.h:19
tthelpers::buildTT
reco::TransientTrack buildTT(edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)
Definition:
TTHelpers.h:10
pwdgSkimBPark_cfi.tracks
tracks
Definition:
pwdgSkimBPark_cfi.py:29
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
Generated for CMSSW Reference Manual by
1.8.14