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

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • None
    • 6.14/00
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: