Dear Expert,
I met this problem about a root file with Float16_t
branches. If print the tree, the result will like the following:
root [1] Events->Print()
******************************************************************************
*Tree :Events : Events *
*Entries : 1975041 : Total = 477109888 bytes File Size = 335974760 *
* : : Tree compression factor = 1.42 *
******************************************************************************
*Br 0 :weight : weight/f *
*Entries : 1975041 : Total Size= 5987177 bytes File Size = 94456 *
*Baskets : 650 : Basket Size= 32000 bytes Compression= 63.25 *
*............................................................................*
*Br 1 :dsid : dsid/i *
*Entries : 1975041 : Total Size= 7970959 bytes File Size = 116900 *
*Baskets : 758 : Basket Size= 32000 bytes Compression= 68.05 *
*............................................................................*
...
*............................................................................*
*Br 48 :deta_2mu2bj : deta_2mu2bj/f *
*Entries : 1975041 : Total Size= 5990442 bytes File Size = 4741822 *
*Baskets : 650 : Basket Size= 32000 bytes Compression= 1.26 *
*............................................................................*
...
But if open this file with RDataFrame and try to generate a histogram, the error occurs.
rdf = R.RDataFrame('Events',file)
hi = rdf.Histo1D('deta_2mu2bj','weight')
c = R.TCanvas()
hi.Draw()
c.SaveAs('test.png')
Error in <TTreeReaderValueBase::CreateProxy()>: The branch deta_2mu2bj contains data of type Float16_t, which does not have a dictionary.
I wonder if there’s anything wrong with the configuration or some other problems exist.
Thanks for your help!
Licheng
_ROOT Version:ROOT 6.24/02