I am trying to declare a TGraphAsymmErrors object in pyROOT, but it always errors out with claiming none of the 9 overloaded methods succeeded:
TGraphAsymmErrors::TGraphAsymmErrors(int n, const float* x, const float* y, const float* exl = 0, const float* exh = 0, const float* eyl = 0, const float* eyh = 0) => could not convert argument 2
I have tried two ways, using variables with and without explicit float typing, and hard coding numbers, and they fail equally. I believe it has to do with the requirement that they be const, but there is no const in python. Both of these fail (all the hard coded numbers are the results of printing the variables in the line following):
dataGraph = TGraphAsymmErrors(4, 0.0, 235.0, 0.0, 0.0, 15.2375698701, 16.2626895151) dataGraph = TGraphAsymmErrors(len(x_val), float(x_val), float(y_val), float(x_errL), float(x_errU), float(y_errL), float(y_errU))
I tried with both ROOT 6.04 and ROOT 6.10 and got the same result. Does anyone know how to fix this? Thanks!