test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Clusterizer1DCommons::ComparePairs< T > Struct Template Reference

#include <Clusterizer1DCommons.h>

Public Member Functions

bool operator() (const Cluster1D< T > &c1, const Cluster1D< T > &c2)
 

Detailed Description

template<class T>
struct Clusterizer1DCommons::ComparePairs< T >

Definition at line 15 of file Clusterizer1DCommons.h.

Member Function Documentation

template<class T >
bool Clusterizer1DCommons::ComparePairs< T >::operator() ( const Cluster1D< T > &  c1,
const Cluster1D< T > &  c2 
)
inline

Definition at line 17 of file Clusterizer1DCommons.h.

References Cluster1D< T >::position(), and Measurement1D::value().

19  {
20  return ( c1.position().value() < c2.position().value() );
21  };
Measurement1D position() const
Definition: Cluster1D.h:55
double value() const
Definition: Measurement1D.h:28