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

Member Function Documentation

◆ operator()()

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

Definition at line 94 of file CaloG4Hit.h.

94  {
95  if (a->getTrackID() != b->getTrackID()) {
96  return (a->getTrackID() < b->getTrackID());
97  } else if (a->getUnitID() != b->getUnitID()) {
98  return (a->getUnitID() < b->getUnitID());
99  } else if (a->getDepth() != b->getDepth()) {
100  return (a->getDepth() < b->getDepth());
101  } else if (a->getID().fineTrackID() != b->getID().fineTrackID()) {
102  return (a->getID().fineTrackID() < b->getID().fineTrackID());
103  } else {
104  return (a->getTimeSliceID() < b->getTimeSliceID());
105  }
106  }

References a, and b.

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