Maybe I can explain my problem a little bit. I have to divide 2 histograms to compute a cross section. The problem is that the binnings are differents (bins limits don't match). I was thinking about a simple algorithm using only the bin width. Of course this method is valid with a flat distribution but in my case I have a lot of bins and the variations from bin to bin are quite small. But it is possible I think also that the algorithm can do it in the right way using derivatives ? lobo@irmm.jrc.be > Hi Georges, > > Did you look in TH1::Rebin ? This function accepts only rebinning 2, 3, etc bins > into one bin. Rebinning with a specified bin size is only possible if you can > make some assumptions on the original histogram (flat distribution inside one > bin). I never had requests for this mode so far. > > Rene Brun > > Georges Lobo wrote: > > > > Hello all, > > I was wondering if there was a macro ready-to-use to rebin an histogram > > using a defined bin definition, which could imply to deal with frctions of > > bins. > > Thanks in advance > > Georges Lobo >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET