Using function TH2.FitSlicesY

Hello experts,
I would like to use the function FitSlicesY in my python script. In the root reference guide I found that this function is like:
void FitSlicesY(TF1* f1 = 0, Int_t firstxbin = 0, Int_t lastxbin = -1, Int_t cut = 0, Option_t* option = “QNR”, TObjArray* arr = 0)

The last argument will be the place where the results of the computation will be stored.
Now if I look I try to call it in python I find this error:
TypeError: void TH2::FitSlicesY(TF1* f1 = 0, Int_t firstxbin = 0, Int_t lastxbin = -1, Int_t cut = 0, Option_t* option = “QNR”) =>
takes at most 5 arguments (6 given)

And in fact looking at this method with the help option I see that in python it will take only 5 arguments.

Help on MethodProxy:

FitSlicesY(…)
void TH2::FitSlicesY(TF1* f1 = 0, Int_t firstxbin = 0, Int_t lastxbin = -1,
Int_t cut = 0, Option_t* option = “QNR”)

But where will the results be stored? Is this function doing anything? How can I use it?
Thanks a lot,
Barbara

Which version of ROOT are you using? The last parameter (TObjArray*) was introduced
in version 5.20 only.

Rene

Yes you are right, I was using version 5.18 instead of 5.20. Thanks a lot,
Barbara