Get parameters from a fit

Hello All

I have a problem getting parameters from a fit.
The exact error is:

error: request for member ‘GetFunction’ in ‘(TH1F ()[(((long unsigned int)(((long int)HistPerModule) + -0x00000000000000001)) + 1)])(& TimeHist)’, which is of non-class type ‘TH1F [(((long unsigned int)(((long int)HistPerModule) + -0x00000000000000001)) + 1)]’

The code is as follows:

[code]TF1 *fit;
double Fit_Constant,Fit_Mean,Fit_Sigma;

for(I1=0;I1<HistPerModule;I1++){
for(I2=0;I2<HistPerModule;I2++){
entries=TimeHist[I1][I2]->GetEntries();
if (entries > 20) {
TimeHist[I1][I2]->Fit(“gaus”,“QW”);
fit = TimeHist->GetFunction(“gaus”);
}
}
}[/code]

TimeHist is:
TH1F *TimeHist[HistPerModule][HistPerModule] array.

Thanks
Karthik

Solved.

I forgot the array index.

How do I delete posts?