CMS 3D CMS Logo

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

◆ operator()()

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

Definition at line 43 of file CaloHit.h.

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  }

References a, and b.

b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119