Changeset 2973
- Timestamp:
- 01/30/04 10:21:43 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2972 r2973 23 23 - initialize charges histogram with a bigger range 24 24 - use pedestal information to constrain the pedestal fit ranges 25 26 * manalysis/MHPedestalPixel.cc 27 - initialize charges histogram with a bigger range 25 28 26 29 -
trunk/MagicSoft/Mars/manalysis/MHPedestalPixel.h
r2951 r2973 17 17 18 18 const Int_t fChargeNbins; 19 Axis_t fChargeFirst; 20 Axis_t fChargeLast; 21 19 22 const Int_t fChargevsNbins; 20 21 23 const Axis_t fChargevsNFirst; 22 24 const Axis_t fChargevsNLast; 23 25 24 Axis_t fChargeFirst;25 Axis_t fChargeLast;26 27 26 TH1F* fHPedestalCharge; //-> Summed FADC slices 28 27 TH1I* fHPedestalChargevsN; //-> Summed FADC slices vs Event nr. -
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc
r2931 r2973 58 58 // 59 59 MHCalibrationBlindPixel::MHCalibrationBlindPixel(const char *name, const char *title) 60 : fBlindPixelChargeNbins( 500),60 : fBlindPixelChargeNbins(1000), 61 61 fBlindPixelTimeNbins(32), 62 fBlindPixelChargevsNbins(1000 ),62 fBlindPixelChargevsNbins(10000), 63 63 fBlindPixelTimeFirst(-0.25), 64 64 fBlindPixelTimeLast(15.75), … … 74 74 75 75 // Create a large number of bins, later we will rebin 76 fBlindPixelChargefirst = - 100.;77 fBlindPixelChargelast = 400.;76 fBlindPixelChargefirst = -200.; 77 fBlindPixelChargelast = 800.; 78 78 79 79 fHBlindPixelCharge = new TH1F("HBlindPixelCharge","Distribution of Summed FADC Slices", … … 124 124 { 125 125 126 fBlindPixelChargefirst = - 100.;127 fBlindPixelChargelast = 400.;126 fBlindPixelChargefirst = -200.; 127 fBlindPixelChargelast = 800.; 128 128 129 129 fLambda = 0.; … … 151 151 fLambdaCheckErr = -1.; 152 152 153 fMeanPedestal = 0.; 154 fMeanPedestalErr = 0.; 155 fSigmaPedestal = 0.; 156 fSigmaPedestalErr = 0.; 157 153 158 fFitFunc = kEPoisson4; 154 159 … … 391 396 { 392 397 case kEPoisson4: 393 // fSinglePheFit = new TF1("SinglePheFit",&fPoissonKto4,min,max,5);394 398 fSinglePheFit = new TF1("SinglePheFit",&fPoissonKto4,min,max,6); 395 399 break; … … 436 440 437 441 case kEPoisson4: 438 fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,norm); 442 if (fMeanPedestal && fSigmaPedestal) 443 fSinglePheFit->SetParameters(lambda_guess,fMeanPedestal,mu_1_guess,fSigmaPedestal,si_1_guess,norm); 444 else 445 fSinglePheFit->SetParameters(lambda_guess,mu_0_guess,mu_1_guess,si_0_guess,si_1_guess,norm); 446 439 447 fSinglePheFit->SetParNames("#lambda","#mu_{0}","#mu_{1}","#sigma_{0}","#sigma_{1}","Area"); 448 440 449 fSinglePheFit->SetParLimits(0,0.,1.); 441 fSinglePheFit->SetParLimits(1,-2.,2.); 450 451 if (fMeanPedestal && fSigmaPedestal) 452 fSinglePheFit->SetParLimits(1,fMeanPedestal-fMeanPedestalErr,fMeanPedestal+fMeanPedestalErr); 453 else 454 fSinglePheFit->SetParLimits(1,-3.,0.); 455 442 456 fSinglePheFit->SetParLimits(2,(max-min)/2.,(max-0.05*(max-min))); 443 fSinglePheFit->SetParLimits(3,1.0,(max-min)/2.0); 457 458 if (fMeanPedestal && fSigmaPedestal) 459 fSinglePheFit->SetParLimits(3,fSigmaPedestal-fSigmaPedestalErr,fSigmaPedestal+fSigmaPedestalErr); 460 else 461 fSinglePheFit->SetParLimits(3,1.0,(max-min)/2.0); 462 444 463 fSinglePheFit->SetParLimits(4,1.0,(max-min)/2.5); 445 464 fSinglePheFit->SetParLimits(5,norm-0.5,norm+0.5);
Note:
See TracChangeset
for help on using the changeset viewer.