@@ -771,6 +771,7 @@ int test1DObjects(vector< vector<algoType> >& listH,
771771 for (int i = 1 ; i <= h1->GetNbinsX () + 1 ; ++i)
772772 h1->SetBinContent (i, rndm.Poisson (func->Eval (h1->GetBinCenter (i))));
773773
774+ h1->Sumw2 (); // make as a weighted histo to test weighted fits
774775 gTestIndex ++;
775776 if (gSelectedTest == 0 || gSelectedTest == gTestIndex ) {
776777 // fill equal bin 1D histogram
@@ -803,7 +804,7 @@ int test1DObjects(vector< vector<algoType> >& listH,
803804 h2->GetXaxis ()->GetBinUpEdge (i));
804805 h2->SetBinContent (i,rndm.Poisson (expValue));
805806 }
806-
807+ h2-> Sumw2 (); // make as a weighted histo to test weighted fits
807808 if (c0 && !__DRAW__) delete c0;
808809 c0 = new TCanvas (TString::Format (" c%d_H1D" , gTestIndex ), " Histogram1D Variable" );
809810 ObjectWrapper<TH1D *> owh2 (h2);
@@ -1219,6 +1220,7 @@ void init_structures()
12191220 noGraphAlgos.push_back ( algoType ( " Minuit2" , " Migrad" , " EX" , CompareResult ()) );
12201221 noGraphAlgos.push_back ( algoType ( " Minuit" , " Migrad" , " L" , CompareResult (defCmpOpt,3 ,0.1 )) ); // normal binned likelihood fit
12211222 noGraphAlgos.push_back ( algoType ( " Minuit2" , " Migrad" , " L" , CompareResult (defCmpOpt,3 ,0.1 )) );
1223+ noGraphAlgos.push_back ( algoType ( " Minuit2" , " Migrad" , " WL" , CompareResult (defCmpOpt,3 ,0.1 )) );
12221224 noGraphAlgos.push_back ( algoType ( " Minuit2" , " Migrad" , " G" , CompareResult ()) ); // gradient chi2 fit
12231225 // noGraphAlgos.push_back( algoType( "Minuit", "Migrad", "G", CompareResult()) ); // skip TMinuit with G
12241226 noGraphAlgos.push_back ( algoType ( " Minuit2" , " Minimize" , " G" , CompareResult ()) );
0 commit comments