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

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.