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

◆ operator()()

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

Definition at line 74 of file CaloGVHit.h.

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  }

References a, and b.

b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119