Hello Art,
"Arthur E. Snyder" <snyder_at_slac.stanford.edu> writes:
> Well in c/c++ an array is just a pointer with a certain amount of space
> reseved beyond it. So GetParErrors give you a pointer (i.e. the array held
> by your TF1 object (fParErrors)).
I'm still at the stage with c++ where the pointer syntax, combined with object syntax, eludes me. Such was the case here.
> If you want a copy that will not go away when your TF1 goes away (to be
> safe) then I think you just have to copy it element by element, or use it
> to construct a TMatrix or TVector or something.
Well, as long as I have the TF1 in the root file I am OK because I can always extract the parameters and errors and dump the into a text file. Why do I need this? Because I always tabulate results in drafts of my publications just so the referees can tell me to toss 'em and keep the pictures.
> If your a fortran old-foggie like me this can be very confusing!
>
Fortran was my first programming language too. I'm just glad that root is'nt written in Java.
Thanks again,
Roger
Received on Tue Feb 06 2007 - 13:03:05 CET
This archive was generated by hypermail 2.2.0 : Tue Feb 06 2007 - 23:50:00 CET