CMS 3D CMS Logo

List of all members | Public Member Functions
omtf::lessLinkBoardElectronicIndex Struct Reference

#include <OmtfLinkMappingRpc.h>

Public Member Functions

bool operator() (const LinkBoardElectronicIndex &o1, const LinkBoardElectronicIndex &o2) const
 

Detailed Description

Definition at line 23 of file OmtfLinkMappingRpc.h.

Member Function Documentation

◆ operator()()

bool omtf::lessLinkBoardElectronicIndex::operator() ( const LinkBoardElectronicIndex o1,
const LinkBoardElectronicIndex o2 
) const

Definition at line 20 of file OmtfLinkMappingRpc.cc.

21  {
22  if (o1.dccId < o2.dccId)
23  return true;
24  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum < o2.dccInputChannelNum)
25  return true;
26  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum == o2.dccInputChannelNum &&
27  o1.tbLinkInputNum < o2.tbLinkInputNum)
28  return true;
29  else
30  return false;
31  }

References LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, CastorDigiReco::o1, and LinkBoardElectronicIndex::tbLinkInputNum.

LinkBoardElectronicIndex::dccId
int dccId
Definition: LinkBoardElectronicIndex.h:11
LinkBoardElectronicIndex::dccInputChannelNum
int dccInputChannelNum
Definition: LinkBoardElectronicIndex.h:12
CastorDigiReco.o1
o1
Definition: CastorDigiReco.py:84
LinkBoardElectronicIndex::tbLinkInputNum
int tbLinkInputNum
Definition: LinkBoardElectronicIndex.h:13