ATLAS Offline Software
Public Member Functions | List of all members
InDet::compDetElementWays Class Reference

#include <SiDetElementsComparison.h>

Collaboration diagram for InDet::compDetElementWays:

Public Member Functions

bool operator() (const SiDetElementLink_xk::ElementWay &l1, const SiDetElementLink_xk::ElementWay &l2) const
 

Detailed Description

Definition at line 90 of file SiDetElementsComparison.h.

Member Function Documentation

◆ operator()()

bool InDet::compDetElementWays::operator() ( const SiDetElementLink_xk::ElementWay l1,
const SiDetElementLink_xk::ElementWay l2 
) const
inline

in case of equality, use the sorting logic in the layer vectors

otherwise compare by distance

Definition at line 92 of file SiDetElementsComparison.h.

92  {
94  if (l1.way() == l2.way()){
95  return l1.distance() < l2.distance();
96  }
98  else return l1.way() < l2.way();
99  }

The documentation for this class was generated from the following file:
skel.l2
l2
Definition: skel.GENtoEVGEN.py:426
skel.l1
l1
Definition: skel.GENtoEVGEN.py:425