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

◆ operator()()

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

Definition at line 151 of file DTCompactMapWriter.cc.

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 }

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

DTTDCChannelId::tdcId
int tdcId() const
Definition: DTCompactMapWriter.cc:140
DTTDCChannelId::channelId
int channelId() const
Definition: DTCompactMapWriter.cc:142