22 omtfLink2Ele.
init(linkMap);
29 omtfLink2Ele.
init(connectionFile);
35 for (
int dcc = 790; dcc <= 792; dcc++) {
37 const std::vector<rpcrawtodigi::EventRecords>&
merged =
39 LogTrace(
"") <<
" SIZE OF MERGED, for DCC=" << dcc <<
" is: " << merged.size() << std::endl;
40 for (
const auto& rpcEvent : merged) {
42 data.
bxNum_ = rpcEvent.dataToTriggerDelay();
43 data.
frame1_ = rpcEvent.recordCD().data();
45 dcc, rpcEvent.recordSLD().rmb(), rpcEvent.recordSLD().tbLinkInputNumber(), rpcEvent.recordCD().lbInLink()};
48 const EleIndex& omtfEle1 = it->second.first;
49 const EleIndex& omtfEle2 = it->second.second;
52 raws[std::make_pair(omtfEle1.
fed(), omtfEle1.
amc() * 2 - 1)].push_back(data.
rawData);
56 raws[std::make_pair(omtfEle2.
fed(), omtfEle2.
amc() * 2 - 1)].push_back(data.
rawData);
std::map< std::pair< unsigned int, unsigned int >, std::vector< Word64 > > FedAmcRawsMap
std::unique_ptr< const RPCReadOutMapping > thePactCabling
MapLBIndex2EleIndex translatePact2Omtf(const RpcLinkMap &omtfLnks, const RPCReadOutMapping *pactCabling)
static std::vector< rpcrawtodigi::EventRecords > eventRecords(int fedId, int trigger_BX, const RPCDigiCollection *, const RPCRecordFormatter &)
void pack(const RPCDigiCollection *prod, FedAmcRawsMap &raws)
void init(const RPCEMap &readoutMapping, const RPCAMCLinkMap &linkMap)
void initCabling(const RPCEMap &readoutMapping)
char data[epos_bytes_allocation]
MapLBIndex2EleIndex thePact2Omtf
RPCReadOutMapping const * convert() const
unsigned int link() const
void init(const RPCAMCLinkMap &es)