RootTalk


ROOT Discussion Forums

Write Ntuple in PyROOT

Discuss PyROOT, the Python ROOT language binding, here.

Moderators: wlav, rootdev

Write Ntuple in PyROOT

Unread postby meehan » Tue Apr 10, 2012 14: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.
meehan
 
Posts: 4
Joined: Mon Feb 27, 2012 10:59

Re: Write Ntuple in PyROOT

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

Hi,

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

Cheers,
Wim
User avatar
wlav
 
Posts: 1332
Joined: Mon Jun 14, 2004 18:40
Location: Lawrence Berkeley National Lab



Return to PyROOT Support

Who is online

Users browsing this forum: No registered users and 3 guests