CMS 3D CMS Logo

L1AnalysisRecoTrack.cc
Go to the documentation of this file.
2 
3 
4 
6 {
7 
8  track_.nTrk = trackColl.size();
9 
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 
TrackQuality
track quality
Definition: TrackBase.h:151
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:125