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 152 of file DetGeomDesc.h.

Member Function Documentation

◆ operator()()

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

Definition at line 153 of file DetGeomDesc.h.

References a, and b.

153  {
154  return (a.geographicalID() != b.geographicalID()
155  ? a.geographicalID() < b.geographicalID() // Sort by DetId
156  // If DetIds are identical (== 0 for non-sensors), sort by name and copy number.
157  : (a.name() != b.name() ? a.name() < b.name() : a.copyno() < b.copyno()));
158  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119