Changeset 2660 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 12/11/03 21:53:53 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.cc
r2658 r2660 431 431 c->cd(3); 432 432 gROOT->SetSelectedPad(NULL); 433 gStyle->SetOptFit(); 433 434 fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete); 435 fHiGainvsLoGain->Fit("p1","q"); 434 436 gPad->Modified(); 435 437 gPad->Update(); … … 464 466 465 467 gROOT->SetSelectedPad(NULL); 468 gStyle->SetOptFit(); 466 469 fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete); 470 fHiGainvsLoGain->Fit("p1","q"); 467 471 gPad->Modified(); 468 472 gPad->Update(); … … 493 497 if (fTimeGausFit) 494 498 { 495 if (fTime Prob > gkProbLimit)499 if (fTimeChisquare > 20.) 496 500 fTimeGausFit->SetLineColor(kRed); 497 501 else … … 507 511 if (fTimeGausFit) 508 512 { 509 if (fTime Prob > gkProbLimit)513 if (fTimeChisquare > 20.) 510 514 fTimeGausFit->SetLineColor(kRed); 511 515 else … … 588 592 fTimeSigma = fTimeGausFit->GetParameter(2); 589 593 590 if (fTime Prob < gkProbLimit)594 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 591 595 { 592 596 *fLog << warn << "Fit of the Arrival times failed ! " << endl; … … 644 648 fTimeSigma = fTimeGausFit->GetParameter(2); 645 649 646 if (fTime Prob < gkProbLimit)650 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 647 651 { 648 652 *fLog << warn << "Fit of the Arrival times failed ! " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.