CMS 3D CMS Logo

List of all members | Public Member Functions
CaloDetInfoLess Class Reference

#include <CaloDetInfo.h>

Public Member Functions

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

Detailed Description

Definition at line 42 of file CaloDetInfo.h.

Member Function Documentation

◆ operator()() [1/2]

bool CaloDetInfoLess::operator() ( const CaloDetInfo a,
const CaloDetInfo b 
)
inline

Definition at line 44 of file CaloDetInfo.h.

References a, and b.

44  {
45  if (a->id() == b->id()) {
46  if (a->depth() == b->depth()) {
47  return (a->rho() < b->rho());
48  } else {
49  return (a->depth() < b->depth());
50  }
51  } else {
52  return (a->id() < b->id());
53  }
54  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator()() [2/2]

bool CaloDetInfoLess::operator() ( const CaloDetInfo  a,
const CaloDetInfo  b 
)
inline

Definition at line 55 of file CaloDetInfo.h.

References a, and b.

55  {
56  if (a.id() == b.id()) {
57  if (a.depth() == b.depth()) {
58  return (a.rho() < b.rho());
59  } else {
60  return (a.depth() < b.depth());
61  }
62  } else {
63  return (a.id() < b.id());
64  }
65  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119