Hi Jeff, use: h1.Add(&h2,1); Victor Jeffrey Reid wrote: > > Hi All > > I am using version 2.25/01 and I want to add a bunch of 2d histograms > together, and so I assumed that I could use something like I would for 1d > histograms... > > TH2F h1, h2; > Double_t c; > ... > > h1.Add(h2,1); // h1 = h1 + c*h2; > > However, I find that Add isn't overloaded for TH2 and so it is expecting a > TH1 for the first arguement of Add(). Is this a bug, am I missing > something obvious, or does the Add() for TH2 simply not exist? How can I > get this 'histogram increment' functionality for 2d histograms? > > Jeff > > -- Victor M. Perevoztchikov perev@bnl.gov perev@vxcern.cern.ch Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET