Changeset 4322 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 06/22/04 14:24:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4321 r4322 986 986 area[0] = i; 987 987 988 TH1D *hist = camphes.ProjectionS(TArrayI(),area );988 TH1D *hist = camphes.ProjectionS(TArrayI(),area,"_py",100); 989 989 hist->Fit("gaus","Q"); 990 990 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); … … 992 992 const Int_t ndf = hist->GetFunction("gaus")->GetNDF(); 993 993 994 if (ndf < 1)994 if (ndf < 2) 995 995 { 996 996 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons " … … 1004 1004 const Double_t prob = hist->GetFunction("gaus")->GetProb(); 1005 1005 1006 if (prob < 0.00 05)1006 if (prob < 0.001) 1007 1007 { 1008 1008 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons " … … 1394 1394 area[0] = i; 1395 1395 1396 TH1D *hist = camffactor.ProjectionS(TArrayI(),area );1396 TH1D *hist = camffactor.ProjectionS(TArrayI(),area,"_py",100); 1397 1397 hist->Fit("gaus","Q"); 1398 1398 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); … … 1400 1400 const Int_t ndf = hist->GetFunction("gaus")->GetNDF(); 1401 1401 1402 if (ndf < 1)1402 if (ndf < 2) 1403 1403 { 1404 1404 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor " … … 1412 1412 const Double_t prob = hist->GetFunction("gaus")->GetProb(); 1413 1413 1414 if (prob < 0.00 05)1414 if (prob < 0.001) 1415 1415 { 1416 1416 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor "
Note:
See TracChangeset
for help on using the changeset viewer.