How to get points from a multigraph

Hi,
I have a multigraph in hand which includes two sets of points (TGraphErrors). Now I wanna print these 2 sets of points out. I mean how I can get access to the point values. I understand I can get access to them by “save as” a macro and look into it to get point values, but it is not convenient for me. …

I make an effort to do this by
pad->FindObject(“Graph”)
but as you know, the pad includes 2 sets of points, but not 1 set. So I am confused …

Thanks,
Zhiyi.

By default a TMultiGraph has no name if you create it with the default constructor. You can it a name
-by calling the constructor(name,title)
-by calling mymultigraph.setName(“aname”);

then you can do, eg
gPad->GetPrimitive(“aname”)->Print();

Rene