CMS 3D CMS Logo

List of all members | Public Member Functions
DetGeomDescCompare Struct Reference

#include <DetGeomDesc.h>

Public Member Functions

bool operator() (const DetGeomDesc &a, const DetGeomDesc &b) const
 

Detailed Description

Definition at line 136 of file DetGeomDesc.h.

Member Function Documentation

◆ operator()()

bool DetGeomDescCompare::operator() ( const DetGeomDesc a,
const DetGeomDesc b 
) const
inline

Definition at line 137 of file DetGeomDesc.h.

137  {
138  bool operator()(const DetGeomDesc& a, const DetGeomDesc& b) const {
139  return (a.geographicalID() != b.geographicalID()
140  ? a.geographicalID() < b.geographicalID() // Sort by DetId
141  // If DetIds are identical (== 0 for non-sensors), sort by name and copy number.
142  : (a.name() != b.name() ? a.name() < b.name() : a.copyno() < b.copyno()));

References a, and b.

b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
DetGeomDesc
Definition: DetGeomDesc.h:49
DetGeomDescCompare::operator()
bool operator()(const DetGeomDesc &a, const DetGeomDesc &b) const
Definition: DetGeomDesc.h:137