CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TrackingTools/GsfTools/interface/GaussianStateLessWeight.h

Go to the documentation of this file.
00001 #ifndef GaussianStateLessWeight_h_
00002 #define GaussianStateLessWeight_h_
00003 
00004 #include "TrackingTools/GsfTools/interface/SingleGaussianState.h"
00005 #include "boost/shared_ptr.hpp"
00006 
00011 template <unsigned int N>
00012 class GaussianStateLessWeight {
00013   
00014 private:
00015   typedef boost::shared_ptr< SingleGaussianState<N> > SingleStatePtr;
00016 
00017 public:
00018   GaussianStateLessWeight() {}
00019   bool operator()(const SingleStatePtr& a, 
00020                   const SingleStatePtr& b) const
00021   {
00022 // ThS: No validity for SingleGaussianState
00023 //     if ( !a.isValid() || !b.isValid() )  return false;
00024     return a->weight()>b->weight();
00025   }
00026 };
00027 
00028 #endif