Is there a document describe the connection of the methods in PyRoot and C++ root?

Hi,
I have a very naive question. Is there any document or way to find the substitution method in PyRoot as the old c++ method. As now I can easily find how to use the C++ method from , for example, ROOT user’s guide or google . How Can I find the documentation for PyRoot. Is there a list contains all the methods?
For example. I know how to use TChain in C++, and can I just use it in python by:
import ROOT
chain = ROOT.TChain()
chain.Add(’…/…/…/…root’)

Is this right?
And is this the right way for all the method? Is there a document describe the connection of the methods in PyRoot and C++ root.

Best,
Li

Hi Li,

one of the most attractive features of pyroot is that the documentation of the c++ classes is enough to figure out very naturally the way to use it. For example the example you write about TChain is correct. In this case the const char* type of c++ implies the usage of a python string.

Cheers,

Danilo

Hi,
Thanks for your help ! =D>

Best,
Li