File indexing completed on 2024-04-06 12:25:20
0001 #ifndef RecoHI_HiTracking_BestVertexComparator_h
0002 #define RecoHI_HiTracking_BestVertexComparator_h
0003
0004 template <typename T>
0005 struct GreaterByTracksSize {
0006 typedef T first_argument_type;
0007 typedef T second_argument_type;
0008 bool operator()(const T& t1, const T& t2) const { return t1.tracksSize() > t2.tracksSize(); }
0009 };
0010
0011 template <typename T>
0012 struct LessByNormalizedChi2 {
0013 typedef T first_argument_type;
0014 typedef T second_argument_type;
0015 bool operator()(const T& t1, const T& t2) const { return t1.normalizeChi2() < t2.normalizedChi2(); }
0016 };
0017
0018 #endif