Code Monkey home page Code Monkey logo

Comments (2)

aminnj avatar aminnj commented on May 22, 2024

Luckily it was just a matter of updating the "lookup table" with two new types. Let me make a PR with a test.

@@ -365,6 +365,10 @@ function auto_T_JaggT(f::ROOTFile, branch; customstructs::Dict{String, Type})
                     UInt32
                 elseif elname == "unsigned char"
                     Char
+                elseif elname == "unsigned short"
+                    UInt16
+                elseif elname == "ulong64"
+                    UInt64
                 else
                     _type = getfield(Base, Symbol(:C, elname))
                 end

after

julia> t = LazyTree(ROOTFile("trackntuple.root"),"trackingNtuple/tree")
┌ Warning: Your tree is quite wide, with 301 branches, this will take compiler a moment.
└ @ UnROOT ~/.julia/dev/UnROOT/src/iteration.jl:244
 Row │ see_stateCcov22          ph2_subdet               sim_parentVtxId          pix_xySignifica          simhit_detId             ph2_simType              s ⋯
     │ Vector{Float32}          Vector{UInt16}           Vector{Int32}            Vector{Vector{F          Vector{UInt32}           Vector{UInt16}           V ⋯
─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 1   │ [1.94f-6, 6.59f-8, 1.36  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[18.407  [305172488, 304128016,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 2   │ [2.18f-6, 4.15f-7, 6.53  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[11.120  [305201160, 344212576,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 3   │ [8.33f-8, 7.25f-8, 4.5f  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[0.2006  [304099348, 303042580,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 4   │ [0.0514, 0.0514, 0.0229  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[26.702  [353911916, 303075352,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 5   │ [1.16f-6, 2.94f-7, 0.20  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[1.2058  [303083532, 303083532,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 6   │ [7.71f-7, 7.74f-7, 7.76  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[1.1037  [411595905, 412124345,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 7   │ [1.76f-7, 1.75f-7, 1.59  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[0.8835  [352855144, 303071256,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 8   │ [7.13f-7, 3.59f-9, 4.77  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[7.0920  [439888985, 419738749,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 9   │ [1.14f-6, 3.77f-6, 3.76  [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[1.9531  [347092004, 345248788,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
 10  │ [9.2f-9, 0.118, 0.118,   [4, 4, 4, 4, 4, 4, 4, 4  [0, 0, 0, 0, 0, 0, 0, 0  Vector{Float32}[[0.2538  [419963998, 352851024,   [0, 0, 0, 0, 0, 0, 0, 0  [ ⋯
  ⋮  │            ⋮                        ⋮                        ⋮                        ⋮                        ⋮                        ⋮               ⋱
                                                                                                                                 294 columns and 90 rows omitted

from unroot.jl.

Moelf avatar Moelf commented on May 22, 2024

I wish we can find a list of all possible names... but who knows how ROOT "stringify" them

from unroot.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.