Write Ntuple in PyROOT

Discuss PyROOT, the Python ROOT language binding, here.

Moderators: wlav, rootdev

meehan
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
wlav
Posts: 1591
Joined: Mon Jun 14, 2004 19:40
Location: Lawrence Berkeley National Lab
Contact:

Re: Write Ntuple in PyROOT

Unread postby wlav » Tue Apr 10, 2012 18: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



Return to “PyROOT Support”

Who is online

Users browsing this forum: No registered users and 1 guest