CMS 3D CMS Logo

List of all members | Public Member Functions
DTTDCChannelCompare Class Reference

Public Member Functions

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

Detailed Description

Definition at line 144 of file DTCompactMapWriter.cc.

Member Function Documentation

bool DTTDCChannelCompare::operator() ( const DTTDCChannelId idl,
const DTTDCChannelId idr 
) const

Definition at line 151 of file DTCompactMapWriter.cc.

References DTTDCChannelId::channelId(), and DTTDCChannelId::tdcId().

151  {
152  if (idl.tdcId() < idr.tdcId())
153  return true;
154  if (idl.tdcId() > idr.tdcId())
155  return false;
156  if (idl.channelId() < idr.channelId())
157  return true;
158  if (idl.channelId() > idr.channelId())
159  return false;
160  return false;
161 }
int channelId() const