38 typedef vector<const DccSpec*> DCCLIST;
40 for (DCCLIST::const_iterator idcc = dccList.begin(), idccEnd = dccList.end(); idcc < idccEnd; ++idcc) {
41 const DccSpec& dccSpec = **idcc;
42 const std::vector<TriggerBoardSpec>& triggerBoards = dccSpec.
triggerBoards();
43 for (std::vector<TriggerBoardSpec>::const_iterator it = triggerBoards.begin(); it != triggerBoards.end(); it++) {
45 typedef std::vector<const LinkConnSpec*> LINKS;
47 for (LINKS::const_iterator ic = linkConns.begin(); ic != linkConns.end(); ic++) {
49 const std::vector<LinkBoardSpec>& boards = link.
linkBoards();
50 for (std::vector<LinkBoardSpec>::const_iterator
ib = boards.begin();
ib != boards.end();
ib++) {
58 LBMap::iterator inMap =
theLBMap.find(eleIndex);
60 cout <<
"The element in map already exists!" << endl;
76 LBMap::const_iterator inMap =
theLBMap.find(ele);
77 return (inMap !=
theLBMap.end()) ? inMap->second :
nullptr;
const std::vector< TriggerBoardSpec > & triggerBoards() const
const RPCReadOutMapping * theMapping
const LinkBoardSpec * location(const LinkBoardElectronicIndex &ele) const override
conversion between electronic and detector indexing
std::vector< const LinkConnSpec * > enabledLinkConns() const
not masked links belonging to this TB
std::vector< const DccSpec * > dccList() const
all FEDs in map
int triggerBoardInputNumber() const
this link input number in TriggerBoard
void init(const RPCReadOutMapping *arm)
takes ownership of map
const std::string & version() const
version as string
bool operator()(const LinkBoardElectronicIndex &lb1, const LinkBoardElectronicIndex &lb2) const
virtual StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &packedStrip) const
convert strip location as in raw data (LB and LBchannel) to detUnit frame
int dccInputChannelNum() const
input channel number to DCC
RPCReadOutMapping::StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &lbstrip) const override
convert strip location as in raw data (LB and LBchannel) to detUnit frame
int linkBoardNumInLink() const
this LB number in link
RPCReadOutMappingWithFastSearch()
const std::vector< LinkBoardSpec > & linkBoards() const
std::pair< uint32_t, int > StripInDetUnit
first member is DetUnit ID, second strip in DetUnit frame