[ROOT] TH1 : X coordinate -> BinContent ?

From: Julien Bolmont (Julien.Bolmont@gamum2.in2p3.fr)
Date: Thu Sep 25 2003 - 11:16:05 MEST


Hello rooters !

I use ROOT 3.04.02.

Is there any solution to get the bin content directly with the X 
coordinate ?

One possible solution is:
- With the X coordinate, find the number of the corresponding bin (with a 
loop, which is time consuming !)
- Get the bin content with GetBinContent(number_of_the_bin).

Is there any better solution ?

Thanks a lot.
Julien

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Julien Bolmont                          | julien.bolmont@gamum2.in2p3.fr
Ingénieur diplômé, doctorant            | Tél. bureau: +33 4 67 14 41 91
Groupe d'Astroparticules de Montpellier | Fax:         +33 4 67 14 41 90
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



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