Changeset 3075 for trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
- Timestamp:
- 02/09/04 22:50:52 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r3074 r3075 61 61 const Int_t MHCalibrationPixel::fNDFLimit = 5; 62 62 63 const Axis_t MHCalibrationPixel::fMaxFreq = 30.5;64 63 const Axis_t MHCalibrationPixel::fMinFreq = 0.; 65 const Int_t MHCalibrationPixel::fPSDNbins = 30;64 const Int_t MHCalibrationPixel::fPSDNbins = 50; 66 65 67 66 // -------------------------------------------------------------------------- … … 260 259 // 261 260 262 // This cuts only the non-used zero's, but MFFT will cut the rest261 // This cuts only the non-used zero's, but MFFT will later cut the rest 263 262 CutArrayBorder(fHiGains); 264 263 CutArrayBorder(fLoGains); 265 264 266 267 265 MFFT fourier; 268 266 … … 272 270 Int_t entries; 273 271 TArrayF *array; 274 272 273 const Double_t max_freq = (fChargeSigma > 0.) ? fChargeSigma*0.2 : 2.; 274 const Double_t min_freq = 0.; 275 275 276 if (IsUseLoGain()) 276 277 { 277 278 fHPSD = new TH1F(Form("%s%d","HPSD",fPixId), 278 279 Form("%s%s","Power Spectrum Density Projection ","LoGain"), 279 fPSDNbins, fMinFreq,fMaxFreq);280 fPSDNbins,min_freq,max_freq); 280 281 281 282 array = fPSDLoGain; … … 286 287 fHPSD = new TH1F(Form("%s%d","HPSD",fPixId), 287 288 Form("%s%s","Power Spectrum Density Projection ","HiGain"), 288 fPSDNbins, fMinFreq,fMaxFreq);289 fPSDNbins,min_freq,max_freq); 289 290 290 291 array = fPSDHiGain; … … 305 306 fPSDExpFit->SetParameters(area_guess,10.); 306 307 fPSDExpFit->SetParNames("Area","slope"); 307 fPSDExpFit->SetParLimits(0,0., 3.*area_guess);308 fPSDExpFit->SetParLimits(1,0., 20.);309 fPSDExpFit->SetRange( fMinFreq,fMaxFreq);308 fPSDExpFit->SetParLimits(0,0.,20.*area_guess); 309 fPSDExpFit->SetParLimits(1,0.,30.); 310 fPSDExpFit->SetRange(min_freq,max_freq); 310 311 311 312 fHPSD->Fit(fPSDExpFit,"RQL0"); … … 351 352 352 353 const Int_t diff = fChargeXaxis->GetSize()-n; 354 353 355 fChargeXaxis->Set(n); 354 356 if (diff < 0) 355 for (Int_t i=n ;i<n+diff;i++)357 for (Int_t i=n-1;i>n-diff-1;i--) 356 358 fChargeXaxis->AddAt((Float_t)i,i); 357 359 } … … 582 584 583 585 TCanvas *c = MH::MakeDefCanvas(this,600,900); 586 c->SetBit(kCanDelete); 584 587 585 588 c->Divide(2,5); … … 714 717 715 718 gStyle->SetOptStat(111111); 719 gStyle->SetOptFit(); 716 720 gPad->SetTicks(); 717 721 … … 729 733 c->Modified(); 730 734 c->Update(); 735 736 c->Iconify(); 731 737 732 738 return;
Note:
See TracChangeset
for help on using the changeset viewer.