TProfile::Rebin with variable-sized bins (xbins!=0)

From: Constantin Loizides <loizides_at_mit.edu>
Date: Tue, 31 Jul 2007 17:14:17 +0200


Hi Rene,

I had trouble using TProfile::Rebin with variable sized bins. The only way to get it to work (for head) was to actually change the code (similar to what we did some time ago in TH1::Rebin).

Please find attached the patch.

Note, it seems to me that using xbins!=0 for newname=0 does not make sense and probably should be caught and a warning (or error) being issued. The patch does not include this since I was not sure of all the possible use patterns of Rebin.

Regards,
Constantin

-- 
Tel: +41-22-76 74875 (CERN)
Skype: loizides
AOL: ConLoi

Received on Tue Jul 31 2007 - 17:17:12 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 31 2007 - 23:50:02 CEST