Hello,
I have a TObject and I want to call its Reset method if it happens to have one. Unfortunately, it always says that the number of parameters is wrong.
root [0] TH1F *h = new TH1F("test", "test", 10, 10, 10);
root [1] h->Fill(3);
root [2] h->Reset(); // no parameter and it works
root [3] TMethod *m = h->IsA()->GetMethodAny("Reset")
root [4] h->Execute(m, 0)
Error in <TCint::Execute>: Wrong number of the parameters
What am I doing wrong ?
Thank you
Barth