Hi, I am having a small problem using the WaitPrimitive() method. I've made a function that uses WaitPrimitive() to get input from the mouse (essentially choosing by hand a graph by selecting points on the canvas). The function works fine when it's used in a single canvas, but if I divide the canvas lets say in 2 areas and then use the macro in one of them, when I go to the second area it "remembers" the last point taken on the first area. Do I have to call any method to "clear" things up before the second usage? I am attaching the macro in the file "fnc.C". It's usage is: FitGauss2(hist,xMin,xMax); where hist a TH1F pointer and xMin, xMax the limits within which points are selected. Thanks! Stelios.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET