CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
CaloG4HitLess Class Reference

#include <CaloG4Hit.h>

Public Member Functions

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

Detailed Description

Definition at line 96 of file CaloG4Hit.h.

Member Function Documentation

bool CaloG4HitLess::operator() ( const CaloG4Hit a,
const CaloG4Hit b 
)
inline

Definition at line 98 of file CaloG4Hit.h.

References CaloG4Hit::getDepth(), CaloG4Hit::getTimeSliceID(), CaloG4Hit::getTrackID(), and CaloG4Hit::getUnitID().

98  {
99  if (a->getTrackID() != b->getTrackID()) {
100  return (a->getTrackID() < b->getTrackID());
101  } else if (a->getUnitID() != b->getUnitID()) {
102  return (a->getUnitID() < b->getUnitID());
103  } else if (a->getDepth() != b->getDepth()) {
104  return (a->getDepth() < b->getDepth());
105  } else {
106  return (a->getTimeSliceID() < b->getTimeSliceID());
107  }
108  }
uint16_t getDepth() const
Definition: CaloG4Hit.h:72
int getTrackID() const
Definition: CaloG4Hit.h:68
int getTimeSliceID() const
Definition: CaloG4Hit.h:71
uint32_t getUnitID() const
Definition: CaloG4Hit.h:69