TH2F Slicing

Hi,

I am try to write a code to slice up a TH2F, then take values from the 1d histograms and fill an array with them (things like mean rms etc.) but i seem to be getting some error that i am hoping someone could explain to me.

The errors are

[quote]root [2] .X Slicer.C
Warning: Automatic variable Responce[i] is allocated Slicer.C:26:
Error: Incorrect assignment to Error[i], wrong type ‘double&’ Slicer.C:27:
*** Interpreter error recovered ***
[/quote]

and my code is attached as Slicer.C

Cheers,

Gareth
Slicer.C (808 Bytes)

dont worry this is now resolved