Fill the errors in the 2D histogram?

Hi Rooter,
If h2 is TH2D , I can fill it like this:
h2->Fill(x,y,weight);
But How can I fill the errors ?
Thanks.

Like for the 1-D case, call
h->Sumw2();
before filling your histogram.

Rene

I mean fill the error I myself define.
like h2->Fill(x,y,weight,error);
I know the error, not caculated by the root system.
Thanx.

do
h2->SetCellError(ix,iy,myerror);

where ix is the bin number along x,iy the bin number along y

Rene