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 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::cellId(), DTPhysicalWireId::layerId(), and DTPhysicalWireId::superlayerId().

220  {
221  if ( idl.superlayerId() < idr.superlayerId() ) return true;
222  if ( idl.superlayerId() > idr.superlayerId() ) return false;
223  if ( idl. layerId() < idr. layerId() ) return true;
224  if ( idl. layerId() > idr. layerId() ) return false;
225  if ( idl. cellId() < idr. cellId() ) return true;
226  if ( idl. cellId() > idr. cellId() ) return false;
227  return false;
228 }
int superlayerId() const