called sumw2
authorekman <ekman@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 07:39:42 +0000 (07:39 +0000)
committerekman <ekman@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 07:39:42 +0000 (07:39 +0000)
PWG0/CorrectionMatrix2D.cxx

index 2b1f2cd..59f1dde 100644 (file)
@@ -39,6 +39,10 @@ CorrectionMatrix2D::CorrectionMatrix2D(Char_t* name, Char_t* title,
   fhMeas  = new TH2F(Form("meas_%s",name), Form("meas_%s",title),  nBinX, Xmin, Xmax, nBinY, Ymin, Ymax);
   fhGene  = new TH2F(Form("gene_%s",name), Form("gene_%s",title),  nBinX, Xmin, Xmax, nBinY, Ymin, Ymax);
   fhCorr  = new TH2F(Form("corr_%s",name), Form("corr_%s",title),  nBinX, Xmin, Xmax, nBinY, Ymin, Ymax);
+
+  fhMeas->Sumw2();
+  fhGene->Sumw2();
+  fhCorr->Sumw2();
 }
 
 //____________________________________________________________________
@@ -53,6 +57,10 @@ CorrectionMatrix2D::CorrectionMatrix2D(Char_t* name,Char_t* title,
   fhMeas  = new TH2F(Form("meas_%s",name), Form("meas_%s",title),  nBinX, X, nBinY, Y);
   fhGene  = new TH2F(Form("gene_%s",name), Form("gene_%s",title),  nBinX, X, nBinY, Y);
   fhCorr  = new TH2F(Form("corr_%s",name), Form("corr_%s",title),  nBinX, X, nBinY, Y);
+
+  fhMeas->Sumw2();
+  fhGene->Sumw2();
+  fhCorr->Sumw2();
 }