Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10559

TTreeReader silently fails to read TRefArray

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Clarified
    • master
    • None
    • I/O
    • None
    • Any

    Description

      See https://root-forum.cern.ch/t/reading-trefarray-with-rdataframe-in-pyroot/37833/3

      TFile f("filename.root");
      TTreeReader r("treename", &f);
      TTreeReaderValue<TRefArray> rv(r, "Jet.Constituents");
      while (r.Next())
        testJetCon(*rv);
      

      as well as

      TFile f("filename.root");
      TTreeReader r("treename", &f);
      TTreeReaderArray<TRefArray> rv(r, "Jet.Constituents");
      while (r.Next()) {
        for (const auto & each : rv) {
          testJetCon(each);:
        }
      }
      

      fail.

      Attachments

        Issue Links

          Activity

            People

              axel Axel Naumann
              axel Axel Naumann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: