Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:48

0001 #include "TrackingTools/TrackFitters/interface/RecHitSorter.h"
0002 #include "TrackingTools/TrackFitters/interface/RecHitLessByDet.h"
0003 
0004 #include <algorithm>
0005 
0006 RecHitSorter::RecHitContainer RecHitSorter::sortHits(const RecHitContainer& hits,
0007                                                      const PropagationDirection& dir) const {
0008   RecHitContainer myHits(hits);
0009 
0010   sort(myHits.begin(), myHits.end(), RecHitLessByDet(dir));
0011 
0012   return myHits;
0013 }