CMS 3D CMS Logo

Public Member Functions

CaloHitIdMore Class Reference

#include <CaloHit.h>

List of all members.

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().

                                                       {
    if (a->id() < b->id()) {
      return true;
    } else if (a->id() > b->id()) {
      return false;
    } else {
      return (a->t() < b->t());
    }
  }