I wonder how I could get a pointer to a global variable defined in cint. Something like in the code below. Here I declared variable “myVariable”. I tried TROOT::Get() method, but it doesn’t work. TGlobal::GetAddress yields something, but the result is not correct. What am I doing wrong?
Yes, I should have explained why I am trying to do this seemingly awkward thing. I’m trying to develop an interface between ROOT and Asymptote drawing language (asymptote.sourceforge.net/). I’m aiming at drawing ROOT objects (saved in ROOT files) with Asymptote. Now I’m in the phase when investigating possibilities for this interface, finally to pick up the best implementation. One of the ideas was to implement an Asymptote function to call a ROOT command, e.g.
Now we’re in a point when TGraph data need to be exported to Asymptote. The idea is to use an Asymptote function
where the “path” is an Asymptote object, basically representing a spline. The thing is that the implementation of the RootGetGraph method needs to get pointer to TGraph g given the string “g”. And that was my question…