CMS 3D CMS Logo

Public Member Functions

DTPhysicalWireCompare Class Reference

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 212 of file DTCompactMapWriter.cc.


Member Function Documentation

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

Definition at line 219 of file DTCompactMapWriter.cc.

References DTPhysicalWireId::superlayerId().

                                                                             {
  if ( idl.superlayerId() < idr.superlayerId() ) return true;
  if ( idl.superlayerId() > idr.superlayerId() ) return false;
  if ( idl.     layerId() < idr.     layerId() ) return true;
  if ( idl.     layerId() > idr.     layerId() ) return false;
  if ( idl.      cellId() < idr.      cellId() ) return true;
  if ( idl.      cellId() > idr.      cellId() ) return false;
  return false;
}