CMS 3D CMS Logo

List of all members | Public Member Functions
TopMonitor::JetRefCompare Struct Reference

Public Member Functions

bool operator() (const edm::RefToBase< reco::Jet > &j1, const edm::RefToBase< reco::Jet > &j2) const
 

Detailed Description

Definition at line 50 of file TopMonitor.cc.

Member Function Documentation

◆ operator()()

bool TopMonitor::JetRefCompare::operator() ( const edm::RefToBase< reco::Jet > &  j1,
const edm::RefToBase< reco::Jet > &  j2 
) const
inline

Definition at line 51 of file TopMonitor.cc.

51  {
52  return (j1.id() < j2.id()) || ((j1.id() == j2.id()) && (j1.key() < j2.key()));
53  }

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

edm::RefToBase::key
size_t key() const
Definition: RefToBase.h:219
edm::RefToBase::id
ProductID id() const
Definition: RefToBase.h:214