Hi Florian, There is nothing in Root right now to do this. You have to loop on all bins and fill another histogram. The best solution to this problem is to have the original data in a Ttree/TNtuple and fill an histogram with the scaled variable. Rene Brun Florian Schopper wrote: > > dear rooters, > > what is the proper way to scale TH1s in x-direction by a > calibration function (maybe a linear funtion or something more complex). > What I currently do is filling the existing histogram into a new > one and multiply the bins, but this might cause trouble with aliasing.... > > cheers, > Florian > > ---------------------------------------------------------------------- > Florian Schopper office: Max-Planck-Institut fuer > extraterrestrische Physik > Ludwig-Merk str. 3 Postfach 1603 > 80805 Muenchen Giessenbachstr. > phone: 49/89/32455680 85740 Garching, Germany > > phone: 49/89/3299 3625 > fax: 49/89/3299 3569 > e-mail: fls@mpe-garching.mpg.de > http://home.cern.ch/~fschoppe > ---------------------------------------------------------------------- > ----------------------------------------------------------------------- > >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET