CMS 3D CMS Logo

List of all members | Public Member Functions
DTPhysicalWireCompare Class Reference

Public Member Functions

bool operator() (const DTPhysicalWireId &idl, const DTPhysicalWireId &idr) const
 

Detailed Description

Definition at line 185 of file DTCompactMapWriter.cc.

Member Function Documentation

◆ operator()()

bool DTPhysicalWireCompare::operator() ( const DTPhysicalWireId idl,
const DTPhysicalWireId idr 
) const

Definition at line 192 of file DTCompactMapWriter.cc.

192  {
193  if (idl.superlayerId() < idr.superlayerId())
194  return true;
195  if (idl.superlayerId() > idr.superlayerId())
196  return false;
197  if (idl.layerId() < idr.layerId())
198  return true;
199  if (idl.layerId() > idr.layerId())
200  return false;
201  if (idl.cellId() < idr.cellId())
202  return true;
203  if (idl.cellId() > idr.cellId())
204  return false;
205  return false;
206 }

References DTPhysicalWireId::cellId(), DTPhysicalWireId::layerId(), and DTPhysicalWireId::superlayerId().

DTPhysicalWireId::cellId
int cellId() const
Definition: DTCompactMapWriter.cc:183
DTPhysicalWireId::layerId
int layerId() const
Definition: DTCompactMapWriter.cc:181
DTPhysicalWireId::superlayerId
int superlayerId() const
Definition: DTCompactMapWriter.cc:179