CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RPCLinkSynchroStat::LinkBoard Class Reference

#include <RPCLinkSynchroStat.h>

List of all members.

Public Types

typedef std::pair< std::string,
std::string > 
ChamberAndPartition

Public Member Functions

int add (const ChamberAndPartition &part)
int add (const LinkBoardElectronicIndex &ele)
const std::vector
< ChamberAndPartition > & 
chamberAndPartitions () const
 LinkBoard (const std::string &n)
const std::string & name () const
bool operator< (const LinkBoard &o) const
bool operator== (const LinkBoard &o) const
const std::vector
< LinkBoardElectronicIndex > & 
paths () const

Private Attributes

std::vector< ChamberAndPartitiontheChamberAndPartitions
std::vector
< LinkBoardElectronicIndex
theElePaths
std::string theName

Detailed Description

Definition at line 29 of file RPCLinkSynchroStat.h.


Member Typedef Documentation

typedef std::pair<std::string,std::string> RPCLinkSynchroStat::LinkBoard::ChamberAndPartition

Definition at line 33 of file RPCLinkSynchroStat.h.


Constructor & Destructor Documentation

RPCLinkSynchroStat::LinkBoard::LinkBoard ( const std::string &  n) [inline]

Definition at line 31 of file RPCLinkSynchroStat.h.

: theName(n) {}

Member Function Documentation

int RPCLinkSynchroStat::LinkBoard::add ( const ChamberAndPartition part)

Definition at line 21 of file RPCLinkSynchroStat.cc.

{
  for (std::vector<ChamberAndPartition>::const_iterator it=theChamberAndPartitions.begin(); it != theChamberAndPartitions.end(); ++it) {
    if( (*it)==part) return 1;
  }
  theChamberAndPartitions.push_back(part);
  return 0;
}
int RPCLinkSynchroStat::LinkBoard::add ( const LinkBoardElectronicIndex ele)

Definition at line 30 of file RPCLinkSynchroStat.cc.

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

{
  for (std::vector<LinkBoardElectronicIndex>::const_iterator it=theElePaths.begin(); it != theElePaths.end(); ++it) {
    if (    it->dccId == ele.dccId
         && it->dccInputChannelNum == ele.dccInputChannelNum
         && it->tbLinkInputNum == ele.tbLinkInputNum
         && it->lbNumInLink == ele.lbNumInLink) return 1; 
  }
  theElePaths.push_back(ele);
  return 0;
}
const std::vector<ChamberAndPartition>& RPCLinkSynchroStat::LinkBoard::chamberAndPartitions ( ) const [inline]

Definition at line 37 of file RPCLinkSynchroStat.h.

References theChamberAndPartitions.

Referenced by RPCLinkSynchroStat::dumpDelays().

const std::string& RPCLinkSynchroStat::LinkBoard::name ( void  ) const [inline]

Definition at line 32 of file RPCLinkSynchroStat.h.

References theName.

Referenced by RPCLinkSynchroStat::dumpDelays().

{ return theName; }
bool RPCLinkSynchroStat::LinkBoard::operator< ( const LinkBoard o) const [inline]

Definition at line 38 of file RPCLinkSynchroStat.h.

References theName.

{return theName < o.theName; }
bool RPCLinkSynchroStat::LinkBoard::operator== ( const LinkBoard o) const [inline]

Definition at line 39 of file RPCLinkSynchroStat.h.

References theName.

{ return (theName == o.theName); }
const std::vector<LinkBoardElectronicIndex>& RPCLinkSynchroStat::LinkBoard::paths ( ) const [inline]

Definition at line 36 of file RPCLinkSynchroStat.h.

References theElePaths.

Referenced by RPCLinkSynchroStat::dumpDelays().

{ return theElePaths; } 

Member Data Documentation

Definition at line 42 of file RPCLinkSynchroStat.h.

Referenced by chamberAndPartitions().

Definition at line 43 of file RPCLinkSynchroStat.h.

Referenced by paths().

Definition at line 41 of file RPCLinkSynchroStat.h.

Referenced by name(), operator<(), and operator==().