Skip to content

A wrapper for ROOT TTrees through the AbstractDataFrame interface

License

Notifications You must be signed in to change notification settings

jpata/ROOTDataFrames.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROOTDataFrames

Wraps ROOT TTrees through the AbstractDataFrame interface. Supports on-demand access of columns and rows which are based either on disk or on the network.

#Installation

  1. Install ROOT.jl: http://github.com/jpata/ROOT.jl
  2. Install this package using Pkg.clone("https://github.com/jpata/ROOTDataFrames.jl.git")
  3. Test using Pkg.test("ROOTDataFrames")

#Usage

using DataFrames, ROOT, ROOTDataFrames
data = TreeDataFrame(ASCIIString["file1.root", "file2.root"], "my_event_tree")
N = nrow(data)
c1 = data[[:col1, :col2]]

for i=1:N
  load_row(data, i)
  x = data[i, :x]
  y = data[i, :y]
end

About

A wrapper for ROOT TTrees through the AbstractDataFrame interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages