CMS 3D CMS Logo

List of all members | Public Member Functions
CaloGVHitLess Class Reference

#include <CaloGVHit.h>

Public Member Functions

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

Detailed Description

Definition at line 72 of file CaloGVHit.h.

Member Function Documentation

bool CaloGVHitLess::operator() ( const CaloGVHit a,
const CaloGVHit b 
)
inline

Definition at line 74 of file CaloGVHit.h.

References CaloGVHit::getDepth(), CaloGVHit::getEventID(), CaloGVHit::getTimeSliceID(), CaloGVHit::getTrackID(), and CaloGVHit::getUnitID().

74  {
75  if (a->getEventID() != b->getEventID()) {
76  return (a->getEventID() < b->getEventID());
77  } else if (a->getTrackID() != b->getTrackID()) {
78  return (a->getTrackID() < b->getTrackID());
79  } else if (a->getUnitID() != b->getUnitID()) {
80  return (a->getUnitID() < b->getUnitID());
81  } else if (a->getDepth() != b->getDepth()) {
82  return (a->getDepth() < b->getDepth());
83  } else {
84  return (a->getTimeSliceID() < b->getTimeSliceID());
85  }
86  }
int getEventID() const
Definition: CaloGVHit.h:45
uint32_t getUnitID() const
Definition: CaloGVHit.h:49
uint16_t getDepth() const
Definition: CaloGVHit.h:52
int getTrackID() const
Definition: CaloGVHit.h:48
int getTimeSliceID() const
Definition: CaloGVHit.h:51