JeffersonLab / JANA4ML4FPGA

EIC R&D supported project developing ML on FPGA for streaming readout systems
1 stars 1 forks source link

Update jana4ml4fpga to handle multiple evio file sources #16

Closed cissieAB closed 1 year ago

cissieAB commented 1 year ago

A placeholder for jana4ml4fpga changes.

Now the cdaq plugin is using JEventSource with JANA default topology. jana4ml4fpga aims to a 2-queue based topology and it does not rely on JEventSource but JBlockedEventSource.

Commits:

Cosmetic changes

Major changes: update EVIOBlockedEventFileSource to handle multiple evio files


Tests

[hdtrdops@gluon200 JANA4ML4FPGA]$ ./install/bin/jana4ml4fpga /gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_002.evio /gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_001.evio

...
[INFO] JBlockedEventSource::NextBlock
[INFO] Block 205 read_ok
/home/hdtrdops/GemTrd_2023/JANA4ML4FPGA/src/executables/jana4ml4fpga/EVIOBlockProcessor.cc:20
[INFO] JBlockedEventSource::NextBlock
[INFO] No more blocks in "/gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_002.evio"!

EVIO Statistics for /gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_002.evio :
------------------------
    Nblocks: 81
    Nevents: 81
    Nerrors: 0
Nbad_blocks: 0
Nbad_events: 0