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

[DF] Cannot read certain sub-branches #2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.18/00, 6.16/02
    • Fix Version/s: 6.18/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      any

      Description

      First reported on the forum here.

      Using the file test.root attached, RDataFrame is not able to read branch Tag.fTag if the dataset is passed as tree name + file name (it can if the TTree object is passed directly, at least in single-thread runs).

      Minimal reproducer:
       

      root [0] ROOT::RDataFrame df("miniTree", "test.root")                                                                                                                         
      (ROOT::RDataFrame &) A data frame built on top of the miniTree dataset.                                                                                                       
      root [1] *df.Histo1D<int>("Tag.fTag")                                                                                                                                         
      Error in <TTreeCache::AddBranch>: unknown branch -> Tag.fTag                                                                                                                  
      Error in <TBranchProxy::Read>: Unable to initialize Tag.fTag                                                                                                                  
       
       
       *** Break *** segmentation violation
      

        Attachments

        1. read.C
          0.3 kB
        2. test.root
          14 kB

          Issue Links

            Activity

              People

              • Assignee:
                dpiparo Danilo Piparo
                Reporter:
                eguiraud Enrico Guiraud
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Actual Start:
                  Actual End: