jblomer / iotools

Tracing read/seek
9 stars 13 forks source link

RNTuple format is too old (version 0) #9

Open bernhardmgruber opened 1 year ago

bernhardmgruber commented 1 year ago

Hi! I just tried to build and run the lhcb analysis, but it fails with the following error:

bgruber@graviola:~/dev/iotools$ ./lhcb -mps -i B2HHH~zstd.ntuple
Error in <TFile::TFile>: file /home/bgruber/dev/iotools/B2HHH~zstd.ntuple does not exist
Downloading https://root.cern/files/RNTuple/B2HHH~zstd.ntuple
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1006M  100 1006M    0     0   110M      0  0:00:09  0:00:09 --:--:--  110M
terminate called after throwing an instance of 'ROOT::Experimental::RException'
  what():  The RNTuple format is too old (version 0)
At:
  static RResult<unsigned int> ROOT::Experimental::Internal::RNTupleSerializer::DeserializeEnvelope(const void*, uint32_t, uint32_t&) [/home/bgruber/dev/root/tree/ntuple/v7/src/RNTupleSerialize.cxx:625]
  static ROOT::Experimental::RResult<void> ROOT::Experimental::Internal::RNTupleSerializer::DeserializeHeaderV1(const void*, uint32_t, ROOT::Experimental::RNTupleDescriptorBuilder&) [/home/bgruber/dev/root/tree/ntuple/v7/src/RNTupleSerialize.cxx:1129]

It seems the example files provided on https://root.cern/files/RNTuple may be too old. Could you please update those? Thank you!

My ROOT version is:

bgruber@graviola:~$ root --version
ROOT Version: 6.27/01
Built for linuxx8664gcc on Dec 19 2022, 12:45:00
From remotes/origin/HEAD@v6-25-02-3353-g487e1fcffb
jblomer commented 1 year ago

Thanks! We need to update the files in that area. Meanwhile, you can use gen_lhcb to produce the RNTuple files from the TTree originals.

bernhardmgruber commented 1 year ago

Thanks! I will try that!

bernhardmgruber commented 1 year ago
wget https://root.cern/files/RNTuple/treeref/B2HHH~zstd.root
make gen_lhcb
./gen_lhcb -i B2HHH~zstd.root

did the trick and now I have an RNTuple file called B2HHH~none.ntuple that I can load. Thank you!

bernhardmgruber commented 1 year ago

Hi! I found it convenient that artificially enlarged files are also available on the website, like B2HHHX25~zstd.root. However, their file format is also too old. Any chance you can update them as well? Thx!