- Timestamp:
- 01/15/04 17:31:50 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc
r2790 r2822 110 110 111 111 fgSinglePheFitFunc = &gfKto4; 112 fgSinglePheFitNPar = 5;112 fgSinglePheFitNPar = 6; 113 113 } 114 114 … … 352 352 const Double_t mu_1_guess = mu_0_guess + 50.; 353 353 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); 356 357 // fSinglePheFit = new TF1("SinglePheFit",fgSinglePheFitFunc,rmin,rmax,fgSinglePheFitNPar+1); 357 358 // 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); 359 360 // 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"); 361 362 fSinglePheFit->SetParLimits(0,0.,1.); 362 363 fSinglePheFit->SetParLimits(1,rmin,(rmax-rmin)/1.5); … … 364 365 fSinglePheFit->SetParLimits(3,1.0,(rmax-rmin)/2.0); 365 366 fSinglePheFit->SetParLimits(4,1.0,(rmax-rmin)/2.5); 367 fSinglePheFit->SetParLimits(5,norm-0.1,norm+0.1); 366 368 // fSinglePheFit->SetParLimits(5,entries/gkSq2Pi,entries/gkSq2Pi); 367 369 // fSinglePheFit->SetParLimits(5,0.,1.5*entries); … … 373 375 // fHBlindPixelCharge->Scale(gkSq2Pi*(float)bins/npx/entries); 374 376 // fHBlindPixelCharge->Scale(gkSq2Pi/entries); 375 Float_t norm = entries/gkSq2Pi;376 377 // norm *= (Float_t)fSinglePheFit->GetNpx()/(Float_t)fBlindPixelChargenbins; 377 fSinglePheFit->SetParLimits(5,norm-0.1,norm+0.1);378 378 379 379 fHBlindPixelCharge->Fit(fSinglePheFit,opt);
Note:
See TracChangeset
for help on using the changeset viewer.