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 51 of file DTCompactMapWriter.cc.

Member Function Documentation

◆ operator()()

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

Definition at line 58 of file DTCompactMapWriter.cc.

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

58  {
59  if (idl.dduId() < idr.dduId())
60  return true;
61  if (idl.dduId() > idr.dduId())
62  return false;
63  if (idl.rosId() < idr.rosId())
64  return true;
65  if (idl.rosId() > idr.rosId())
66  return false;
67  if (idl.channelId() < idr.channelId())
68  return true;
69  if (idl.channelId() > idr.channelId())
70  return false;
71  return false;
72 }
int channelId() const