Extracting Root data from tuple

Hi,
I am not sure what you want to dump from this file, which contains 4 histograms and 2 ntuples. A simple python script to dump the contents can be the following:

from ROOT import TFile, TCanvas
f = TFile('AnaEx01.root')

# Get the histograms and draw them
histos = [f.Get('histo/%d'%(i+1)) for i in range(4)]
c = TCanvas()
c.Divide(2,2)
for i in range(4):
    c.cd(i+1)
    histos[i].Draw()
c.Draw()

# Get the tuples and print their contents
ntuples = [f.Get('ntuple/%d'%(i+101)) for i in range(2)]
for i in range(2):
    ntuple = ntuples[i]
    names = [b.GetName() for b in ntuple.GetListOfBranches()]
    print '--------NTuple %s------------------'% ntuple.GetName()
    for n in names : print n, 
    print ';'
    for e in ntuple:
        for n in names:
            print getattr(e,n),
        print ';'