CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 44 of file CaloDetInfo.h.

References CaloDetInfo::depth(), CaloDetInfo::id(), and CaloDetInfo::rho().

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  }
uint32_t depth() const
Definition: CaloDetInfo.h:23
uint32_t id() const
Definition: CaloDetInfo.h:22
double rho() const
Definition: CaloDetInfo.h:24
bool CaloDetInfoLess::operator() ( const CaloDetInfo  a,
const CaloDetInfo  b 
)
inline

Definition at line 55 of file CaloDetInfo.h.

References CaloDetInfo::depth(), CaloDetInfo::id(), and CaloDetInfo::rho().

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  }
uint32_t depth() const
Definition: CaloDetInfo.h:23
uint32_t id() const
Definition: CaloDetInfo.h:22
double rho() const
Definition: CaloDetInfo.h:24