TH1F with the following feature

From: Jayoung Wu (jayoung@glue.umd.edu)
Date: Tue Jan 04 2000 - 18:27:04 MET


Hi,

I have a 1D histogram plot:
  TH1F *scnlayer = new TH1F("scnlayer","energy deposit profile",43,0,43);
  for (Int_t i=0; i<43; i++)
      scnlayer->Fill(i,escn1x[i]);
  scnlayer->Draw("");

Now I want to add one feature:
  When I click the histogram(of energy deposit) it shows the other related
  values for that bin. For example, when I click the 3rd bin it shows the
  adc-count for that bin.
  ^^^^^^^^^^^^^^^^^^^^^^
    adcscn1x[2]

How can I add those features? Is there any similar and simple example?

---
Thanks,
Jayoung

 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:16 MET