Changeset 2318 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 08/26/03 13:50:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHFindSignificance.cc
r2311 r2318 68 68 #include <TMinuit.h> 69 69 #include <TPaveText.h> 70 #include <TStyle.h> 70 71 71 72 #include "MLog.h" … … 297 298 delete fGPoly; 298 299 delete fGBackg; 299 delete fCanvas;300 //delete fCanvas; 300 301 } 301 302 … … 348 349 Bool_t drawpoly, Bool_t fitgauss, Bool_t print) 349 350 { 350 *fLog << "MHFindSignificance::FindSigma;" << endl;351 //*fLog << "MHFindSignificance::FindSigma;" << endl; 351 352 352 353 fHistOrig = fhist; … … 503 504 fHist = (TH1*)fHistOrig->Clone("|alpha| plot"); 504 505 fHist->Sumw2(); 505 fHist->SetNameTitle(" Alpha", "alpha plot");506 fHist->SetNameTitle("alpha", "alpha plot"); 506 507 fHist->SetXTitle("|alpha| [\\circ]"); 507 508 fHist->SetYTitle("Counts"); … … 545 546 continue; 546 547 } 547 548 549 *fLog << "before SigmaLiMa : fNon, fNoff, fGamma = " << fNon << ", "550 << fNoff << ", " << fGamma << endl;551 548 552 549 Double_t siglima = 0.0; … … 570 567 571 568 gROOT->SetSelectedPad(NULL); 569 gStyle->SetPadLeftMargin(0.05); 572 570 573 571 ccc->cd(); … … 920 918 kFALSE); 921 919 920 *fLog << "FitPolynomial : after CallMinuit()" << endl; 921 922 922 if (rc != 0) 923 923 { … … 939 939 gMinuit->mnstat(fmin, fedm, errdef, npari, nparx, fIstat); 940 940 941 //*fLog << "MHFindSignificance::FitPolynomial; fmin, fedm, errdef, npari, nparx, fIstat = "942 //<< fmin << ", " << fedm << ", " << errdef << ", " << npari943 //<< ", " << nparx << ", " << fIstat << endl;941 *fLog << "MHFindSignificance::FitPolynomial; fmin, fedm, errdef, npari, nparx, fIstat = " 942 << fmin << ", " << fedm << ", " << errdef << ", " << npari 943 << ", " << nparx << ", " << fIstat << endl; 944 944 945 945 … … 969 969 fErrors[j] = err; 970 970 } 971 971 972 972 973 //-------------------------------------------------- … … 1068 1069 for (Int_t i=1; i<=nbins; i++) 1069 1070 fHist->SetBinError(i, saveError[i-1]); 1071 1070 1072 1071 1073 return kTRUE; … … 1262 1264 TString formulaBackg = "[0]"; 1263 1265 for (Int_t i=1; i<=fDegree; i++) 1264 formulaBackg += Form("+[%d]^%d", i, i); 1265 1266 const TString formulaGauss = Form("[%d]/[%d]*exp(-0.5*((x-[%d])/[%d])^2)", 1267 fDegree+1, fDegree+3, fDegree+2, fDegree+3); 1266 formulaBackg += Form("+[%d]*x^%d", i, i); 1267 1268 const TString formulaGauss = 1269 Form("[%d]/[%d]*exp(-0.5*((x-[%d])/[%d])^2)", 1270 fDegree+1, fDegree+3, fDegree+2, fDegree+3); 1268 1271 1269 1272 TString formula = formulaBackg; … … 1723 1726 Bool_t MHFindSignificance::DrawFit(const Option_t *opt) 1724 1727 { 1725 *fLog << "entry DrawFit" << endl;1726 1727 1728 if (fHist == NULL) 1728 1729 *fLog << "MHFindSignificance::DrawFit; fHist = NULL" << endl; … … 1733 1734 1734 1735 //gStyle->SetOptFit(1011); 1736 1735 1737 gROOT->SetSelectedPad(NULL); 1738 gStyle->SetPadLeftMargin(0.1); 1736 1739 1737 1740 fCanvas->cd(); 1741 1738 1742 1739 1743 if (fHist) … … 1784 1788 } 1785 1789 1786 *fLog << "DrawFit : before text" << endl;1787 1790 1788 1791 //------------------------------- … … 1864 1867 pt->SetTextAlign(12); 1865 1868 1866 *fLog << "DrawFit : before pt->Draw()" << endl;1867 1868 1869 pt->Draw(); 1869 1870 1870 1871 fCanvas->Modified(); 1871 1872 fCanvas->Update(); 1872 1873 *fLog << "exit DrawFit" << endl;1874 1873 1875 1874 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.