Closed DraTeots closed 1 year ago
Write down some notes for discussion.
Receive data from TCP (and save it to *.evio file optionally)
EVIOBlockedEvent
object block
:
JEvents
object. Parse each EVIOBlockedEvent
object block
into JEvents object.
block
to an output fileEvery call to m_hdevio->readNoFileBuff()
generates one EVIOBlockedEvent
object block
.
A stand-alone executable to send data via TCP. Don't know where its data come from.
m_hdevio->readNoFileBuff()
and getting 1 block of data, the first 2 words of the block need to be removed, and the remainder need to be swapped, before sent via TCP.tcp_event_snd
appearances)? Or, reverse CDaqEventSource.cc instead?A few more notes:
plugins/cdaq is the place where it looks like the work was left off. It implements a JEventSource that receives data via tcp, and also has at least one place where it tries to send data (L217 in CDAQEventSource.cc). It has a lot of TCP code it it rather than using [libraries/tcp_daq(../blob/main/src/libraries/tcp_daq).
Here are the items that should be done:
This is now complete with PR #51 and PR #53. It only mimics sending fully built events through, but that should be sufficient for the ongoing test series.
We should be able to use jana4ml4fpga to send EVIO events over TCP emulating real hardware (to some degree. Initially just send it).
This is required for working on FPGA software using real data saved in JLab and Fermilab testbeams