TH2F Slicing


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 ***

and my code is attached as Slicer.C


Slicer.C (808 Bytes)

dont worry this is now resolved