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

Definition at line 28 of file RPCLinkSynchroStat.h.

28 : theName(n) {}

Member Function Documentation

◆ add() [1/2]

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

Definition at line 26 of file RPCLinkSynchroStat.cc.

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 }

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

◆ add() [2/2]

int RPCLinkSynchroStat::LinkBoard::add ( const LinkBoardElectronicIndex ele)

Definition at line 35 of file RPCLinkSynchroStat.cc.

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 }

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

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

◆ chamberAndPartitions()

const std::vector<ChamberAndPartition>& RPCLinkSynchroStat::LinkBoard::chamberAndPartitions ( ) const
inline

Definition at line 34 of file RPCLinkSynchroStat.h.

34 { return theChamberAndPartitions; }

References theChamberAndPartitions.

Referenced by RPCLinkSynchroStat::dumpDelays().

◆ 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.

35 { return theName < o.theName; }

References EcalTangentSkim_cfg::o, and theName.

◆ operator==()

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

Definition at line 36 of file RPCLinkSynchroStat.h.

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

References EcalTangentSkim_cfg::o, and theName.

◆ paths()

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

Definition at line 33 of file RPCLinkSynchroStat.h.

33 { return theElePaths; }

References theElePaths.

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

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==().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
LinkBoardElectronicIndex::dccId
int dccId
Definition: LinkBoardElectronicIndex.h:11
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
LinkBoardElectronicIndex::dccInputChannelNum
int dccInputChannelNum
Definition: LinkBoardElectronicIndex.h:12
part
part
Definition: HCALResponse.h:20
RPCLinkSynchroStat::LinkBoard::theElePaths
std::vector< LinkBoardElectronicIndex > theElePaths
Definition: RPCLinkSynchroStat.h:41
RPCLinkSynchroStat::LinkBoard::theName
std::string theName
Definition: RPCLinkSynchroStat.h:39
RPCLinkSynchroStat::LinkBoard::theChamberAndPartitions
std::vector< ChamberAndPartition > theChamberAndPartitions
Definition: RPCLinkSynchroStat.h:40
LinkBoardElectronicIndex::tbLinkInputNum
int tbLinkInputNum
Definition: LinkBoardElectronicIndex.h:13
LinkBoardElectronicIndex::lbNumInLink
int lbNumInLink
Definition: LinkBoardElectronicIndex.h:14