Changeset 7059 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/18/05 19:22:05 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7058 r7059  
    6262     - for some sceen output the manipulator (inf) was missing
    6363
    64    * msignal/MExtractPINDiode.cc:
     64   * msignal/MExtractPINDiode.cc, mcalib/MCalibrationChargeCalc.cc,
     65     mcalib/MCalibrationChargeCam.cc:
    6566     - fixed a problem with the fit (it always tried to display
    6667       the fit-function somewhere)
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r7058 r7059  
    12471247
    12481248      TH1D *hist = camphes.ProjectionS(TArrayI(),TArrayI(1,&i),"_py",100);
    1249       hist->Fit("gaus","Q");
     1249      hist->Fit("gaus","Q0");
    12501250      const Float_t mean  = hist->GetFunction("gaus")->GetParameter(1);
    12511251      const Float_t sigma = hist->GetFunction("gaus")->GetParameter(2);
     
    17711771
    17721772      TH1D *hist = camffactor.ProjectionS(TArrayI(),area,"_py",100);
    1773       hist->Fit("gaus","Q");
     1773      hist->Fit("gaus","Q0");
    17741774      const Float_t mean  = hist->GetFunction("gaus")->GetParameter(1);
    17751775      const Float_t sigma = hist->GetFunction("gaus")->GetParameter(2);
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc

    r7028 r7059  
    768768      // Fix the ranges, as found by Nadia
    769769      if(aidx == 0)
    770         {h->Fit("fit","REQ", "",0.4,1.5);}
     770        h->Fit(fit, "REQ0", "",0.4,1.5);
    771771      else
    772         {h->Fit("fit","REQ", "",1.,5.);}
     772        h->Fit(fit ,"REQ0", "",1.,5.);
    773773    }
    774774  else
    775775    {
    776       h->Fit("gaus","Q");
     776      h->Fit("gaus","Q0");
    777777      fit = h->GetFunction("gaus");
    778778    }
     
    787787          // Fix the ranges, as found by Nadia
    788788          if(aidx == 0)
    789             {h->Fit("fit","REQ", "",0.4,1.5);}
     789            h->Fit(fit, "REQ0", "",0.4,1.5);
    790790          else
    791             {h->Fit("fit","REQ", "",1.,5.);}
     791            h->Fit(fit, "REQ0", "",1.,5.);
    792792        }
    793793      else
    794794        {
    795           h->Fit("gaus","MREQ");
     795          h->Fit("gaus","MREQ0");
    796796          fit = h->GetFunction("gaus");
    797797        }
     
    896896      // Fix the ranges, as found by Nadia
    897897      if(aidx == 0)
    898         {h->Fit("fit","REQ", "",0.07,0.3);}
     898        {h->Fit("fit","REQ0", "",0.07,0.3);}
    899899      else
    900         {h->Fit("fit","REQ", "",0.15,1.0);}
     900        {h->Fit("fit","REQ0", "",0.15,1.0);}
    901901    }
    902902  else
    903903    {
    904       h->Fit("gaus","Q");
     904      h->Fit("gaus","Q0");
    905905      fit = h->GetFunction("gaus");
    906906    }
     
    915915          // Fix the ranges, as found by Nadia
    916916          if(aidx == 0)
    917             {h->Fit("fit","REQ", "",0.07,0.3);}
     917            {h->Fit("fit","REQ0", "",0.07,0.3);}
    918918          else
    919             {h->Fit("fit","REQ", "",0.15,1.0);}
     919            {h->Fit("fit","REQ0", "",0.15,1.0);}
    920920        }
    921921      else
    922922        {
    923           h->Fit("gaus","MREQ");
     923          h->Fit("gaus","MREQ0");
    924924          fit = h->GetFunction("gaus");
    925925        }
  • trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc

    r7058 r7059  
    354354    }
    355355
    356   // Must be created manually. Otherwise we cannot use N-option
    357   TF1 gaus("func", "gaus");
    358 
    359   fSlices->Fit(&gaus, "QN", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit);
    360  
     356  fSlices->Fit("gaus", "Q0", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit);
     357
     358  TF1 &gaus = *fSlices->GetFunction("gaus");
     359
    361360  fPINDiode->SetExtractedSignal(gaus.GetParameter(0), gaus.GetParError(0));
    362361  fPINDiode->SetExtractedTime  (gaus.GetParameter(1), gaus.GetParError(1));
Note: See TracChangeset for help on using the changeset viewer.