Ignore:
Timestamp:
12/11/03 21:53:53 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.cc

    r2658 r2660  
    431431        c->cd(3);
    432432        gROOT->SetSelectedPad(NULL);
     433        gStyle->SetOptFit();
    433434        fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete);
     435        fHiGainvsLoGain->Fit("p1","q");
    434436        gPad->Modified();
    435437        gPad->Update();
     
    464466       
    465467        gROOT->SetSelectedPad(NULL);
     468        gStyle->SetOptFit();
    466469        fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete);
     470        fHiGainvsLoGain->Fit("p1","q");
    467471        gPad->Modified();
    468472        gPad->Update();
     
    493497        if (fTimeGausFit)
    494498          {
    495             if (fTimeProb > gkProbLimit)
     499            if (fTimeChisquare > 20.)
    496500              fTimeGausFit->SetLineColor(kRed);
    497501            else
     
    507511        if (fTimeGausFit)
    508512          {
    509             if (fTimeProb > gkProbLimit)
     513            if (fTimeChisquare > 20.)
    510514              fTimeGausFit->SetLineColor(kRed);
    511515            else
     
    588592  fTimeSigma     = fTimeGausFit->GetParameter(2);
    589593
    590   if (fTimeProb < gkProbLimit)
     594  if (fTimeChisquare > 20.)  // Cannot use Probability because Ndf is sometimes < 1
    591595    {
    592596      *fLog << warn << "Fit of the Arrival times failed ! " << endl;
     
    644648  fTimeSigma     = fTimeGausFit->GetParameter(2);
    645649
    646   if (fTimeProb < gkProbLimit)
     650  if (fTimeChisquare > 20.)  // Cannot use Probability because Ndf is sometimes < 1
    647651    {
    648652      *fLog << warn << "Fit of the Arrival times failed ! " << endl;
Note: See TracChangeset for help on using the changeset viewer.