FSUDAQ_Qt6/Aux
2024-03-12 18:09:02 -04:00
..
obsolete clean up Aux folder 2024-03-12 17:11:04 -04:00
DataReaderScript.cpp Chnage enum DPPType -> DPPTypeCode; reduce the fsu.ts size; remove Hit::bd 2024-03-02 00:33:08 -05:00
DumpFSU2ROOT.cpp Chnage enum DPPType -> DPPTypeCode; reduce the fsu.ts size; remove Hit::bd 2024-03-02 00:33:08 -05:00
EventBuilder.cpp bug fix on EventBuilder 2024-03-12 17:34:33 -04:00
fsuReader.h bug fix on EventBuilder 2024-03-12 17:34:33 -04:00
Makefile clean up Aux folder 2024-03-12 17:11:04 -04:00
README.md add README.md for the Aux folder 2024-03-12 18:09:02 -04:00
rename_oldFSU.sh added a bash script to rename old fsu file 2024-01-11 17:56:55 -05:00
script.C Chnage enum DPPType -> DPPTypeCode; reduce the fsu.ts size; remove Hit::bd 2024-03-02 00:33:08 -05:00
SettingsExplorer.cpp Chnage enum DPPType -> DPPTypeCode; reduce the fsu.ts size; remove Hit::bd 2024-03-02 00:33:08 -05:00
test.cpp fsuReader can read list of file like a chain; SortAndSaveTS() to sort and save as TS file. 2024-03-09 12:08:16 -05:00

About this directory

This stores auxillary programs, mainly focus on reading the *.fsu file, For example, the fsuReader.h is a *.fsu reader.

fsuReader.h

This declare the FSUReader class. it can be included as a header in a custom cpp file, or it can be loaded on cern root CLI (command line interface).

>.L fsuReader.h
>FSUReader * reader = new FSUReader(<fileName>, <dataBufferSize>, verbose)
>reader->ScanNumBlock(verbose)
>reader->ReadNextBlock()

The FSUReader can also read a fileList as a chain.

Inside the FSUReader, there is a Data Class (from ClassData.h). This is why we need to set the data Buffer size for the reader. The data buffer is a circular buffer, typically 10 to 600 should be enough.

There is a std::vector in the FSUReader, in the ReadNextBlock(bool traceON = false, int verbose = 0, uShort saveData = 0), when saveData = 0, no data will be saved to the Hit vector, saveData = 1, no trace, and saveData = 2, with trace. Note that the Hit vector can be very memory demanding, especially with trace.

The ScanNumBlock() method scans number of block (or aggeragetion), and also extract the