Dear ROOT friends,
I have a rather peculiar problem: in my application (a GUI), I am drawing a histogram at some point, by using the TH1::Draw() method. Now recently I realized that ROOT crashes inside the Draw() method in certain situations. After some debugging and forum searching, I simply gave DrawCopy() a try and this indeed solved my problem. I was happy for a short while, but then realized that now in certain other situations the applications crashes in DrawCopy() (where it works perfectly fine with Draw()). (I also tried DrawClone() but that gave completely strange results.) So my questions are:
-
What are the general rules for using Draw() versus DrawCopy()?
-
Is there a way to “ask” the histogram whether it wants to be drawn with Draw() or with DrawCopy()? Any property that would give me a hint which one I should use?
Unfortunately, I cannot easily isolate the problem in macro. I could post the full application if necessary.
Many thanks in advance,
Thomas