CMS 3D CMS Logo

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

Public Member Functions

bool operator() (const edm::RefToBase< T > &r1, const edm::RefToBase< T > &r2) const
 

Detailed Description

template<typename T>
struct reco::JetSignalVertexCompatibilityAlgo::RefToBaseLess< T >

Definition at line 26 of file JetSignalVertexCompatibilityAlgo.h.

Member Function Documentation

template<typename T >
bool JetSignalVertexCompatibilityAlgo::RefToBaseLess::operator() ( const edm::RefToBase< T > &  r1,
const edm::RefToBase< T > &  r2 
) const
inline

Definition at line 24 of file JetSignalVertexCompatibilityAlgo.cc.

References edm::RefToBase< T >::id(), and edm::RefToBase< T >::key().

25  {
26  return r1.id() < r2.id() || (r1.id() == r2.id() && r1.key() < r2.key());
27 }
ProductID id() const
Definition: RefToBase.h:214
size_t key() const
Definition: RefToBase.h:219