Main Page
Namespaces
Classes
Package Documentation
src
L1Trigger
L1TNtuples
src
L1AnalysisRecoTrack.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TNtuples/interface/L1AnalysisRecoTrack.h
"
2
3
4
5
void
L1Analysis::L1AnalysisRecoTrack::SetTracks
(
const
reco::TrackCollection
&
trackColl
,
unsigned
maxTrack)
6
{
7
8
track_
.
nTrk
= trackColl.size();
9
10
reco::TrackBase::TrackQuality
hiPurity =
reco::TrackBase::qualityByName
(
"highPurity"
);
11
for
(reco::TrackCollection::const_iterator itk = trackColl.begin();
12
itk!=trackColl.end();
13
++itk){
14
if
(itk->quality(hiPurity))
track_
.
nHighPurity
++;
15
}
16
track_
.
fHighPurity
=
static_cast<
float
>
(
track_
.
nHighPurity
)/static_cast<float>(
track_
.
nTrk
);
17
18
}
19
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition:
TrackBase.h:151
L1Analysis::L1AnalysisRecoTrack::track_
L1Analysis::L1AnalysisRecoTrackDataFormat track_
Definition:
L1AnalysisRecoTrack.h:29
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:29
L1Analysis::L1AnalysisRecoTrack::SetTracks
void SetTracks(const reco::TrackCollection &trackColl, unsigned maxTrack)
Definition:
L1AnalysisRecoTrack.cc:5
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition:
TrackBase.cc:125
L1AnalysisRecoTrack.h
L1Analysis::L1AnalysisRecoTrackDataFormat::nTrk
unsigned int nTrk
Definition:
L1AnalysisRecoTrackDataFormat.h:27
L1Analysis::L1AnalysisRecoTrackDataFormat::nHighPurity
unsigned int nHighPurity
Definition:
L1AnalysisRecoTrackDataFormat.h:28
Generated for CMSSW Reference Manual by
1.8.11