Hello,
i got a class X which contains a TH2D histogram.
class X : public TObject {
private:
TH2D kMap;
(...)
}
I want to have a function Add, which works as TH1::Add(TH1,Double_t), so:
X *obj1,*obj2;
double x=2;
obj1->Add(obj2,2);
I've written a function Add (public in class X):
void X::Add(const X *s, double d)
{
kMap.Add(s->kMap,d);
}
compilator says:
no matching function to call TH2D::Add... and in fact there is no such
function in TH2D (only in TH1)...
Anybody has a proposition how to proceed?
Best regards,
Mariusz Sapinski
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET