I’m now writing a GUI application within the root framework, and I’d like to do the follwoing:
Select a few regions in a displayed TH1 (by pointing boudaries using a mouse),
Show the selected regions for example by bounding each region by two vertical bars, by hatching/shading etc.,
2.1 (optional) expanding/shrinking regions by mouse drag etc., and
Get the bin numbers of the boundaries.
Are there any good and efficient ways (and their examples) of doing the above?
How do I get bin numbers of the boundaries (and change them afterwords) GRAPHICALLY? (to get the bin numbers 45 and 56 by using a mouse pointer in the example above).
I think I can follow the procedure represented in the example $ROOTSYS/tutorials/hist/DynamicSlice.C (at least to get bin numbers of the specified boundaries)…
[quote=“brun”]Try the following (click left button to select the start bin and release it at the last bin). Use the non TFrame area and the non TAxis area