I have a TTree in ROOT with 1000 events and 15 variables associated to each of them. I would like to convert this in its entirety to an hdf5 dataset. How do I organise my data in HDF5 Groups such that I can access data both by event number and by variable (if I wanted all the data from the 'kinetic energy' variable, for example, all events)?

Note: I have already tried the root2hdf5 conversion tool but this does not work for branches with arrays/compound datatypes.


You might want to give a try to DataHarvester.

This tool claims to support ROOT, HBOOK, HDF, XML, SQLITE and input/output between them.

See the following publication:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.