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
CaloHitIdMore Class Reference

#include <CaloHit.h>

Public Member Functions

bool operator() (const CaloHit *a, const CaloHit *b)
 

Detailed Description

Definition at line 41 of file CaloHit.h.

Member Function Documentation

bool CaloHitIdMore::operator() ( const CaloHit a,
const CaloHit b 
)
inline

Definition at line 43 of file CaloHit.h.

References CaloHit::id(), and CaloHit::t().

43  {
44  if (a->id() < b->id()) {
45  return true;
46  } else if (a->id() > b->id()) {
47  return false;
48  } else {
49  return (a->t() < b->t());
50  }
51  }
uint32_t id() const
Definition: CaloHit.h:25
double t() const
Definition: CaloHit.h:24