[ROOT] ToggleEventStatus and peak labels

From: Constantin Vaman (vaman@sbgamma.physics.sunysb.edu)
Date: Fri Nov 21 2003 - 18:47:58 MET


Hi All,
I am trying to use Root in acquisition system for gamma spectroscopy, and
have a couple of probably naive questions.
After creating a TCanvas instance, ToggleEventStatus() method will display
in the status bar the cross hair position as nr. of channels. What I am
interested in, is to display the cursor position in terms of energy. E.g.
for a 0.25 keV/ch, I want an energy of 100 to be displayed as the x coordinate
in the status bar, when the cursor is above channel 400.
Also, I would like to know how can avoid having the x coordinate being
displayed in scientific format for x > 1000, when the cross hair is not
precisely on the histogram contour.
Finally, I can find the peaks automatically, but I can't figure out how to
display automatically and nicely the energy corresponding to a particular
peak, above the peak, on the histogram.

I would very much appreciate any help, and/or references to samples of
code.

Best regards,

Constantin Vaman,
SUNY at Stony Brook.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET