CMS 3D CMS Logo

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 11 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 12 of file Clusterizer1DCommons.h.

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

12  {
13  return (c1.position().value() < c2.position().value());
14  };
Measurement1D position() const
Definition: Cluster1D.h:46
double value() const
Definition: Measurement1D.h:25