From 6c7f7d36e3bd8f7b2571770002da103946a02ffc Mon Sep 17 00:00:00 2001 From: Tamas Gal Date: Mon, 9 Dec 2024 16:16:40 +0100 Subject: [PATCH] Add TString recongnition (#374) --- src/root.jl | 2 ++ src/utils.jl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/root.jl b/src/root.jl index 29540d1b..df92b441 100644 --- a/src/root.jl +++ b/src/root.jl @@ -327,6 +327,7 @@ function _normalize_ftype(fType) end end +# TODO: there are still a few missing here (see constants.jl) const _leaftypeconstlookup = Dict( Const.kBool => Bool , Const.kChar => Int8 , @@ -344,6 +345,7 @@ const _leaftypeconstlookup = Dict( Const.kDouble32 => Float32, Const.kDouble => Float64, Const.kFloat => Float32, + Const.kTString => String, ) """ diff --git a/src/utils.jl b/src/utils.jl index ef47e860..a6430fbd 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -71,6 +71,10 @@ function JaggType(f, branch, leaf) leaf isa TLeafElement && leaf.fLenType==0 && return Offsetjagg return Nojagg end + if typeof(streamer) <: TStreamerString + # TODO: there are for sure also jagged strings, need to find files with those + return Nojagg + end if streamer.fSTLtype == Const.kSTLvector (match(r"\[.*\]", leaf.fTitle) !== nothing) && return Offset6jaggjagg return Offsetjagg