#include <RPCLinkSynchroStat.h>
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< ChamberAndPartition > | theChamberAndPartitions |
std::vector < LinkBoardElectronicIndex > | theElePaths |
std::string | theName |
Definition at line 29 of file RPCLinkSynchroStat.h.
typedef std::pair<std::string,std::string> RPCLinkSynchroStat::LinkBoard::ChamberAndPartition |
Definition at line 33 of file RPCLinkSynchroStat.h.
RPCLinkSynchroStat::LinkBoard::LinkBoard | ( | const std::string & | n | ) | [inline] |
Definition at line 31 of file RPCLinkSynchroStat.h.
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().
{ return theChamberAndPartitions; }
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.
bool RPCLinkSynchroStat::LinkBoard::operator== | ( | const LinkBoard & | o | ) | const [inline] |
Definition at line 39 of file RPCLinkSynchroStat.h.
References 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; }
std::vector<ChamberAndPartition> RPCLinkSynchroStat::LinkBoard::theChamberAndPartitions [private] |
Definition at line 42 of file RPCLinkSynchroStat.h.
Referenced by chamberAndPartitions().
std::vector<LinkBoardElectronicIndex> RPCLinkSynchroStat::LinkBoard::theElePaths [private] |
Definition at line 43 of file RPCLinkSynchroStat.h.
Referenced by paths().
std::string RPCLinkSynchroStat::LinkBoard::theName [private] |
Definition at line 41 of file RPCLinkSynchroStat.h.
Referenced by name(), operator<(), and operator==().