Changeset 2822 for trunk


Ignore:
Timestamp:
01/15/04 17:31:50 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2790 r2822  
    110110
    111111    fgSinglePheFitFunc = &gfKto4;
    112     fgSinglePheFitNPar = 5;
     112    fgSinglePheFitNPar = 6;
    113113}
    114114
     
    352352  const Double_t mu_1_guess = mu_0_guess + 50.;
    353353  const Double_t si_1_guess = si_0_guess + si_0_guess;
    354 
    355   fSinglePheFit = new TF1("SinglePheFit",fgSinglePheFitFunc,rmin,rmax,fgSinglePheFitNPar+1);
     354  const Double_t norm       = entries/gkSq2Pi;
     355
     356  fSinglePheFit = new TF1("SinglePheFit",fgSinglePheFitFunc,rmin,rmax,fgSinglePheFitNPar);
    356357  //  fSinglePheFit = new TF1("SinglePheFit",fgSinglePheFitFunc,rmin,rmax,fgSinglePheFitNPar+1);
    357358  //  fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess);
    358   fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,entries);
     359  fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,norm);
    359360  //  fSinglePheFit->SetParNames("#lambda","#mu_0","#mu_1","#sigma_0","#sigma_1");
    360   fSinglePheFit->SetParNames("#lambda","#mu_0","#mu_1","#sigma_0","#sigma_1","area");
     361  fSinglePheFit->SetParNames("#lambda","#mu_0","#mu_1","#sigma_0","#sigma_1","Area");
    361362  fSinglePheFit->SetParLimits(0,0.,1.);
    362363  fSinglePheFit->SetParLimits(1,rmin,(rmax-rmin)/1.5);
     
    364365  fSinglePheFit->SetParLimits(3,1.0,(rmax-rmin)/2.0);
    365366  fSinglePheFit->SetParLimits(4,1.0,(rmax-rmin)/2.5);
     367  fSinglePheFit->SetParLimits(5,norm-0.1,norm+0.1);
    366368  //  fSinglePheFit->SetParLimits(5,entries/gkSq2Pi,entries/gkSq2Pi);
    367369  //  fSinglePheFit->SetParLimits(5,0.,1.5*entries);
     
    373375  //  fHBlindPixelCharge->Scale(gkSq2Pi*(float)bins/npx/entries);
    374376  // fHBlindPixelCharge->Scale(gkSq2Pi/entries);
    375   Float_t  norm   = entries/gkSq2Pi;
    376377  //           norm  *= (Float_t)fSinglePheFit->GetNpx()/(Float_t)fBlindPixelChargenbins;
    377   fSinglePheFit->SetParLimits(5,norm-0.1,norm+0.1);
    378378
    379379  fHBlindPixelCharge->Fit(fSinglePheFit,opt);
Note: See TracChangeset for help on using the changeset viewer.