Bug found in TTree::MakeClass for those branches saved with "/f" option

Hi,
I am doing some tests with branches of Float16_t,

Float16_t x;
outputtree.Branch("x", &x, "x/f");

which works fine.
However, when I run

tree->MakeClass() 

on the output tree, I get

Float16_t       x;
TBranch        *b_f;  
fChain->SetBranchAddress("x", x, &b_f);

instead of

TBranch        *b_x;
fChain->SetBranchAddress("x", x, &b_x)

The I use root from the master branch

@axel Actually, it should be: fChain->SetBranchAddress("x", &x, &b_x);

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.