Changeset 3073 for trunk/MagicSoft
- Timestamp:
- 02/09/04 17:57:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r3065 r3073 31 31 32 32 MGeomCam *fGeomCam; //! Need geom cam to know which pixel in inner or outer 33 33 34 34 TH1D* fOffsets; //! 35 35 TH1D* fSlopes; //! -
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"); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h
r3055 r3073 26 26 static const Int_t fNDFLimit; 27 27 28 static const Axis_t f NyquistFreq;28 static const Axis_t fMaxFreq; 29 29 static const Axis_t fMinFreq; 30 30 static const Int_t fPSDNbins; -
trunk/MagicSoft/Mars/mtools/MFFT.cc
r3054 r3073 680 680 // 681 681 c02 = (fDataF[0]*fDataF[0]); 682 newarray->AddAt(c02/dim2,0);682 // newarray->AddAt(c02/dim2,0); 683 683 // 684 684 // 2) P(k) = 1/(N*N) (|C(k)|*|C(k)|)) 685 685 // 686 for (Int_t k= 0;k<dim05-1;k++)686 for (Int_t k=1;k<dim05-1;k++) 687 687 { 688 688 const Int_t k2 = k+k; … … 733 733 // 2) P(k) = 1/(N*N) (|C(k)|*|C(k)|)) 734 734 // 735 for (Int_t k= 0;k<dim05-1;k++)735 for (Int_t k=1;k<dim05-1;k++) 736 736 { 737 737 const Int_t k2 = k+k;
Note:
See TracChangeset
for help on using the changeset viewer.