CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< LinkBoardElectronicIndex
theElePaths
 
std::string theName
 

Detailed Description

Definition at line 26 of file RPCLinkSynchroStat.h.

Member Typedef Documentation

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

Definition at line 30 of file RPCLinkSynchroStat.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file RPCLinkSynchroStat.h.

Member Function Documentation

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

Definition at line 26 of file RPCLinkSynchroStat.cc.

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

26  {
27  for (auto it = theChamberAndPartitions.begin(); it != theChamberAndPartitions.end(); ++it) {
28  if ((*it) == part)
29  return 1;
30  }
31  theChamberAndPartitions.push_back(part);
32  return 0;
33 }
part
Definition: HCALResponse.h:20
std::vector< ChamberAndPartition > theChamberAndPartitions
int RPCLinkSynchroStat::LinkBoard::add ( const LinkBoardElectronicIndex ele)

Definition at line 35 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().

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

Definition at line 34 of file RPCLinkSynchroStat.h.

References theChamberAndPartitions.

Referenced by RPCLinkSynchroStat::dumpDelays().

34 { 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 35 of file RPCLinkSynchroStat.h.

References theName.

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

Definition at line 36 of file RPCLinkSynchroStat.h.

References theName.

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

Definition at line 33 of file RPCLinkSynchroStat.h.

References theElePaths.

Referenced by RPCLinkSynchroStat::dumpDelays().

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

Member Data Documentation

std::vector<ChamberAndPartition> RPCLinkSynchroStat::LinkBoard::theChamberAndPartitions
private

Definition at line 40 of file RPCLinkSynchroStat.h.

Referenced by chamberAndPartitions().

std::vector<LinkBoardElectronicIndex> RPCLinkSynchroStat::LinkBoard::theElePaths
private

Definition at line 41 of file RPCLinkSynchroStat.h.

Referenced by paths().

std::string RPCLinkSynchroStat::LinkBoard::theName
private

Definition at line 39 of file RPCLinkSynchroStat.h.

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