CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/RecoHI/HiTracking/interface/BestVertexComparator.h

Go to the documentation of this file.
00001 #ifndef RecoHI_HiTracking_BestVertexComparator_h
00002 #define RecoHI_HiTracking_BestVertexComparator_h
00003 
00004 template<typename T>
00005 struct GreaterByTracksSize {
00006         typedef T first_argument_type;
00007         typedef T second_argument_type;
00008         bool operator()( const T & t1, const T & t2 ) const {
00009                 return t1.tracksSize() > t2.tracksSize();
00010         }
00011 };
00012 
00013 template<typename T>
00014 struct LessByNormalizedChi2 {
00015         typedef T first_argument_type;
00016         typedef T second_argument_type;
00017         bool operator()( const T & t1, const T & t2 ) const {
00018                 return t1.normalizeChi2() < t2.normalizedChi2();
00019         }
00020 };
00021 
00022 #endif