CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1AnalysisRecoTrack.cc
Go to the documentation of this file.
2 
3 void L1Analysis::L1AnalysisRecoTrack::SetTracks(const reco::TrackCollection& trackColl, unsigned maxTrack) {
4  track_.nTrk = trackColl.size();
5 
7  for (reco::TrackCollection::const_iterator itk = trackColl.begin(); itk != trackColl.end(); ++itk) {
8  if (itk->quality(hiPurity))
10  }
11  track_.fHighPurity = static_cast<float>(track_.nHighPurity) / static_cast<float>(track_.nTrk);
12 }
TrackQuality
track quality
Definition: TrackBase.h:150
L1Analysis::L1AnalysisRecoTrackDataFormat track_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
void SetTracks(const reco::TrackCollection &trackColl, unsigned maxTrack)
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126