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

[DF] Wrong branch type inference in some cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.18/04, 6.24/00, 6.20/08, 6.22/02
    • Fix Version/s: 6.24/00, 6.22/04, 6.20/10
    • Component/s: RDataFrame
    • Labels:
      None
    • Environment:

      any

      Description

      The problematic input file is attached. TTree::Print shows, for example,

      *............................................................................*
      *Br    3 :MCTrack.fPdgCode : Int_t fPdgCode[cbmroot.Stack.MCTrack_]          *
      *Entries :      100 : Total  Size=      27420 bytes  File Size  =       6225 *
      *Baskets :        1 : Basket Size=      32000 bytes  Compression=   4.30     *
      *............................................................................*
      

      but RDataFrame gets the type of the branch wrong, returning the type of the parent:

      root [5] d.GetColumnType("MCTrack.fPdgCode")
      Warning in <TClass::Init>: no dictionary for class ShipMCTrack is available
      (std::string) "ShipMCTrack"
      root [6]
      

      A suspicious element here is the splitting of a TClonesArray (ShipMCTrack, which is a usecase we do not test for.
      Another suspicious element is that this TTree has branches with a "." in their names, but we do deal with that case correctly in other cases, so it can't be just it.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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