15 std::map<RPCLBLink, std::vector<std::pair<int, RPCLBRecord> > > mlb_bx_lbrecord;
18 for (std::map<
RPCLBLink,
std::vector<std::pair<int, RPCLBRecord> > >::const_iterator mlb_bx_lbrecord_it =
19 mlb_bx_lbrecord.begin();
20 mlb_bx_lbrecord_it != mlb_bx_lbrecord.end();
21 ++mlb_bx_lbrecord_it) {
23 RPCInverseAMCLinkMap::map_type::const_iterator amc_it(amc_map.getMap().find(mlb_bx_lbrecord_it->first));
24 if (amc_it == amc_map.getMap().end()) {
29 int amc_input(amc_id.getAMCInput());
31 std::vector<std::pair<int, rpctwinmux::RPCRecord> >& bx_tmrecord(amc_bx_tmrecord[amc_id]);
32 std::vector<std::pair<int, rpctwinmux::RPCRecord> >::iterator tmrecord_it(bx_tmrecord.begin());
33 for (
std::vector<std::pair<int, RPCLBRecord> >::const_iterator bx_lbrecord = mlb_bx_lbrecord_it->second.begin();
34 bx_lbrecord != mlb_bx_lbrecord_it->second.end();
37 for (; tmrecord_it != bx_tmrecord.end() && tmrecord_it->first < bx_lbrecord->first; ++tmrecord_it)
39 if (tmrecord_it == bx_tmrecord.end() || tmrecord_it->first != bx_lbrecord->first) {
40 tmrecord_it = bx_tmrecord.insert(
42 tmrecord_it->second.setBXOffset(bx_lbrecord->first);
46 tm_link_record.
setEOD(bx_lbrecord->second.isEOD());
47 tm_link_record.
setDelay(bx_lbrecord->second.getDelay());
48 tm_link_record.
setLinkBoard(bx_lbrecord->second.getLinkBoard());
49 tm_link_record.
setConnector(bx_lbrecord->second.getConnector());
50 tm_link_record.
setPartition(bx_lbrecord->second.getPartition());
53 tmrecord_it->second.setRPCLinkRecord(amc_input, tm_link_record);
void setAcknowledge(bool da)
void setLinkBoard(unsigned int link_board)
void setDelay(unsigned int delay)
static void getRPCLBRecords(RPCInverseLBLinkMap const &lb_map, int min_bx, int max_bx, unsigned int bcn, RPCDigiCollection const &digis, std::map< RPCLBLink, std::vector< std::pair< int, RPCLBRecord > > > &mlb_bx_lbrecord, bool ignore_eod=false)
void setPartition(unsigned int partition)
void setConnector(unsigned int connector)
void setPartitionData(std::uint8_t data)