Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Issue with vector branches generated using RDataFrame  #544

Description

@ChristofSauer

Dear All,

I got access to a ROOT file that was generated making use of ROOT's RDataFrame feature. This file basically contains the constituents for each jet in an even, i.e., for each jet, there is an associated vector. It appears that RDataFrame converts the std::vector<std::vector<float> > type (which I'd expect for this kind of data) to some custom type vector<float,ROOT::Detail::VecOps::RAdoptAllocator<float> >, which apparently is not understood by uproot. If I'm trying to read one of those branches, I receive the following error message

ValueError: cannot interpret branch 'tjetSortClusNormByPt_pt' as a Python type

The corresponding infomration in the tree is

*............................................................................*
*Br   40 :tjetSortClusNormByPt_pt : vector<float,ROOT::Detail::VecOps:       *
*         | :RAdoptAllocator<float> >                                        *
*Entries :  1082892 : Total  Size=  216012422 bytes  File Size  =  195765107 *
*Baskets :      211 : Basket Size=    1632256 bytes  Compression=   1.10     *
*............................................................................*

Is there some way to read this data using uproot?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions