CMS 3D CMS Logo

List of all members | Public Member Functions
DTROSChannelCompare Class Reference

Public Member Functions

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

Detailed Description

Definition at line 62 of file DTCompactMapWriter.cc.

Member Function Documentation

bool DTROSChannelCompare::operator() ( const DTROSChannelId idl,
const DTROSChannelId idr 
) const

Definition at line 69 of file DTCompactMapWriter.cc.

References DTROSChannelId::channelId(), DTROSChannelId::dduId(), and DTROSChannelId::rosId().

70  {
71  if ( idl. dduId() < idr. dduId() ) return true;
72  if ( idl. dduId() > idr. dduId() ) return false;
73  if ( idl. rosId() < idr. rosId() ) return true;
74  if ( idl. rosId() > idr. rosId() ) return false;
75  if ( idl.channelId() < idr.channelId() ) return true;
76  if ( idl.channelId() > idr.channelId() ) return false;
77  return false;
78 }
int channelId() const