CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
RPCReadOutMappingWithFastSearch::lessMap Struct Reference

Public Member Functions

bool operator() (const LinkBoardElectronicIndex &lb1, const LinkBoardElectronicIndex &lb2) const
 

Detailed Description

Definition at line 25 of file RPCReadOutMappingWithFastSearch.h.

Member Function Documentation

bool RPCReadOutMappingWithFastSearch::lessMap::operator() ( const LinkBoardElectronicIndex lb1,
const LinkBoardElectronicIndex lb2 
) const

Definition at line 7 of file RPCReadOutMappingWithFastSearch.cc.

References LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardElectronicIndex::lbNumInLink, and LinkBoardElectronicIndex::tbLinkInputNum.

8  {
9  if (lb1.dccId < lb2.dccId)
10  return true;
11  if (lb1.dccId > lb2.dccId)
12  return false;
14  return true;
16  return false;
17  if (lb1.tbLinkInputNum < lb2.tbLinkInputNum)
18  return true;
19  if (lb1.tbLinkInputNum > lb2.tbLinkInputNum)
20  return false;
21  if (lb1.lbNumInLink < lb2.lbNumInLink)
22  return true;
23  if (lb1.lbNumInLink > lb2.lbNumInLink)
24  return false;
25  return false;
26 }