JuliaHEP / ROOT.jl

CERN ROOT compatiblility for Julia
Other
43 stars 9 forks source link

More cosmetic and usability changes #25

Closed peremato closed 3 months ago

peremato commented 4 months ago

Added extra usability functions:

This allows to get all sort of objects from a TFile

julia> f = ROOT.TFile!Open("demo_ROOT_out.root");

julia> @test GetObject(f,"h") isa ROOT.TH1
Test Passed

julia> f = ROOT.TFile!Open("test1.root")
CxxWrap.CxxWrapCore.CxxPtr{ROOT.TFile}(Ptr{ROOT.TFile} @0x000000012c833d20)

julia> @test f.tree isa ROOT.TTree
Test Passed
grasph commented 4 months ago

@peremato can you review the changes I made and tell me if they are ok for you?