Changeset 7059 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 05/18/05 19:22:05 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r7058 r7059 1247 1247 1248 1248 TH1D *hist = camphes.ProjectionS(TArrayI(),TArrayI(1,&i),"_py",100); 1249 hist->Fit("gaus","Q ");1249 hist->Fit("gaus","Q0"); 1250 1250 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); 1251 1251 const Float_t sigma = hist->GetFunction("gaus")->GetParameter(2); … … 1771 1771 1772 1772 TH1D *hist = camffactor.ProjectionS(TArrayI(),area,"_py",100); 1773 hist->Fit("gaus","Q ");1773 hist->Fit("gaus","Q0"); 1774 1774 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); 1775 1775 const Float_t sigma = hist->GetFunction("gaus")->GetParameter(2); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r7028 r7059 768 768 // Fix the ranges, as found by Nadia 769 769 if(aidx == 0) 770 {h->Fit("fit","REQ", "",0.4,1.5);}770 h->Fit(fit, "REQ0", "",0.4,1.5); 771 771 else 772 {h->Fit("fit","REQ", "",1.,5.);}772 h->Fit(fit ,"REQ0", "",1.,5.); 773 773 } 774 774 else 775 775 { 776 h->Fit("gaus","Q ");776 h->Fit("gaus","Q0"); 777 777 fit = h->GetFunction("gaus"); 778 778 } … … 787 787 // Fix the ranges, as found by Nadia 788 788 if(aidx == 0) 789 {h->Fit("fit","REQ", "",0.4,1.5);}789 h->Fit(fit, "REQ0", "",0.4,1.5); 790 790 else 791 {h->Fit("fit","REQ", "",1.,5.);}791 h->Fit(fit, "REQ0", "",1.,5.); 792 792 } 793 793 else 794 794 { 795 h->Fit("gaus","MREQ ");795 h->Fit("gaus","MREQ0"); 796 796 fit = h->GetFunction("gaus"); 797 797 } … … 896 896 // Fix the ranges, as found by Nadia 897 897 if(aidx == 0) 898 {h->Fit("fit","REQ ", "",0.07,0.3);}898 {h->Fit("fit","REQ0", "",0.07,0.3);} 899 899 else 900 {h->Fit("fit","REQ ", "",0.15,1.0);}900 {h->Fit("fit","REQ0", "",0.15,1.0);} 901 901 } 902 902 else 903 903 { 904 h->Fit("gaus","Q ");904 h->Fit("gaus","Q0"); 905 905 fit = h->GetFunction("gaus"); 906 906 } … … 915 915 // Fix the ranges, as found by Nadia 916 916 if(aidx == 0) 917 {h->Fit("fit","REQ ", "",0.07,0.3);}917 {h->Fit("fit","REQ0", "",0.07,0.3);} 918 918 else 919 {h->Fit("fit","REQ ", "",0.15,1.0);}919 {h->Fit("fit","REQ0", "",0.15,1.0);} 920 920 } 921 921 else 922 922 { 923 h->Fit("gaus","MREQ ");923 h->Fit("gaus","MREQ0"); 924 924 fit = h->GetFunction("gaus"); 925 925 }
Note:
See TracChangeset
for help on using the changeset viewer.