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 26 of file RPCLinkSynchroStat.h.

Member Typedef Documentation

◆ ChamberAndPartition

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

Definition at line 30 of file RPCLinkSynchroStat.h.

Constructor & Destructor Documentation

◆ LinkBoard()

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

Member Function Documentation

◆ add() [1/2]

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

Definition at line 26 of file RPCLinkSynchroStat.cc.

Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::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

◆ add() [2/2]

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._TaskBase::remove(), and SequenceTypes._TaskBase::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

◆ chamberAndPartitions()

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

◆ name()

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

◆ operator<()

bool RPCLinkSynchroStat::LinkBoard::operator< ( const LinkBoard o) const
inline

Definition at line 35 of file RPCLinkSynchroStat.h.

References EcalTangentSkim_cfg::o, and theName.

◆ operator==()

bool RPCLinkSynchroStat::LinkBoard::operator== ( const LinkBoard o) const
inline

Definition at line 36 of file RPCLinkSynchroStat.h.

References EcalTangentSkim_cfg::o, and theName.

36 { return (theName == o.theName); }

◆ paths()

const std::vector<LinkBoardElectronicIndex>& RPCLinkSynchroStat::LinkBoard::paths ( ) const
inline

Definition at line 33 of file RPCLinkSynchroStat.h.

References theElePaths.

Referenced by RPCLinkSynchroStat::dumpDelays(), and TestProcess.TestProcess::fillProcessDesc().

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

Member Data Documentation

◆ theChamberAndPartitions

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

Definition at line 40 of file RPCLinkSynchroStat.h.

Referenced by chamberAndPartitions().

◆ theElePaths

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

Definition at line 41 of file RPCLinkSynchroStat.h.

Referenced by paths().

◆ theName

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

Definition at line 39 of file RPCLinkSynchroStat.h.

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