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

TTreeReaderValue<double> reads a double[] branch by only accessing the first element with no warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.14/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      any

      Description

      If a TTree contains a branch "arr" that is a fixed or variable size array of, say, doubles, TTreeReaderValue<double> reads it without problems, but only accesses the first element.

      We should probably error out instead, suggesting to use a TTreeReaderArray<double>.

       

      Issue first found here, in the context of a TDataFrame analysis.

        Attachments

          Activity

            People

            Assignee:
            eguiraud Enrico Guiraud
            Reporter:
            eguiraud Enrico Guiraud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: