/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
TrackingTools/GsfTools/interface/GaussianStateLessWeight.h
25 строк
666 B
Cms Build
Clang-Format
03 июн 2019, 06:51
03 июн 2019, 06:51
c1b767c
Код
Авторство
О чём код?
#ifndef GaussianStateLessWeight_h_ #define GaussianStateLessWeight_h_ #include "TrackingTools/GsfTools/interface/SingleGaussianState.h" #include <memory> /** \class GaussianStateLessWeight * Compare two SingleGaussianState acc. to their weight. */ template <unsigned int N> class GaussianStateLessWeight { private: typedef std::shared_ptr<SingleGaussianState<N> > SingleStatePtr; public: GaussianStateLessWeight() {} bool operator()(const SingleStatePtr& a, const SingleStatePtr& b) const { // ThS: No validity for SingleGaussianState // if ( !a.isValid() || !b.isValid() ) return false; return a->weight() > b->weight(); } }; #endif