Write Ntuple in PyROOT

Discuss PyROOT, the Python ROOT language binding, here.

Moderators: wlav, rootdev

Posts: 8
Joined: Mon Feb 27, 2012 10:59

Write Ntuple in PyROOT

Unread postby meehan » Tue Apr 10, 2012 15:42

I am trying to write a basic ntuple, with floats and arrays of floats, using pyroot. I am having difficulty, especially with assigning the adress of a branch. Can someone post a short, working example of how to perform this? Thankyou.

User avatar
Posts: 1650
Joined: Mon Jun 14, 2004 19:40
Location: Lawrence Berkeley National Lab

Re: Write Ntuple in PyROOT

Unread postby wlav » Tue Apr 10, 2012 18:39


either http://wlav.web.cern.ch/wlav/pyroot/tpytree.html (section A.2.2) or staff.py in $ROOTSYS/tutorials/pyroot should do.


Return to “PyROOT Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest