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 ()
 
 GaussianStateLessWeight ()
 
bool operator() (const RCSingleGaussianState a, const RCSingleGaussianState b) const
 
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 15 of file GaussianStateLessWeight.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file GaussianStateLessWeight.h.

18 {}
template<unsigned int N>
GaussianStateLessWeight< N >::GaussianStateLessWeight ( )
inline

Definition at line 13 of file GaussianStateLessWeight.h.

13 {}

Member Function Documentation

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

Definition at line 14 of file GaussianStateLessWeight.h.

16  {
17 // ThS: No validity for RCSingleGaussianState
18 // if ( !a.isValid() || !b.isValid() ) return false;
19  return a->weight()>b->weight();
20  }
template<unsigned int N>
bool GaussianStateLessWeight< N >::operator() ( const SingleStatePtr a,
const SingleStatePtr b 
) const
inline

Definition at line 19 of file GaussianStateLessWeight.h.

21  {
22 // ThS: No validity for SingleGaussianState
23 // if ( !a.isValid() || !b.isValid() ) return false;
24  return a->weight()>b->weight();
25  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121