[d2n-analysis-talk] TVector Issue
David Flay
flay at jlab.org
Mon Oct 25 16:29:14 EDT 2010
Hi all,
I was wondering if any of you have come across this issue:
I'm trying to use TGraph in the form:
TGraphErrors(x,y,ex,ey)
Now, if you have all these quantities as TVectorT objects, you don't need
to specify the length of the array, which is great for making plots of
(world) data. So I'm just reading in these data files and plotting them
without worrying about the dimension of the vector. However, while the
graph plots just fine, I do get the error message:
Error in <TVectorT<float>::operator()>: Request index(17) outside vector
range of 0 - 1
For example.
Has anyone come across this and if so, have a fix?
Thanks!
Dave
-------------------------------------------------
David Flay
Physics Department
Temple University
Philadelphia, PA 19122
office: Barton Hall, BA319
phone: (215) 204-1331
e-mail: flay at jlab.org
flay at temple.edu
website: http://www.jlab.org/~flay
http://quarks.temple.edu
-------------------------------------------------
More information about the d2n-analysis-talk
mailing list