Replies: 3 comments 3 replies
-
Hi @dinardo! Awkward Array is not intended to be used exclusively from C++. The paper that you referenced describes a mechanism for creating Awkward Arrays in C++; this header-only library is intended for use in C++ libraries that expose a Python API, but it is of course possible to write these arrays to e.g. disk, and load them in a separate process. We implement a Instead, there is also |
Beta Was this translation helpful? Give feedback.
-
Hi @jpivarski , I need to make a Normally I must say that I'm not super familiar with all these new packages, but I keep reading around about "conversion in RDataFrame" Many thanks.
|
Beta Was this translation helpful? Give feedback.
-
Hi @dinardo, That would be "double-jagged" data in this scheme, since the TTree Entry index is always treated as knowable/findable/un-fixed. So a variable number of objects per TTree Entry is single-jagged, and variable number of variable number of things is doubly-jagged. RDataFrame is, in a single blurb, a "Declarative interface to TTree (and other) data." It has Snapshot functionality to write out TTrees (and through the declarative Define calls you can create new quantities, and use Filter calls to make selections on TTree entries), but it doesn't have generalized (automatic?) support for more than 1 level of jaggedness right now. That is, it works perfectly fine for CMS NanoAOD and similar ntuples. Since the interface is declarative, you don't "manually" fill things event-by-event, but the end result is similar (within its constraints). https://root.cern/doc/master/classROOT_1_1RDataFrame.html shows some examples. Best, |
Beta Was this translation helpful? Give feedback.
-
Dear Experts,
I came across this interesting paper: https://arxiv.org/pdf/2303.02205.pdf
It's not clear to me whether I can create an awkward array in C++ and "convert it" into a
TTree
, avoiding the annoying ROOT dictionary generation procedure.My final goal would be to have a
TTree
branch which is a:std::vector< std::vector<uint32_t> >
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions