Skip to content

Basic Use Executables

Maurik Holtrop edited this page Jul 2, 2020 · 3 revisions

Basic use with Executables

If you want to compile your code, you can follow the example of the EvioTool_Test or HPSEvioReader_Test codes.

The EvioTool_Test code uses only the EvioTool library and simply reads a little bit from an EVIO file.

The HPSEvioReader library, and the HPSEvioReader_Test executable, give a more extensive example on how you can read EVIO data and make sense of the contents. The library shows how you can take a primitive (as in unsigned int) bank from EvioTool and write a specialized interpreter for it. This is done for the SVT bank, which for EVIO is simply a list of integers, but the data has a specific structure that is unpacked in in the SVTbank code.

The HPS_Trigger_Filter is an example of a simple executable that uses the parsed EVIO data from the HPSEvioReader and filters the EVIO events on the trigger bits that were set for the 2019 data run of HPS. This code also shows you how you can then write out a new EVIO file with only those events you want.

Clone this wiki locally