CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types
GaussianStateLessWeight< N > Class Template Reference

#include <GaussianStateLessWeight.h>

Public Member Functions

 GaussianStateLessWeight ()
 
bool operator() (const SingleStatePtr &a, const SingleStatePtr &b) const
 

Private Types

typedef std::shared_ptr< SingleGaussianState< N > > SingleStatePtr
 

Detailed Description

template<unsigned int N>
class GaussianStateLessWeight< N >

Compare two SingleGaussianState acc. to their weight.

Definition at line 12 of file GaussianStateLessWeight.h.

Member Typedef Documentation

template<unsigned int N>
typedef std::shared_ptr<SingleGaussianState<N> > GaussianStateLessWeight< N >::SingleStatePtr
private

Definition at line 14 of file GaussianStateLessWeight.h.

Constructor & Destructor Documentation

template<unsigned int N>
GaussianStateLessWeight< N >::GaussianStateLessWeight ( )
inline

Definition at line 17 of file GaussianStateLessWeight.h.

17 {}

Member Function Documentation

template<unsigned int N>
bool GaussianStateLessWeight< N >::operator() ( const SingleStatePtr a,
const SingleStatePtr b 
) const
inline

Definition at line 18 of file GaussianStateLessWeight.h.

18  {
19  // ThS: No validity for SingleGaussianState
20  // if ( !a.isValid() || !b.isValid() ) return false;
21  return a->weight() > b->weight();
22  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119