Noel,
>>>> import ROOT
>>>> g = ROOT.TGraph(3)
>>>> g.GetN()
> 3
>>>> g = ROOT.TGraph2D(3)
>>>> g.GetN()
> 0
>>>>
>
> ???
there's an issue with construction/destruction ordering given that neither TGraph(2D) has a name, so after the construction the same object will be deleted due to it's reference going away.
That said, I see the same in CINT:
root [0] g = new TGraph(3);
root [1] g->GetN()
(const Int_t)3
root [2] g2 = new TGraph2D(3);
root [3] g2->GetN()
(const Int_t)0
root [4]
so there must be something more to it ...
Best regards,
Wim
-- WLavrijsen_at_lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.netReceived on Wed May 25 2011 - 01:44:00 CEST
This archive was generated by hypermail 2.2.0 : Fri Jun 10 2011 - 11:50:01 CEST