2D Array of TGraphErrors

Could the TGraphErrors be used 2D array?Like this

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hello,

Sorry, the question is whether you can do that assignment? It depends on the type of the array you are assigning to.

I use double number

According to the documentation:

https://root.cern.ch/doc/master/classTGraphErrors.html#a563001c7b3a8041e1f62afce9b47abce

TGraphErrors expects arrays of doubles (which is what you are passing). Are you getting any error?

I didn’t understand absolutely.waht is the “not doubles” , I have define arrays of doubules.Thanks

I miswrote when I posted, you can find my corrected message above :slight_smile:


This is one :no_mouth:

The message says you are passing as argument a double instead of a double *. Is any of the arguments a double?

Yes , these are doubule value. Does ot mean that the double pointer should be used?

Yes, the constructor of TGraphErrors expects double* (arrays), see link above.

Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.