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

Member Typedef Documentation

◆ ChamberAndPartition

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

Definition at line 31 of file RPCLinkSynchroStat.h.

Constructor & Destructor Documentation

◆ LinkBoard()

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

Definition at line 29 of file RPCLinkSynchroStat.h.

29 : 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 (std::vector<ChamberAndPartition>::const_iterator it = theChamberAndPartitions.begin();
28  it != theChamberAndPartitions.end();
29  ++it) {
30  if ((*it) == part)
31  return 1;
32  }
33  theChamberAndPartitions.push_back(part);
34  return 0;
35 }

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 37 of file RPCLinkSynchroStat.cc.

37  {
38  for (std::vector<LinkBoardElectronicIndex>::const_iterator it = theElePaths.begin(); it != theElePaths.end(); ++it) {
39  if (it->dccId == ele.dccId && it->dccInputChannelNum == ele.dccInputChannelNum &&
40  it->tbLinkInputNum == ele.tbLinkInputNum && it->lbNumInLink == ele.lbNumInLink)
41  return 1;
42  }
43  theElePaths.push_back(ele);
44  return 0;
45 }

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

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

36 { return theName < o.theName; }

References EcalTangentSkim_cfg::o, and theName.

◆ operator==()

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

Definition at line 37 of file RPCLinkSynchroStat.h.

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

References EcalTangentSkim_cfg::o, and theName.

◆ paths()

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

Definition at line 34 of file RPCLinkSynchroStat.h.

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

Referenced by chamberAndPartitions().

◆ theElePaths

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

Definition at line 42 of file RPCLinkSynchroStat.h.

Referenced by paths().

◆ theName

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

Definition at line 40 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:42
RPCLinkSynchroStat::LinkBoard::theName
std::string theName
Definition: RPCLinkSynchroStat.h:40
RPCLinkSynchroStat::LinkBoard::theChamberAndPartitions
std::vector< ChamberAndPartition > theChamberAndPartitions
Definition: RPCLinkSynchroStat.h:41
LinkBoardElectronicIndex::tbLinkInputNum
int tbLinkInputNum
Definition: LinkBoardElectronicIndex.h:13
LinkBoardElectronicIndex::lbNumInLink
int lbNumInLink
Definition: LinkBoardElectronicIndex.h:14