CMS 3D CMS Logo

RPCRawSynchro::lessLB Struct Reference

#include <EventFilter/RPCRawToDigi/interface/RPCRawSynchro.h>

List of all members.

Public Member Functions

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


Detailed Description

Definition at line 24 of file RPCRawSynchro.h.


Member Function Documentation

bool RPCRawSynchro::lessLB::operator() ( const LinkBoardElectronicIndex lb1,
const LinkBoardElectronicIndex lb2 
) const

Definition at line 25 of file RPCRawSynchro.cc.

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

00027 {
00028   if (lb1.dccId < lb2.dccId) return true;
00029   if (    (lb1.dccId==lb2.dccId)
00030        && (lb1.dccInputChannelNum< lb2.dccInputChannelNum) ) return true;
00031   if (    (lb1.dccId==lb2.dccId)
00032        && (lb1.dccInputChannelNum == lb2.dccInputChannelNum)
00033        && (lb1.tbLinkInputNum < lb2.tbLinkInputNum ) ) return true;
00034   if (    (lb1.dccId==lb2.dccId)
00035        && (lb1.dccInputChannelNum == lb2.dccInputChannelNum)
00036        && (lb1.tbLinkInputNum == lb2.tbLinkInputNum )
00037        && (lb1.lbNumInLink < lb2.lbNumInLink) ) return true;
00038   return false;
00039 }


The documentation for this struct was generated from the following files:
Generated on Tue Jun 9 18:31:04 2009 for CMSSW by  doxygen 1.5.4