CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
DTROBCardCompare Class Reference

Public Member Functions

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

Detailed Description

Definition at line 119 of file DTCompactMapWriter.cc.

Member Function Documentation

bool DTROBCardCompare::operator() ( const DTROBCardId idl,
const DTROBCardId idr 
) const

Definition at line 126 of file DTCompactMapWriter.cc.

References DTROBCardId::stationId().

127  {
128  if ( idl. wheelId() < idr. wheelId() ) return true;
129  if ( idl. wheelId() > idr. wheelId() ) return false;
130  if ( idl. sectorId() < idr. sectorId() ) return true;
131  if ( idl. sectorId() > idr. sectorId() ) return false;
132  if ( idl.stationId() < idr.stationId() ) return true;
133  if ( idl.stationId() > idr.stationId() ) return false;
134  if ( idl. robId() < idr. robId() ) return true;
135  if ( idl. robId() > idr. robId() ) return false;
136  return false;
137 }
int stationId() const