[ROOT] incrementing a TH2

From: Jeffrey Reid (jgreid@u.washington.edu)
Date: Tue Sep 26 2000 - 23:41:39 MEST


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




  



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