test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GaussianStateLessWeight.h
Go to the documentation of this file.
1 #ifndef GaussianStateLessWeight_h_
2 #define GaussianStateLessWeight_h_
3 
5 #include "boost/shared_ptr.hpp"
6 
11 template <unsigned int N>
13 
14 private:
15  typedef boost::shared_ptr< SingleGaussianState<N> > SingleStatePtr;
16 
17 public:
19  bool operator()(const SingleStatePtr& a,
20  const SingleStatePtr& b) const
21  {
22 // ThS: No validity for SingleGaussianState
23 // if ( !a.isValid() || !b.isValid() ) return false;
24  return a->weight()>b->weight();
25  }
26 };
27 
28 #endif
boost::shared_ptr< SingleGaussianState< N > > SingleStatePtr
bool operator()(const SingleStatePtr &a, const SingleStatePtr &b) const
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121