-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TTreeReader] Cannot read Float16_t branch #10645
Comments
The same issue exists for the Double32_t data type. #include <TFile.h>
#include <TTreeReader.h>
int main() {
{
TFile f("d32.root", "recreate");
TTree t("t", "t");
double x = 42.;
t.Branch("x", &x, "x/d");
t.Fill();
f.Write();
}
{
TFile f("d32.root");
TTreeReader r("t", &f);
TTreeReaderValue<Double32_t> rv(r, "x");
r.Next();
}
return 0;
} Error produced:
|
Some additional information on this: I also experienced this bug and found out that it is due to the types Float16_t and Double32_t missing in TDataType. I tried to add them there which fixes the issue, but results in an issue with the TStreamerInfo Compilation which I myself did not understand and therefore could not fix. Also see the corresponding PR: #9008 |
@Triple-S this issue should be fixed in |
Reproducer:
produces
The text was updated successfully, but these errors were encountered: