[ROOT] Histigramming xmax

From: Dmitri Litvintsev (litvinse@fnal.gov)
Date: Tue Jun 20 2000 - 18:18:00 MEST


Dear Rootters, 

Is it possible to add a method to TH1F like 
SetXmax(xmax)?. 
In order not to run into problem of the rebinning, tha actual
xmax will become:

int nExtraBins = (xmax - xmax_old) / binwidth;
xmax           = xmax_old + nextrabins * binwidth;
nBinsNnew      = nBins + nExtraBins;

Since ROOT is used in on-line monitoring -- interactive 
change of maximum x value is really of value. 
(I used to have it in LabView)
Analogously - one would want to have SetXmin method

I'd appreciate your remarks on this subjects

thanks
Dmitri Litvintsev

/----------------------------------------------------------\
| Tel:       (630) 840 5005                                |  
| FAX:       (630) 840 2968                                |      
| office:    169-E CDF Trailers                            |
| E-mail:    litvinse@fnal.gov                             |
\----------------------------------------------------------/



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