Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
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.5