#include <TriggerBoardSpec.h>
Public Member Functions | |
void | add (const LinkConnSpec &lc) |
attach connection to TB | |
int | dccInputChannelNum () const |
input channel number to DCC | |
std::vector< const LinkConnSpec * > | enabledLinkConns () const |
not masked links belonging to this TB | |
const LinkConnSpec * | linkConn (int tbInputNumber) const |
link attached to this TB with given input number | |
const std::vector< LinkConnSpec > | linkConns () const |
all links kept by this TB | |
std::string | print (int depth=0) const |
debud printaout, call its components with depth dectreased by one | |
void | setMaskedLinks (uint32_t aMask) |
set mask links | |
TriggerBoardSpec (int num=-1, uint32_t aMask=0) | |
ctor with ID only | |
Private Attributes | |
std::vector< LinkConnSpec > | theLinks |
uint32_t | theMaskedLinks |
int | theNum |
RPC Trigger Board specification for readout decoding
Definition at line 12 of file TriggerBoardSpec.h.
TriggerBoardSpec::TriggerBoardSpec | ( | int | num = -1 , |
uint32_t | aMask = 0 |
||
) |
ctor with ID only
Definition at line 7 of file TriggerBoardSpec.cc.
: theNum(num), theMaskedLinks(aMask) { }
void TriggerBoardSpec::add | ( | const LinkConnSpec & | lc | ) |
attach connection to TB
Definition at line 43 of file TriggerBoardSpec.cc.
References theLinks.
Referenced by RPCEMap::convert().
{ theLinks.push_back(lc); }
int TriggerBoardSpec::dccInputChannelNum | ( | ) | const [inline] |
input channel number to DCC
Definition at line 18 of file TriggerBoardSpec.h.
References theNum.
Referenced by RPCReadOutMappingWithFastSearch::init(), print(), and RPCReadOutMapping::rawDataFrame().
{ return theNum; }
std::vector< const LinkConnSpec * > TriggerBoardSpec::enabledLinkConns | ( | ) | const |
not masked links belonging to this TB
Definition at line 19 of file TriggerBoardSpec.cc.
References query::result, and theLinks.
Referenced by RPCReadOutMappingWithFastSearch::init(), and RPCReadOutMapping::rawDataFrame().
const LinkConnSpec * TriggerBoardSpec::linkConn | ( | int | tbInputNumber | ) | const |
link attached to this TB with given input number
Definition at line 10 of file TriggerBoardSpec.cc.
References theLinks.
Referenced by RPCReadOutMapping::location().
const std::vector<LinkConnSpec> TriggerBoardSpec::linkConns | ( | ) | const [inline] |
all links kept by this TB
Definition at line 27 of file TriggerBoardSpec.h.
References theLinks.
{ return theLinks; }
std::string TriggerBoardSpec::print | ( | int | depth = 0 | ) | const |
debud printaout, call its components with depth dectreased by one
Definition at line 32 of file TriggerBoardSpec.cc.
References dccInputChannelNum(), and theLinks.
{ std::ostringstream str; str << "TriggerBoardSpec: num=" << dccInputChannelNum() << std::endl; depth--; if (depth >= 0) { for (IT ic = theLinks.begin(); ic != theLinks.end(); ic++) str << (*ic).print(depth); } return str.str(); }
void TriggerBoardSpec::setMaskedLinks | ( | uint32_t | aMask | ) | [inline] |
set mask links
Definition at line 33 of file TriggerBoardSpec.h.
References theMaskedLinks.
{ theMaskedLinks = aMask; }
std::vector<LinkConnSpec> TriggerBoardSpec::theLinks [private] |
Definition at line 41 of file TriggerBoardSpec.h.
Referenced by add(), enabledLinkConns(), linkConn(), linkConns(), and print().
uint32_t TriggerBoardSpec::theMaskedLinks [private] |
Definition at line 40 of file TriggerBoardSpec.h.
Referenced by setMaskedLinks().
int TriggerBoardSpec::theNum [private] |
Definition at line 39 of file TriggerBoardSpec.h.
Referenced by dccInputChannelNum().