test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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.

9 {
10  if ( lb1.dccId < lb2.dccId) return true;
11  if ( lb1.dccId > lb2.dccId) return false;
12  if ( lb1.dccInputChannelNum < lb2.dccInputChannelNum) return true;
13  if ( lb1.dccInputChannelNum > lb2.dccInputChannelNum) return false;
14  if ( lb1.tbLinkInputNum < lb2.tbLinkInputNum) return true;
15  if ( lb1.tbLinkInputNum > lb2.tbLinkInputNum) return false;
16  if ( lb1.lbNumInLink < lb2.lbNumInLink) return true;
17  if ( lb1.lbNumInLink > lb2.lbNumInLink) return false;
18  return false;
19 
20 }