Changeset 3073 for trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
- Timestamp:
- 02/09/04 17:57:31 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r3061 r3073 61 61 const Int_t MHCalibrationPixel::fNDFLimit = 5; 62 62 63 const Axis_t MHCalibrationPixel::f NyquistFreq = 1.0;63 const Axis_t MHCalibrationPixel::fMaxFreq = 3.5; 64 64 const Axis_t MHCalibrationPixel::fMinFreq = 0.; 65 65 const Int_t MHCalibrationPixel::fPSDNbins = 30; … … 79 79 fChargeXaxis(NULL), 80 80 fPSDXaxis(NULL), 81 fCurrentSize(1024),82 fFitLegend(NULL)81 fFitLegend(NULL), 82 fCurrentSize(1024) 83 83 { 84 84 … … 260 260 fHPSD = new TH1F(Form("%s%d","HPSD",fPixId), 261 261 Form("%s%s","Power Spectrum Density Projection ","LoGain"), 262 fPSDNbins,fMinFreq,f NyquistFreq);262 fPSDNbins,fMinFreq,fMaxFreq); 263 263 264 264 array = fPSDLoGain; … … 269 269 fHPSD = new TH1F(Form("%s%d","HPSD",fPixId), 270 270 Form("%s%s","Power Spectrum Density Projection ","HiGain"), 271 fPSDNbins,fMinFreq,f NyquistFreq);271 fPSDNbins,fMinFreq,fMaxFreq); 272 272 273 273 array = fPSDHiGain; … … 286 286 fPSDExpFit = new TF1(Form("%s%d","PSDExpFit",fPixId),"[0]*exp(-[1]*x)",0.,1.); 287 287 288 fPSDExpFit->SetParameters( entries,10.);288 fPSDExpFit->SetParameters(area_guess,10.); 289 289 fPSDExpFit->SetParNames("Area","slope"); 290 290 fPSDExpFit->SetParLimits(0,0.,3.*area_guess); 291 fPSDExpFit->SetParLimits(1, 5.,20.);292 fPSDExpFit->SetRange(fMinFreq,f NyquistFreq);291 fPSDExpFit->SetParLimits(1,0.,20.); 292 fPSDExpFit->SetRange(fMinFreq,fMaxFreq); 293 293 294 294 fHPSD->Fit(fPSDExpFit,"RQL0"); … … 638 638 fHAbsTimeLoGain->Draw(opt); 639 639 640 CutArrayBorder(fHiGains);640 // CutArrayBorder(fHiGains); 641 641 CreateChargeXaxis(fHiGains->GetSize()); 642 642 … … 651 651 652 652 CutArrayBorder(fLoGains); 653 CreateChargeXaxis(f HiGains->GetSize());653 CreateChargeXaxis(fLoGains->GetSize()); 654 654 655 655 c->cd(8); … … 658 658 fChargeXaxis->GetArray(), 659 659 fLoGains->GetArray()); 660 gr2->SetTitle("Evolution of HiGain charges with event number");660 gr2->SetTitle("Evolution of LoGain charges with event number"); 661 661 gr2->SetBit(kCanDelete); 662 662 gr2->Draw("AL"); … … 668 668 669 669 TArrayF *array; 670 TString title = "Power Spectrum Density "; 670 671 671 672 if(IsUseLoGain()) … … 674 675 return; 675 676 array = fPSDLoGain; 677 title += "LoGain"; 676 678 } 677 679 else … … 680 682 return; 681 683 array = fPSDHiGain; 684 title += "HiGain"; 682 685 } 683 686 … … 686 689 687 690 TGraph *gr3 = new TGraph(fPSDXaxis->GetSize(),fPSDXaxis->GetArray(),array->GetArray()); 688 gr3->SetTitle( "Power Spectrum Density");691 gr3->SetTitle(title.Data()); 689 692 gr3->SetBit(kCanDelete); 690 693 gr3->Draw("AL");
Note:
See TracChangeset
for help on using the changeset viewer.