It turned out simple. At least for my NTuples. I write a python script where it reads the branches from the root tree and writes them into the NumPy array. Then I created the hdf file and wrote these NumPy arrays to the hdf file.
It worked for me. In case that if someone is particularly interested, I can distribute my code.