Changeset 2834
- Timestamp:
- 01/16/04 15:17:09 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2833 r2834 22 22 * mcalib/MCalibrationPINDiode.cc 23 23 * mcalib/MCalibrationCam.cc 24 * mcalib/MHCalibrationBlindPixel.cc 25 * mcalib/MHCalibrationPixel.cc 24 26 - fixed the warns and errs in fLog's 25 27 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc
r2829 r2834 398 398 + fSinglePhePedFit->GetParError(2)/fSinglePhePedFit->GetParameter(2); 399 399 400 *fLog << "Results of the Blind Pixel Fit: " << endl;401 *fLog << "Chisquare: " << fChisquare << endl;402 *fLog << "DoF: " << fNdf << endl;403 *fLog << "Probability: " << fProb << endl;400 *fLog << inf << "Results of the Blind Pixel Fit: " << endl; 401 *fLog << inf << "Chisquare: " << fChisquare << endl; 402 *fLog << inf << "DoF: " << fNdf << endl; 403 *fLog << inf << "Probability: " << fProb << endl; 404 404 405 405 // … … 410 410 if (fProb < gkProbLimit) 411 411 { 412 *fLog << err << "Prob: " << fProb << " is smaller than the allowed value: " << gkProbLimit << endl; 412 *fLog << err << "ERROR: Fit Probability " << fProb 413 << " is smaller than the allowed value: " << gkProbLimit << endl; 413 414 fFitOK = kFALSE; 414 415 return kFALSE; 415 416 } 416 417 418 if (fProb < 0.01) 419 *fLog << warn << "WARNING: Fit Probability " << fProb << " is smaller than 1% " << endl; 420 417 421 Float_t contSinglePhe = TMath::Exp(-1.0*fLambda)*fLambda*entries; 418 422 419 423 if (contSinglePhe < 100.) 420 424 { 421 *fLog << err << " Statistics is too low: Only " << contSinglePhe422 << " in the first electron peak " << endl;425 *fLog << err << "ERROR: Statistics is too low: Only " << contSinglePhe 426 << " in the Single Photo-Electron peak " << endl; 423 427 fFitOK = kFALSE; 424 428 return kFALSE; 425 429 } 426 430 else 427 *fLog << GetDescriptor() << ": " << contSinglePhe428 << " in first electron peak " << endl;431 *fLog << inf << GetDescriptor() << ": " << contSinglePhe 432 << " in Single Photo-Electron peak " << endl; 429 433 430 434 fFitOK = kTRUE; … … 478 482 fHBlindPixelTime->Fit(fTimeGausFit,opt); 479 483 480 481 484 fMeanTime = fTimeGausFit->GetParameter(2); 482 485 fSigmaTime = fTimeGausFit->GetParameter(3); … … 484 487 fSigmaTimeErr = fTimeGausFit->GetParError(3); 485 488 486 Float_t prob = fTimeGausFit->GetProb(); 487 488 *fLog << "Results of the Times Fit: " << endl; 489 *fLog << "Chisquare: " << fTimeGausFit->GetChisquare() << endl; 490 *fLog << "Ndf: " << fTimeGausFit->GetNDF() << endl; 491 *fLog << "Probability: " << prob << endl; 492 493 if (prob < gkProbLimit) 494 { 495 *fLog << warn << "Fit of the Arrival times failed ! " << endl; 496 return kFALSE; 497 } 498 489 *fLog << inf << "Results of the Times Fit: " << endl; 490 *fLog << inf << "Chisquare: " << fTimeGausFit->GetChisquare() << endl; 491 *fLog << inf << "Ndf: " << fTimeGausFit->GetNDF() << endl; 492 499 493 return kTRUE; 500 494 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r2831 r2834 600 600 if (!fTimeGausFit) 601 601 { 602 *fLog << err << dbginf << "Could not create fit function for Gaussfit" << endl;602 *fLog << warn << dbginf << "WARNING: Could not create fit function for Time fit" << endl; 603 603 return kFALSE; 604 604 } … … 626 626 fTimeSigma = fTimeGausFit->GetParameter(2); 627 627 628 if (fTimeChisquare > 30.) // Cannot use Probability because Ndf is sometimes < 1629 { 630 *fLog << warn << " Fit of the Arrival times failed ! " << endl;628 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 629 { 630 *fLog << warn << "WARNING: Fit of the Arrival times failed ! " << endl; 631 631 return kFALSE; 632 632 } … … 656 656 if (!fTimeGausFit) 657 657 { 658 *fLog << err << dbginf << "Could not create fit function for Gaussfit" << endl;658 *fLog << warn << dbginf << "WARNING: Could not create fit function for Time fit" << endl; 659 659 return kFALSE; 660 660 } … … 682 682 fTimeSigma = fTimeGausFit->GetParameter(2); 683 683 684 if (fTimeChisquare > 30.) // Cannot use Probability because Ndf is sometimes < 1685 { 686 *fLog << warn << " Fit of the Arrival times failed ! " << endl;684 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 685 { 686 *fLog << warn << "WARNING: Fit of the Arrival times failed ! " << endl; 687 687 return kFALSE; 688 688 } … … 720 720 if (!fChargeGausFit) 721 721 { 722 *fLog << err << dbginf << "Could not create fit function for Gauss fit" << endl;722 *fLog << warn << dbginf << "WARNING: Could not create fit function for Gauss fit" << endl; 723 723 return kFALSE; 724 724 } … … 755 755 if (fChargeProb < gkProbLimit) 756 756 { 757 *fLog << warn << " Prob:" << fChargeProb757 *fLog << warn << "WARNING: Fit Probability " << fChargeProb 758 758 << " is smaller than the allowed value: " << gkProbLimit << endl; 759 759 fFitOK = kFALSE; … … 794 794 if (!fChargeGausFit) 795 795 { 796 *fLog << err << dbginf << "Could not create fit function for Gauss fit" << endl;796 *fLog << warn << dbginf << "WARNING: Could not create fit function for Charges fit" << endl; 797 797 return kFALSE; 798 798 } … … 835 835 if (fChargeProb < gkProbLimit) 836 836 { 837 *fLog << warn << "Prob: " << fChargeProb << " is smaller than the allowed value: " << gkProbLimit << endl; 837 *fLog << warn << "WARNING: Fit Probability " << fChargeProb 838 << " is smaller than the allowed value: " << gkProbLimit << endl; 838 839 fFitOK = kFALSE; 839 840 return kFALSE; … … 874 875 { 875 876 876 *fLog << "Results of the Summed Charges Fit: " << endl;877 *fLog << "Chisquare: " << fChargeChisquare << endl;878 *fLog << "DoF: " << fChargeNdf << endl;879 *fLog << "Probability: " << fChargeProb << endl;880 *fLog << endl;877 *fLog << all << "Results of the Summed Charges Fit: " << endl; 878 *fLog << all << "Chisquare: " << fChargeChisquare << endl; 879 *fLog << all << "DoF: " << fChargeNdf << endl; 880 *fLog << all << "Probability: " << fChargeProb << endl; 881 *fLog << all << endl; 881 882 882 883 } … … 885 886 { 886 887 887 *fLog << "Results of the Time Slices Fit: " << endl;888 *fLog << "Chisquare: " << fTimeChisquare << endl;889 *fLog << "Ndf: " << fTimeNdf << endl;890 *fLog << "Probability: " << fTimeProb << endl;891 *fLog << endl;892 893 } 888 *fLog << all << "Results of the Time Slices Fit: " << endl; 889 *fLog << all << "Chisquare: " << fTimeChisquare << endl; 890 *fLog << all << "Ndf: " << fTimeNdf << endl; 891 *fLog << all << "Probability: " << fTimeProb << endl; 892 *fLog << all << endl; 893 894 }
Note:
See TracChangeset
for help on using the changeset viewer.