CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 50 of file CaloHit.h.

Member Function Documentation

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

Definition at line 54 of file CaloHit.h.

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

54  {
55  if (a->id() < b->id()) {
56  return true;
57  } else if (a->id() > b->id()) {
58  return false;
59  } else {
60  return (a->t() < b->t());
61  }
62  }
uint32_t id() const
Definition: CaloHit.h:28
double t() const
Definition: CaloHit.h:27