CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 93 of file CaloG4Hit.h.

Member Function Documentation

◆ operator()()

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

Definition at line 95 of file CaloG4Hit.h.

References a, and b.

95  {
96  if (a->getTrackID() != b->getTrackID()) {
97  return (a->getTrackID() < b->getTrackID());
98  } else if (a->getUnitID() != b->getUnitID()) {
99  return (a->getUnitID() < b->getUnitID());
100  } else if (a->getDepth() != b->getDepth()) {
101  return (a->getDepth() < b->getDepth());
102  } else {
103  return (a->getTimeSliceID() < b->getTimeSliceID());
104  }
105  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119