Sumw2() fill without draw

Hi,

I have created a histogram and filled it but I need to calculate the errors of my histogram so I used the function Sumw2() before filling the histogram. Also I have put SetFillColor(38) to fill my histogram by color and see the difference between errors and the orginal histogram better, but instead of Draw(), I have used Write() at the end and finally closed the histogram.After calling that I just see the errors and not my filled hostogram.

Can I use Sumw2() and SetFillColor() without Draw(), if so how?

Bests,
Donya

Try:
MyHisto->Draw("*H");
MyHisto->Draw(“HIST *H”);
MyHisto->Draw(“HIST P0”);
See: http://root.cern.ch/root/html/THistPainter.html