Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:16

0001 #include "L1Trigger/L1TNtuples/interface/L1AnalysisRecoTrack.h"
0002 
0003 void L1Analysis::L1AnalysisRecoTrack::SetTracks(const reco::TrackCollection& trackColl, unsigned maxTrack) {
0004   track_.nTrk = trackColl.size();
0005 
0006   reco::TrackBase::TrackQuality hiPurity = reco::TrackBase::qualityByName("highPurity");
0007   for (reco::TrackCollection::const_iterator itk = trackColl.begin(); itk != trackColl.end(); ++itk) {
0008     if (itk->quality(hiPurity))
0009       track_.nHighPurity++;
0010   }
0011   track_.fHighPurity = static_cast<float>(track_.nHighPurity) / static_cast<float>(track_.nTrk);
0012 }