Skip to content

[TTreeReader] Cannot read Float16_t branch #10645

@eguiraud

Description

@eguiraud

Reproducer:

#include <TFile.h>
#include <TTreeReader.h>

int main() {
  {
    TFile f("f16.root", "recreate");
    TTree t("t", "t");
    float x = 42.f;
    t.Branch("x", &x, "x/f");
    t.Fill();
    f.Write();
  }

  {
    TFile f("f16.root");
    TTreeReader r("t", &f);
    TTreeReaderValue<Float16_t> rv(r, "x");
    r.Next();
  }
}

produces

Error in <TTreeReaderValueBase::CreateProxy()>: The branch x contains data of type Float16_t, which does not have a dictionary.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions