On 22 Nov 98 at 17:00, Faouzi Attallah wrote: > > How do I do to redirect the mouse output. > When using the > Canvas/Option/Event Status > we can see the hist. name and chan. number by just pointing the > mouse to. Is there any way to redirect this output to, e.g., > the name to char* > and the chan. number to vectors (as vlocate in paw) > If I understaood you right what you are asking about is called in ROOT "picking object" and explained at the page: http://root.cern.ch/root/HowtoPick.html You may apply the ROOT Web site "Search Engine" to find out further information on this issue. For example if you will try keyword "ExecuteEvent" you may find the useful article "http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk97 /0724.html?ExecuteEvent#first_hit as well. From another hand there is some "short" way to figure out which object has been selected by mouse within some TPad object. The method "GetSelected" (see:http://root.cern.ch/root/html/TPad.html#TPad:GetSelected) may help you too. Hope this helps, Valery ================================================================= Dr. Valeri Faine (Fine) ------------------- Phone: +1 516 344 7806 Brookhaven National Laboratory FAX : +1 516 344 4206 Bldg. 510A /STAR mailto:fine@bnl.gov Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine USA Dr. Valery Fine Telex : 911621 dubna su ----------- LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80 141980 Dubna, Moscow region Fax : +7 09621 6 51 45 Russia mailto:fine@main1.jinr.dubna.su
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET