Ignore:
Timestamp:
06/22/04 14:24:03 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r4321 r4322  
    986986      area[0] = i;
    987987
    988       TH1D *hist = camphes.ProjectionS(TArrayI(),area);
     988      TH1D *hist = camphes.ProjectionS(TArrayI(),area,"_py",100);
    989989      hist->Fit("gaus","Q");
    990990      const Float_t mean  = hist->GetFunction("gaus")->GetParameter(1);
     
    992992      const Int_t   ndf   = hist->GetFunction("gaus")->GetNDF();
    993993
    994       if (ndf < 1)
     994      if (ndf < 2)
    995995        {
    996996          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons "
     
    10041004      const Double_t prob = hist->GetFunction("gaus")->GetProb();
    10051005
    1006       if (prob < 0.0005)
     1006      if (prob < 0.001)
    10071007        {
    10081008          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons "
     
    13941394      area[0] = i;
    13951395
    1396       TH1D *hist = camffactor.ProjectionS(TArrayI(),area);
     1396      TH1D *hist = camffactor.ProjectionS(TArrayI(),area,"_py",100);
    13971397      hist->Fit("gaus","Q");
    13981398      const Float_t mean  = hist->GetFunction("gaus")->GetParameter(1);
     
    14001400      const Int_t   ndf   = hist->GetFunction("gaus")->GetNDF();
    14011401
    1402       if (ndf < 1)
     1402      if (ndf < 2)
    14031403        {
    14041404          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor "
     
    14121412      const Double_t prob = hist->GetFunction("gaus")->GetProb();
    14131413
    1414       if (prob < 0.0005)
     1414      if (prob < 0.001)
    14151415        {
    14161416          *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor "
Note: See TracChangeset for help on using the changeset viewer.