#include <LayerSort.h>
Definition at line 18 of file LayerSort.h.
◆ operator()()
Definition at line 85 of file LayerSort.cxx.
86 auto castToCylinder = [](
const Layer * pLayer) ->
const CylinderSurface * {
88 return static_cast<const CylinderSurface *
>(&pLayer->surfaceRepresentation());
91 auto castToDisc = [](
const Layer * pLayer) ->
const DiscSurface *{
93 return static_cast<const DiscSurface *
>(&pLayer->surfaceRepresentation());
97 const CylinderSurface *cyl1 = castToCylinder(
one);
98 const CylinderSurface *cyl2 = castToCylinder(
two);
100 return (cyl1->bounds().r() < cyl2->bounds().r());
102 const DiscSurface *disc1 = castToDisc(
one);
103 const DiscSurface *disc2 = castToDisc(
two);
104 if (disc1 and disc2) {
105 return (std::abs(disc1->center().z()) < std::abs(disc2->center().z()));
The documentation for this class was generated from the following files: