CMS 3D CMS Logo

GaussianStateLessWeight.h
Go to the documentation of this file.
1 #ifndef GaussianStateLessWeight_h_
2 #define GaussianStateLessWeight_h_
3 
5 #include <memory>
6 
11 template <unsigned int N>
13 private:
14  typedef std::shared_ptr<SingleGaussianState<N> > SingleStatePtr;
15 
16 public:
18  bool operator()(const SingleStatePtr& a, const SingleStatePtr& b) const {
19  // ThS: No validity for SingleGaussianState
20  // if ( !a.isValid() || !b.isValid() ) return false;
21  return a->weight() > b->weight();
22  }
23 };
24 
25 #endif
std::shared_ptr< SingleGaussianState< N > > SingleStatePtr
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119
bool operator()(const SingleStatePtr &a, const SingleStatePtr &b) const