34 typedef vector<const DccSpec*> DCCLIST;
36 for (DCCLIST::const_iterator idcc = dccList.begin(), idccEnd = dccList.end();
37 idcc < idccEnd; ++idcc) {
38 const DccSpec & dccSpec = **idcc;
39 const std::vector<TriggerBoardSpec> & triggerBoards = dccSpec.
triggerBoards();
40 for ( std::vector<TriggerBoardSpec>::const_iterator
41 it = triggerBoards.begin(); it != triggerBoards.end(); it++) {
43 typedef std::vector<const LinkConnSpec* > LINKS;
45 for ( LINKS::const_iterator ic = linkConns.begin(); ic != linkConns.end(); ic++) {
48 const std::vector<LinkBoardSpec> & boards = link.
linkBoards();
49 for ( std::vector<LinkBoardSpec>::const_iterator
50 ib = boards.begin();
ib != boards.end();
ib++) {
59 LBMap::iterator inMap =
theLBMap.find(eleIndex);
61 cout <<
"The element in map already exists!"<< endl;
79 LBMap::const_iterator inMap =
theLBMap.find(ele);
80 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::pair< uint32_t, int > StripInDetUnit
first member is DetUnit ID, second strip in DetUnit frame
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