Hi rooters,
if you do
Graph = new TGraphAsymmErrors();
Graph->SetPoint(i, x, y);
root doesn't zero errors. Although it doesn't cause problems on unix, it
produces garbage on NT. I suppose this is another libNew feature or
something. Anyway it would be nice to zero errors by hand as it is done in
TGraphAsymmErrors(Int_t n) constructor.
Moreover, I think SetPoint() is not efficient if you use default TGraph()
constructor and add points one by one. What SetPoint() does in this case is
just pure copying (reallocation) of all arrays each time you go above
current number of points fNPoints (i.e. every time you add a new point!).
I think everybody uses constructions like
while(..)
if (..)
Graph->SetPoint(PointCount++, x, y)
to fill graphs "on-line".
I suggest you increase arrays by a fixed size (which can be also changed by
a user) as you do in TObjArray.
Regards,
Anton
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:34 MET