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

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

Definition at line 192 of file DTCompactMapWriter.cc.

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

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 }
int superlayerId() const