CMS 3D CMS Logo

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 91 of file CaloG4Hit.h.

Member Function Documentation

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

Definition at line 93 of file CaloG4Hit.h.

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

93  {
94  if (a->getTrackID() != b->getTrackID()) {
95  return (a->getTrackID() < b->getTrackID());
96  } else if (a->getUnitID() != b->getUnitID()) {
97  return (a->getUnitID() < b->getUnitID());
98  } else if (a->getDepth() != b->getDepth()) {
99  return (a->getDepth() < b->getDepth());
100  } else {
101  return (a->getTimeSliceID() < b->getTimeSliceID());
102  }
103  }
uint16_t getDepth() const
Definition: CaloG4Hit.h:68
int getTrackID() const
Definition: CaloG4Hit.h:64
int getTimeSliceID() const
Definition: CaloG4Hit.h:67
uint32_t getUnitID() const
Definition: CaloG4Hit.h:65