#include <SimG4CMS/Calo/interface/CaloG4Hit.h>
Public Member Functions | |
bool | operator() (const CaloG4Hit *a, const CaloG4Hit *b) |
Definition at line 92 of file CaloG4Hit.h.
Definition at line 94 of file CaloG4Hit.h.
References CaloG4Hit::getDepth(), CaloG4Hit::getTimeSliceID(), CaloG4Hit::getTrackID(), and CaloG4Hit::getUnitID().
00094 { 00095 if (a->getTrackID() != b->getTrackID()) { 00096 return (a->getTrackID() < b->getTrackID()); 00097 } else if (a->getUnitID() != b->getUnitID()) { 00098 return (a->getUnitID() < b->getUnitID()); 00099 } else if (a->getDepth() != b->getDepth()) { 00100 return (a->getDepth() < b->getDepth()); 00101 } else { 00102 return (a->getTimeSliceID() < b->getTimeSliceID()); 00103 } 00104 }