Is Sumw2 called when reading histograms from files?

Have called TH1::SetDefaultSumw2 before.

Will Sumw2 be called when I get a histogram from TFile?

Try to print:
std::cout << SomeHisto->GetSumw2N() << std::endl;
and use:
if (!(SomeHisto->GetSumw2N() > 0)) SomeHisto->Sumw2(kTRUE);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.