CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
RPCLinkSynchroStat::LinkBoard Class Reference

#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< ChamberAndPartitiontheChamberAndPartitions
 
std::vector< LinkBoardElectronicIndextheElePaths
 
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.

Member Function Documentation

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

Definition at line 21 of file RPCLinkSynchroStat.cc.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

22 {
23  for (std::vector<ChamberAndPartition>::const_iterator it=theChamberAndPartitions.begin(); it != theChamberAndPartitions.end(); ++it) {
24  if( (*it)==part) return 1;
25  }
26  theChamberAndPartitions.push_back(part);
27  return 0;
28 }
part
Definition: HCALResponse.h:20
std::vector< ChamberAndPartition > theChamberAndPartitions
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.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

31 {
32  for (std::vector<LinkBoardElectronicIndex>::const_iterator it=theElePaths.begin(); it != theElePaths.end(); ++it) {
33  if ( it->dccId == ele.dccId
34  && it->dccInputChannelNum == ele.dccInputChannelNum
35  && it->tbLinkInputNum == ele.tbLinkInputNum
36  && it->lbNumInLink == ele.lbNumInLink) return 1;
37  }
38  theElePaths.push_back(ele);
39  return 0;
40 }
std::vector< LinkBoardElectronicIndex > theElePaths
const std::vector<ChamberAndPartition>& RPCLinkSynchroStat::LinkBoard::chamberAndPartitions ( ) const
inline

Definition at line 37 of file RPCLinkSynchroStat.h.

References theChamberAndPartitions.

Referenced by RPCLinkSynchroStat::dumpDelays().

37 { return theChamberAndPartitions; }
std::vector< ChamberAndPartition > theChamberAndPartitions
const std::string& RPCLinkSynchroStat::LinkBoard::name ( void  ) const
inline
bool RPCLinkSynchroStat::LinkBoard::operator< ( const LinkBoard o) const
inline

Definition at line 38 of file RPCLinkSynchroStat.h.

References theName.

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

Definition at line 39 of file RPCLinkSynchroStat.h.

References theName.

Referenced by RPCLinkSynchroStat::SynchroCounts::counts().

39 { 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().

36 { return theElePaths; }
std::vector< LinkBoardElectronicIndex > theElePaths

Member Data Documentation

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