CMS 3D CMS Logo

CaloG4HitLess Class Reference

#include <SimG4CMS/Calo/interface/CaloG4Hit.h>

List of all members.

Public Member Functions

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


Detailed Description

Definition at line 92 of file CaloG4Hit.h.


Member Function Documentation

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

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   }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:44 2009 for CMSSW by  doxygen 1.5.4