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 25 of file OmtfLinkMappingRpc.h.

Member Function Documentation

◆ operator()()

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

Definition at line 23 of file OmtfLinkMappingRpc.cc.

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

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