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
L1Trigger
L1TNtuples
src
L1AnalysisRecoTrack.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TNtuples/interface/L1AnalysisRecoTrack.h
"
2
3
void
L1Analysis::L1AnalysisRecoTrack::SetTracks
(
const
reco::TrackCollection
&
trackColl
,
unsigned
maxTrack) {
4
track_
.
nTrk
=
trackColl
.size();
5
6
reco::TrackBase::TrackQuality
hiPurity =
reco::TrackBase::qualityByName
(
"highPurity"
);
7
for
(reco::TrackCollection::const_iterator itk =
trackColl
.begin(); itk !=
trackColl
.end(); ++itk) {
8
if
(itk->quality(hiPurity))
9
track_
.
nHighPurity
++;
10
}
11
track_
.
fHighPurity
=
static_cast<
float
>
(
track_
.
nHighPurity
) / static_cast<float>(
track_
.
nTrk
);
12
}
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition:
TrackBase.h:150
L1Analysis::L1AnalysisRecoTrack::track_
L1Analysis::L1AnalysisRecoTrackDataFormat track_
Definition:
L1AnalysisRecoTrack.h:26
pfDisplacedTrackerVertex_cfi.trackColl
trackColl
Definition:
pfDisplacedTrackerVertex_cfi.py:6
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
L1Analysis::L1AnalysisRecoTrackDataFormat::fHighPurity
double fHighPurity
Definition:
L1AnalysisRecoTrackDataFormat.h:26
L1Analysis::L1AnalysisRecoTrack::SetTracks
void SetTracks(const reco::TrackCollection &trackColl, unsigned maxTrack)
Definition:
L1AnalysisRecoTrack.cc:3
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition:
TrackBase.cc:126
L1AnalysisRecoTrack.h
L1Analysis::L1AnalysisRecoTrackDataFormat::nTrk
unsigned int nTrk
Definition:
L1AnalysisRecoTrackDataFormat.h:24
L1Analysis::L1AnalysisRecoTrackDataFormat::nHighPurity
unsigned int nHighPurity
Definition:
L1AnalysisRecoTrackDataFormat.h:25
Generated for CMSSW Reference Manual by
1.8.14