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

Member Function Documentation

◆ operator()()

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

Definition at line 148 of file DetGeomDesc.h.

148  {
149  bool operator()(const DetGeomDesc& a, const DetGeomDesc& b) const {
150  return (a.geographicalID() != b.geographicalID()
151  ? a.geographicalID() < b.geographicalID() // Sort by DetId
152  // If DetIds are identical (== 0 for non-sensors), sort by name and copy number.
153  : (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:148