CMS 3D CMS Logo

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

Member Function Documentation

◆ operator()()

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

Definition at line 107 of file DTCompactMapWriter.cc.

References DTROBCardId::robId(), DTROBCardId::sectorId(), DTROBCardId::stationId(), and DTROBCardId::wheelId().

107  {
108  if (idl.wheelId() < idr.wheelId())
109  return true;
110  if (idl.wheelId() > idr.wheelId())
111  return false;
112  if (idl.sectorId() < idr.sectorId())
113  return true;
114  if (idl.sectorId() > idr.sectorId())
115  return false;
116  if (idl.stationId() < idr.stationId())
117  return true;
118  if (idl.stationId() > idr.stationId())
119  return false;
120  if (idl.robId() < idr.robId())
121  return true;
122  if (idl.robId() > idr.robId())
123  return false;
124  return false;
125 }
int wheelId() const
int sectorId() const
int robId() const
int stationId() const