slaclab / lc2-hdf5-110

Investigate hdf5 1.10 features like SWMR and virtual dataset for LCLS II
Apache License 2.0
0 stars 2 forks source link

lc2-hdf5-110

Investigate hdf5 1.10 features like SWMR and virtual dataset for LCLS II

Setup

I made a conda environment with hdf5 1.10, h5py 2.7, and python 3.5

The makefile sets PREFIX to the root of this conda environment.

make will compile the C++ code, lib, and make a soft link to the pyhon driver

Running

To run, first do

bin/ana_daq_driver -h

Some options we can set from the command line, but most are controlled through the yaml config file: https://github.com/slaclab/lc2-hdf5-110/blob/master/config.yaml

You run ana_daq_driver and it

daq_writer

The schema will be

/small/00000/data
/small/00000/fiducials
/small/00000/milli

/small/00001/data
...
/vlen/00000/blob
/vlen/00000/blobstart
/vlen/00000/blobcount
/vlen/00000/fiducials
/vlen/00000/milli
...
/detector/00000/data
...

We will write many small groups, and each will have three datases. fiducials will just be a counter, and milli will track milliseconds since program start. milli is just for profiling, not merging, fiducials is for merging.