-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
promote
LazyBranch
as go-to accessing pattern
- Loading branch information
Showing
8 changed files
with
151 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Use | ||
# @warnpcfail precompile(args...) | ||
# if you want to be warned when a precompile directive fails | ||
macro warnpcfail(ex::Expr) | ||
modl = __module__ | ||
file = __source__.file === nothing ? "?" : String(__source__.file) | ||
line = __source__.line | ||
quote | ||
$(esc(ex)) || @warn """precompile directive | ||
$($(Expr(:quote, ex))) | ||
failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line | ||
end | ||
end | ||
|
||
|
||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TLeafB}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TBranch}}) | ||
Base.precompile(Tuple{typeof(decompress_datastreambytes),Vector{UInt8},TBasketKey}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerBasicPointer}}) | ||
Base.precompile(Tuple{typeof(compressed_datastream),IOStream,TBasketKey}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerSTL}}) | ||
Base.precompile(Tuple{typeof(interped_data),Vector{UInt8},Vector{Int32},TBranch_13,Type{Nooffsetjagg},Type{Vector{Float32}}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerBasicType}}) | ||
Base.precompile(Tuple{typeof(getindex),ROOTFile,String}) | ||
Base.precompile(Tuple{typeof(getindex),TTree,String}) | ||
Base.precompile(Tuple{typeof(interp_jaggT),TBranch_13,TLeafF}) | ||
Base.precompile(Tuple{Type{ROOTFile},String}) | ||
Base.precompile(Tuple{typeof(getindex),LazyBranch{Vector{Float32}, Nooffsetjagg},UnitRange{Int64}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TLeafF}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerObject}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TLeafL}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerObjectPointer}}) | ||
Base.precompile(Tuple{typeof(basketarray),ROOTFile,TBranch_13,Int64}) | ||
Base.precompile(Tuple{Type{TTree},IOStream,TKey32,Dict{Int32, Any}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerString}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TLeafO}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerObjectAny}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TLeafI}}) | ||
Base.precompile(Tuple{Type{LazyBranch},ROOTFile,TBranch_13}) | ||
Base.precompile(Tuple{typeof(readfields!),Cursor,Dict{Symbol, Any},Type{TBranch_13}}) | ||
Base.precompile(Tuple{typeof(unpack),IOBuffer,TKey32,Dict{Int32, Any},Type{TStreamerBase}}) | ||
Base.precompile(Tuple{Core.kwftype(typeof(Type)),NamedTuple{(:cursor, :fFirstEntry, :fIOFeatures, :fFillColor, :fMaxBaskets, :fWriteBasket, :fEntryOffsetLen, :fBaskets, :fTitle, :fZipBytes, :fSplitLevel, :fCompress, :fBasketSize, :fName, :fTotBytes, :fBasketEntry, :fLeaves, :fBasketSeek, :fFillStyle, :fBasketBytes, :fEntries, :fBranches, :fFileName, :fEntryNumber, :fOffset), Tuple{Cursor, Int64, ROOT_3a3a_TIOFeatures, Int16, UInt32, Int32, Int32, TObjArray, String, Int64, Int32, Int32, Int32, String, Int64, Vector{Int64}, TObjArray, Vector{Int64}, Int16, Vector{Int32}, Int64, TObjArray, String, Int64, Int32}},Type{TBranch_13}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using UnROOT | ||
const HERE = @__DIR__ | ||
const a = ROOTFile("$HERE/samples/NanoAODv5_sample.root") | ||
const b = a["Events"]["Electron_dxy"] | ||
const lb = a["Events/Electron_dxy"] | ||
|
||
@show a,b,lb | ||
lb[1:3] | ||
|
||
for i in lb | ||
i | ||
break | ||
end | ||
|
||
function f() | ||
for n in keys(a["Events"]) | ||
lb = a["Events/$n"] | ||
lb[1] | ||
for i in lb | ||
break | ||
end | ||
end | ||
end | ||
|
Oops, something went wrong.
d5a2c0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
d5a2c0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/40530
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: